BTLocalPaymentRequest
@objcMembers
public class BTLocalPaymentRequest : NSObject
Used to initialize a local payment flow
-
Declaration
Swift
public weak var localPaymentFlowDelegate: BTLocalPaymentRequestDelegate?
-
init(paymentType:amount: currencyCode: paymentTypeCountryCode: merchantAccountID: address: displayName: email: givenName: surname: phone: isShippingAddressRequired: bic: ) Creates a LocalPaymentRequest
Declaration
Swift
public init( paymentType: String, amount: String, currencyCode: String, paymentTypeCountryCode: String? = nil, merchantAccountID: String? = nil, address: BTPostalAddress? = nil, displayName: String? = nil, email: String? = nil, givenName: String? = nil, surname: String? = nil, phone: String? = nil, isShippingAddressRequired: Bool = false, bic: String? = nil )Parameters
paymentTypeRequired: The type of payment.
amountRequired: The amount for the transaction.
currencyCodeRequired: A valid ISO currency code to use for the transaction. Defaults to merchant currency code if not set.
paymentTypeCountryCodeOptional: The country code of the local payment. This value must be one of the supported country codes for a given local payment type listed at the link below. For local payments supported in multiple countries, this value may determine which banks are presented to the customer.
merchantAccountIDOptional: A non-default merchant account to use for tokenization.
addressOptional: The address of the customer. An error will occur if this address is not valid.
displayNameOptional: The merchant name displayed inside of the local payment flow.
emailOptional: Payer email of the customer.
givenNameOptional: Given (first) name of the customer.
surnameOptional: Surname (last name) of the customer.
phoneOptional: Phone number of the customer.
isShippingAddressRequiredIndicates whether or not the payment needs to be shipped. For digital goods, this should be
false. Defaults tofalse.bicOptional: Bank Identification Code of the customer (specific to iDEAL transactions).
View on GitHub