iDEAL
The Mobile SDK supports two versions of iDEAL. This page provides details how to use specific version.
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 the version 1 will be used by default. To use version 2 set the iDEAL bank account country in the checkout settings.
checkoutSettings.idealBankAccountCountry = @"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
NSError *error = nil;
paymentParams = [OPPBankAccountPaymentParams idealPaymentParamsWithCheckoutID:checkoutId
bankName:bankName
error:&error];
// use this method to create payment parameters for iDEAL version 2
paymentParams = [OPPBankAccountPaymentParams idealPaymentParamsWithCheckoutID:checkoutId
country:country
error:&error];
// use this method to create payment parameters for iDEAL version 1
do {
paymentParams = try OPPBankAccountPaymentParams.idealPaymentParams(withCheckoutID: checkoutId,
bankName: bankName)
} catch {
print(error)
}
// use this method to create payment parameters for iDEAL version 2
do {
paymentParams = try OPPBankAccountPaymentParams.idealPaymentParams(withCheckoutID: checkoutId,
country: country)
} catch {
print(error)
}