Collecting Payment Details
- Follow the instructions in these steps:
Press a tab to open…Retrieve a dynamic list of banks and APMs linked to your merchant account, for that country:- The payment flow begins when your customer enters the amount they wish to pay on your payment page, selects “Open Banking”, and presses the Pay (or equivalent).
- Send a
/getSessionToken
request, which generates asessionToken
. - Call the
/getMerchantPaymentMethods
method and include the relevantcountryCode
parameter to narrow down the results returned.
Example
/getMerchantPaymentMethods
Request{ "sessionToken": "9610a8f6-44cf-4c4f-976a-005da69a2a3b", "merchantId":"427583496191624621", "merchantSiteId":"142033", "clientRequestId": "1484759782197", "currencyCode":"USD", "countryCode":"BE", "type":"DEPOSIT", "languageCode":"eng", "timeStamp":"20151105021120", "checksum":"6133d0fd12e90ff8de5d8ab5e52a8c23" }
Retrieve a dynamic list of banks and APMs linked to your merchant account, for that country:- The payment flow begins when your customer enters the amount they wish to pay on your payment page, selects Open Banking, and presses the “Pay” button (or equivalent).
- Send an
/openOrder
request, which generates asessionToken
. - Instantiate a Web SDK session by sending a
SafeCharge()
request and include thesessionToken
. - Now you can call the
getAPMs()
Web SDK method, and include the relevantcountryCode
to narrow down the results returned.
Example
getApms()
Requestsfc.getApms({ "currencyCode": "USD", "countryCode": "BE", "languageCode": "en" }, function (res) { console.log(res) })
The response returns all the APMs linked to your merchant account, for that
countryCode
.
- Initiate a Session This authenticates and sets up an order in the Nuvei system, by sending an /openOrder request, and returns a
sessionToken
. - Create an HTML Placeholder This instantiates the Web SDK with the
sessionToken
received from the server call to /openOrder. - Collect the bank and transaction details by displaying a pop-up for the customer to select a bank, enter the IBAN (if mandatory for the bank), accept the Terms and Conditions, and enter the amount.
- Use an IFrame to redirect the customer to their selected bank, so they can enter their credentials and complete the payment transaction.
(END OF CHECKOUT SDK FLOW)
- REST API
-
Retrieve a dynamic list of banks and APMs linked to your merchant account, for that country:
- The payment flow begins when your customer enters the amount they wish to pay on your payment page, selects “Open Banking”, and presses the Pay (or equivalent).
- Send a
/getSessionToken
request, which generates asessionToken
. - Call the
/getMerchantPaymentMethods
method and include the relevantcountryCode
parameter to narrow down the results returned.
Example
/getMerchantPaymentMethods
Request{ "sessionToken": "9610a8f6-44cf-4c4f-976a-005da69a2a3b", "merchantId":"427583496191624621", "merchantSiteId":"142033", "clientRequestId": "1484759782197", "currencyCode":"USD", "countryCode":"BE", "type":"DEPOSIT", "languageCode":"eng", "timeStamp":"20151105021120", "checksum":"6133d0fd12e90ff8de5d8ab5e52a8c23" }
- Web SDK
-
Retrieve a dynamic list of banks and APMs linked to your merchant account, for that country:
- The payment flow begins when your customer enters the amount they wish to pay on your payment page, selects Open Banking, and presses the “Pay” button (or equivalent).
- Send an
/openOrder
request, which generates asessionToken
. - Instantiate a Web SDK session by sending a
SafeCharge()
request and include thesessionToken
. - Now you can call the
getAPMs()
Web SDK method, and include the relevantcountryCode
to narrow down the results returned.
Example
getApms()
Requestsfc.getApms({ "currencyCode": "USD", "countryCode": "BE", "languageCode": "en" }, function (res) { console.log(res) })
The response returns all the APMs linked to your merchant account, for that
countryCode
.
- Checkout SDK
-
- Initiate a Session This authenticates and sets up an order in the Nuvei system, by sending an /openOrder request, and returns a
sessionToken
. - Create an HTML Placeholder This instantiates the Web SDK with the
sessionToken
received from the server call to /openOrder. - Collect the bank and transaction details by displaying a pop-up for the customer to select a bank, enter the IBAN (if mandatory for the bank), accept the Terms and Conditions, and enter the amount.
- Use an IFrame to redirect the customer to their selected bank, so they can enter their credentials and complete the payment transaction.
(END OF CHECKOUT SDK FLOW)
- Initiate a Session This authenticates and sets up an order in the Nuvei system, by sending an /openOrder request, and returns a
fields.listValues.caption
value) for you to display to the customer:Example
/getMerchantPaymentMethods
(orgetApms()
) Response{ "paymentMethod":"apmgw_Instant_Open_Banking", "paymentMethodDisplayName":[ ], "isDirect":"false", "countries":[ "BE" ], "currencies":[ "USD" ], "fields":[ { "name":"ob_account_number", "type":"text", "caption":[ { "language":"eng", "message":"Account Number" } ] }, { "name":"ob_sort_code", "type":"text", "caption":[ { "language":"eng", "message":"Sort Code" } ] }, { "name":"ob_iban", "type":"text", "caption":[ { "language":"en", "message":"IBAN" } ] }, { "name":"instantOb_bankId", "type":"text", "caption":[ { "language":"eng", "message":"Bank ID" } ], "listValues":[ { "code":"ngp-bbru", "caption":"NextGenPSD2", "mandatoryFields":[ "ob_iban" ] }, { "code":"ngp-ingba", "caption":"ING Austria", "mandatoryFields":[ ] } ] } ] }
- Extract a list of all the banks returned for these APMs:
apmgw_Open_Banking
andapmgw_Instant_Open_Banking
./getMerchantPaymentMethods
(orgetApms()
) Output ParametersParameter Description Examples paymentMethod Identifier of a Payment Method. apmgw_Online_Bank_Transfer
fields A list of possible input fields required by a payment method provider for this Payment Method, as well as a list of mandatory input fields per fields.listValues
value (in the form of a key-value pairs to be used to populate a dropdown input field).- fields.name Identifier of the field. ob_account_number
ob_sort_code
ob_iban
ob_bank_id
fields.listValues A list of values of the fields.name
(to be used to populate a dropdown input field).- fields.listValues
.codeBank code used for sending the payment request.
Note:For the "apmgw_online_bank_transfer" APM, the bank id parameter must be: "ob_bank_id"ngp-bbru
ngp-ingbafields.listValues
.captionBank name for display on the UI. NextGenPSD2
ING Austriafields.listValues
.mandatoryFieldsA list of fields.names
, which are mandatory for thisfields.listValues
value (to be used to populate a dropdown input field).ob_account_number
ob_sort_code
ob_iban - Display this list of banks, for the customer to choose the bank that holds the account they wish to pay from. The names of the banks are contained in the
fields.listValues.caption
value, contained in thefields.listValues
array output parameter. - After the customer selects a bank, retrieve the list of mandatory fields that customer must enter. The mandatory fields required for the selected bank are contained in the
fields.listValues.mandatoryFields
value of this array. The values in this array correspond to the values in thefields.name
output parameter.
fields
array structure withmandatoryFields
from the/getMerchantPaymentMethods
(orgetApms()
) Response"fields"[ "name" (String, 45), "type" (String, 45), "validationMessage" ["language" (String, 2), "message" (String, 400)], "caption" ["language" (String, 2), "message" (String, 400)], "listValues" [ "code" (String, 255), "caption" (String), "mandatoryFields" [(String, 45)] ] ]
- After the customer enters the information required by their bank, display the following important checkbox for the customer to approve before allowing them to continue:
“By continuing, you agree to the Privacy Policy and the Terms of Nuvei’s bank connectivity provider. You will be asked by your bank to share your account details, these will only be used when necessary such as processing a refund.“