PaymentInitiationData

data class PaymentInitiationData(val currency: Currency, val amount: Int, val defaultCountryCode: String?, val institutionData: InstitutionData?, val paymentReference: String?, val internalReference: String?, val userAgent: String, val payer: PayerData, val transactionType: TransactionType) : Parcelable

Data required to initiate payment

Parameters

currency

Currency Currency in which the payment should be made, in ISO 4217 format (3 uppercase letters).

amount

Int The amount of the transaction in fractional unit (pence, cents etc).

defaultCountryCode

String Default country code (ISO 3166 alpha-2 format) for institution selection.

institutionData

InstitutionData Selected institution, if null then institution selection screen will be shown before payment.

paymentReference

String Unique reference for the payment from the partner's system. Reference must contain only alphanumeric characters. If value is not provided, it will be generated by Volt.

internalReference

String Identifier of the transaction in the partner's system. This field can contain up to 100 characters, including special ones. Despite field being optional, we recommend to set this value.

userAgent

String User agent used by the payer to call the endpoint. Should be formatted as "AppName: {appName}, AppVersion {appVersion}, DeviceModel: {deviceModel}, OSVersion: {oSVersion}"

payer

PayerData Information about the payer

transactionType

TransactionType The transaction type.

Constructors

Link copied to clipboard
constructor(currency: Currency, amount: Int, defaultCountryCode: String?, institutionData: InstitutionData?, paymentReference: String?, internalReference: String?, userAgent: String, payer: PayerData, transactionType: TransactionType)

Properties

Link copied to clipboard
val amount: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)