Checkout Payment Methods
Introduction
Checkout allows you to specify which payment methods you would like to accept in your web shop.
You can either use pre-defined standard configurations, configured in the Billwerk+ Administration (Configurations → Checkout), or you can send in specific payment methods for an individual session.
If you pre-define a configuration you only need to reference the configuration name and do not need to specify the payment methods explicitly, when you create a new checkout session.
Strong Customer Authentication (SCA)
Some payment methods allow an extra layer of security to authorize the user. For card payments 3D Secure is an additional authentication flow in addition to entering card details. For wallets like Apple Pay, Google Pay, MobilePay, Vipps and Swish, the extra authentication is built into the apps.
We refer to all of these security schemes as strong customer authentication (SCA).
Syntax of payment_methods
parameter
payment_methods
parameterThe payment_methods
is a list of the payment methods you would like to accept.
<payment_methods> = list of <payment_method>
<payment_method> = [sca-|nosca-]<payment_name>
<payment_name> = The id of payment method, e.g. dankort
Example:
"payment_methods":["dankort", "visa"]
(Accept Dankort and Visa)
Additionally, you can add a prefix to specify the behaviour of SCA. Add:
sca-
· to specify the transaction must use SCA ornosca-
· to specify the transaction should never use SCA.
If no prefix is given, the default behavior is to use SCA if it is enabled in the Billwerk + Payments Administration and the card used is enrolled in an SCA scheme. Payments with unenrolled cards will fail when using sca-
. Notice that payments using unenrolled cards might not be subject to liability shift. The default behavior can be changed in the administration, so the default becomes must use SCA.
Example:
"payment_methods":["visa", "sca-mc"]
(Accept VISA and MasterCard, but always enforce strong customer authentication for MasterCard)
The payment methods are read from left to right. Start with the general settings, and then add the more specialized settings. If you experience issues with a given card type you can, for example, force SCA.
Payment methods
To specify all card types, you can use a convenient shorthand card
. This will automatically be expanded to all available debit/credit card types.
We currently support the following payment methods:
ID | Description | Capability |
---|---|---|
card | All available debit / credit cards | recurring |
dankort | Dankort | single, recurring |
visa | VISA | single, recurring |
visa_elec | VISA Electron | single, recurring |
mc | MasterCard | single, recurring |
amex | American Express | single, recurring |
mobilepay | MobilePay Online | single |
mobilepay_subscriptions | MobilePay Subscriptions | recurring |
viabill | ViaBill | single |
anyday | AnyDay | single |
resurs | Resurs Bank | single |
swish | Swish | single |
vipps | Vipps | single |
vipps_epayment | Vipps MobilePay Epayment | single |
vipps_recurring | Vipps MobilePay Recurring | recurring |
diners | Diners Club | single, recurring |
maestro | Maestro | single, recurring |
laser | Laser | single, recurring |
discover | Discover | single, recurring |
jcb | JCB | single, recurring |
china_union_pay | China Union Pay | single, recurring |
ffk | Forbrugsforeningen | single, recurring |
paypal | PayPal | single, recurring |
applepay | Apple Pay | single, recurring |
googlepay | Google Pay | single |
klarna_pay_later | Klarna Pay Later | single |
klarna_pay_now | Klarna Pay Now | single |
klarna_slice_it | Klarna Slice It! | single |
klarna_direct_bank_transfer | Klarna Direct Bank Transfer | single |
klarna_direct_debit | Klarna Direct Debit | single |
ideal | iDEAL | single |
blik_oc | BLIK One Click | single |
p24 | Przelewy24 (P24) | single |
verkkopankki | Finnish banks | single |
giropay | giropay | single |
sepa | SEPA Direct Debit | single, recurring |
bancomatpay | BANCOMAT Pay | single |
bancontact | Bancontact | single |
eps | EPS | single |
estonia_banks | Estonian Banks | single |
latvia_banks | Latvian Banks | single |
lithuania_banks | Lithuanian Banks | single |
mb_way | MB Way | single |
multibanco | Multibanco | single |
mybank | mBank | single |
payconiq | Payconiq | single |
paysafecard | Paysafecard | single |
paysera | Paysera | single |
postfinance | PostFinance | single |
satispay | Satisfy | single |
trustly | Trustly | single |
twint | Twint | single |
wechatpay | WeChat Pay | single |
santander | Santander | single |
offline_bank_transfer | Bank Transfer | single, recurring |
offline_cash | Cash | single, recurring |
offline_other | Other | single, recurring |
Examples
Force strong customer authentication for a given card type
card
, sca-visa
Accept all debit/credit cards with default settings for SCA. For Visa transactions it must use 3D Secure or the transaction will fail.
Disable strong authentication for all card transactions
viabill
, nosca-card
Accept Viabill and all debit/credit cards. Never use strong customer authentication for cards.
Complete charge example
Here is an example where payment methods are specified for a charge:
curl --request POST \
-u '<your_private_key>:' \
--url https://checkout-api.reepay.com/v1/session/charge \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{"order":
{"handle":"order-12345",
"amount":100,
"currency":"DKK",
"customer":{
"email":"[email protected]",
"handle":"customer-1",
"first_name":"John",
"last_name":"Doe"}
},
"accept_url":"https://webshop.com/accept/order-12345",
"cancel_url":"https://webshop.com/decline/order-12345",
"payment_methods":["dankort", "visa"]
}'
Here we create a charge and specify only Dankort and Visa should be accepted as a method of payment.
Updated about 1 month ago