BTLocalPaymentRequest

@objcMembers
public class BTLocalPaymentRequest : NSObject

Used to initialize a local payment flow

Public Properties

Initializer

  • 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

    paymentType

    Required: The type of payment.

    amount

    Required: The amount for the transaction.

    currencyCode

    Required: A valid ISO currency code to use for the transaction. Defaults to merchant currency code if not set.

    paymentTypeCountryCode

    Optional: 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.

    merchantAccountID

    Optional: A non-default merchant account to use for tokenization.

    address

    Optional: The address of the customer. An error will occur if this address is not valid.

    displayName

    Optional: The merchant name displayed inside of the local payment flow.

    email

    Optional: Payer email of the customer.

    givenName

    Optional: Given (first) name of the customer.

    surname

    Optional: Surname (last name) of the customer.

    phone

    Optional: Phone number of the customer.

    isShippingAddressRequired

    Indicates whether or not the payment needs to be shipped. For digital goods, this should be false. Defaults to false.

    bic

    Optional: Bank Identification Code of the customer (specific to iDEAL transactions).