PaymentCreateResponse
public struct PaymentCreateResponse : Codable
-
A system assigned unique identification for the payment. You may need to use this id to query payments or initiate a refund.
Declaration
Swift
public let id: String?
-
An identification number for the payment that is assigned by the bank. Can have different formats for each bank.
Declaration
Swift
public let bankReferenceID: String?
-
Initiation date and time of the payment request in ISO 8601 format.
Declaration
Swift
public let dateCreated: Date?
-
A unique and one time use only URL of the debtor’s banking system. You will need to redirect PSU to this link in order the payment to proceed.
Declaration
Swift
public let paymentURL: String?
-
Status of the Payment Initiation
Note
Enum: “AwaitingAuthorization”Declaration
Swift
public let status: PaymentInitiationStatus?
-
Indicates if the payment is a refund.
Declaration
Swift
public let isRefund: Bool?
-
The URL submitted with the Request.
Declaration
Swift
public let redirectURL: String?
-
The
bankID
value submitted with the Request.Declaration
Swift
public let bankID: String?
-
The
amount
value submitted with the Request.Declaration
Swift
public let amount: Decimal?
-
Currency code in ISO 4217 format.
Note
Enum: “GBP” “USD” “EUR”Declaration
Swift
public let currency: PayByBankCurrency?
-
The
description
value submitted with the Request.Declaration
Swift
public let description: String?
-
The
reference
value submitted with the Request.Declaration
Swift
public let reference: String?
-
The
merchantID
value submitted with the Request.Declaration
Swift
public let merchantID: String?
-
The
merchantUserID
value submitted with the Request.Declaration
Swift
public let merchantUserID: String?
-
It determines which type of payment operation will be executed by the Gateway.
Note
Enum: “Auto” “Domestic” “DomesticScheduled” “International” “InternationalScheduled”Declaration
Swift
public let paymentType: PaymentType?
-
It is the account that will receive the payment.
Declaration
Swift
public let creditorAccount: PayByBankAccountResponse?
-
It is the account from which the payment will be taken.
Declaration
Swift
public let debtorAccount: PayByBankAccountResponse?
-
Additional fields for a payment that can be mandotary for specific cases.
Declaration
Swift
public let paymentOption: PaymentOptionResponse?
-
init(id:
bankReferenceID: dateCreated: paymentURL: status: isRefund: redirectURL: bankID: amount: currency: description: reference: merchantID: merchantUserID: paymentType: creditorAccount: debtorAccount: paymentOption: ) Declaration
Swift
public init(id: String?, bankReferenceID: String?, dateCreated: Date?, paymentURL: String?, status: PaymentInitiationStatus?, isRefund: Bool?, redirectURL: String?, bankID: String?, amount: Decimal?, currency: PayByBankCurrency?, description: String?, reference: String?, merchantID: String?, merchantUserID: String?, paymentType: PaymentType?, creditorAccount: PayByBankAccountResponse?, debtorAccount: PayByBankAccountResponse?, paymentOption: PaymentOptionResponse?)