iDEAL
This page provides details how to use iDEAL payment method.
For Ready-to-Use UI the version 1 will be used by default. To use version 2 set the iDEAL bank account country in the checkout settings.
checkoutSettings.setIdealBankAccountCountry("NL");
checkoutSettings.idealBankAccountCountry = "NL"
For Mobile SDK with your own UI use a specific method to create payment parameters.
// use this method to create payment parameters for iDEAL version 1
paymentParams = BankAccountPaymentParams.createIdealPaymentParams(checkoutId, bankName);
// use this method to create payment parameters for iDEAL version 2
paymentParams = BankAccountPaymentParams.createIdealTwoPaymentParams(checkoutId, country);
// use this method to create payment parameters for iDEAL version 1
paymentParams = BankAccountPaymentParams.createIdealPaymentParams(checkoutId, bankName)
// use this method to create payment parameters for iDEAL version 2
paymentParams = BankAccountPaymentParams.createIdealTwoPaymentParams(checkoutId, country)
For Ready-to-Use UI set the iDEAL bank account country in the checkout settings.
checkoutSettings.idealBankAccountCountry = @"NL";
checkoutSettings.idealBankAccountCountry = "NL"
For Mobile SDK with your own UI use below method to create payment parameters.
NSError *error = nil;
paymentParams = [OPPBankAccountPaymentParams idealPaymentParamsWithCheckoutID:checkoutId
country:country
error:&error];
do {
let paymentParams = try OPPBankAccountPaymentParams.idealPaymentParams(withCheckoutID: checkoutId,
country: country)
} catch {
print(error)
}