Klarna - Part Payment Flexible
Edit on GitHubPayment Workflow Scenarios
Cancel Workflow Scenarios
Refund Workflow Scenarios
Integrating Klarna Part Payment
The configuration to integrate Part Payment
using Klarna is:
SHARED_SECRET
: shared tokenEID
: the id of the merchant, received from Klarna.TEST_MODE
:true
orfalse
.KLARNA_INVOICE_MAIL_TYPE
: type of the user notifications. Possible values are:KlarnaConstants::KLARNA_INVOICE_TYPE_MAIL
KlarnaConstants::KLARNA_INVOICE_TYPE_EMAIL
KlarnaConstants::KLARNA_INVOICE_TYPE_NOMAIL
KLARNA_PCLASS_STORE_TYPE
: pClasses storage type. Could bejson
,xml
,sql
. Default type isjson
.KLARNA_PCLASS_STORE_URI
: URI for pClasses storage. DefaultAPPLICATION_ROOT_DIR . '/data/DE/pclasses.json'
.KLARNA_CHECKOUT_CONFIRMATION_URI
: checkout confirmation URI, default value$domain . '/checkout/klarna/success
’.KLARNA_CHECKOUT_TERMS_URI
: checkout terms URI, default value$domain
.KLARNA_CHECKOUT_PUSH_URI
: checkout push URI, default value$domain . '/checkout/klarna/push'
.KLARNA_CHECKOUT_URI
: checkout URI, default value$domain
.KLARNA_PDF_URL_PATTERN:
pdf URL pattern, default valuehttps://online.testdrive.klarna.com/invoices/%s.pdf
.NL_PART_PAYMENT_LIMIT
: maximum allowed limit for part payment in the Netherlands (in cents).
You can copy over configuration to your config file from the Klarna bundles config.dist.php
file.
Perform Requests
In order to perform the needed requests, you can easily use the implemented Klarna State Machine Commands and Conditions. The next section gives you a summary of them.
Thank you!
For submitting the form