PaylinkGetResponse
public struct PaylinkGetResponse : Codable
Response model to get Paylink.
-
Unique id value of Paylink.
Declaration
Swift
public let uniqueID: String?
-
Payment amount in decimal format.
Declaration
Swift
public let amount: Decimal?
-
Payment reference that will be displayed on the bank statement. 18 characters MAX.
Declaration
Swift
public let reference: String?
-
Description for the payment. 255 character MAX.
Declaration
Swift
public let description: String?
-
The URL of the Tenant that the PSU will be redirected at the end of the paylink journey. This URL must be registered by your Admin on the Ecospend Management Console, prior to being used in the API calls.
Declaration
Swift
public let redirectURL: String?
-
The URL to open bank selection screen.
Declaration
Swift
public let url: String?
-
Unique identification string assigned to the bank by our system. If value is set, Paylink will not display any UI and execute an instant redirect to the debtor’s banking system. If value is not set, Paylink will display the PSU a bank selection screen.
Declaration
Swift
public let bankID: String?
-
If you are providing our Payment service to your own business clients (merchants), then you should set the Id of your merchant.
Declaration
Swift
public let merchantID: String?
-
The Id of the end-user. If you are providing this service directly to the end-users, then you can assign that Id to this parameter. If you are providing this service to businesses, then you should assign the Id of that merchant’s user.
Declaration
Swift
public let merchantUserID: String?
-
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?
-
Options that are for Paylink.
Declaration
Swift
public let paylinkOptions: PaylinkOptionsResponse?
-
Options that are about notification for Paylink.
Declaration
Swift
public let notificationOptions: PayByBankNotificationOptionsResponse?
-
Options that are about payment for Paylink.
Declaration
Swift
public let paymentOptions: PaylinkPaymentOptionsResponse?
-
Options that are about limit for Paylink.
Declaration
Swift
public let limitOptions: PaylinkLimitOptionsResponse?
-
init(uniqueID:
amount: reference: description: redirectURL: url: bankID: merchantID: merchantUserID: creditorAccount: debtorAccount: paylinkOptions: notificationOptions: paymentOptions: limitOptions: ) Creates an instance from the specified parameters.
Declaration
Swift
public init(uniqueID: String?, amount: Decimal?, reference: String?, description: String?, redirectURL: String?, url: String?, bankID: String?, merchantID: String?, merchantUserID: String?, creditorAccount: PayByBankAccountResponse?, debtorAccount: PayByBankAccountResponse?, paylinkOptions: PaylinkOptionsResponse?, notificationOptions: PayByBankNotificationOptionsResponse?, paymentOptions: PaylinkPaymentOptionsResponse?, limitOptions: PaylinkLimitOptionsResponse?)
Parameters
uniqueID
Unique id value of Paylink.
amount
Payment amount in decimal format.
reference
Payment reference that will be displayed on the bank statement. 18 characters MAX.
description
Description for the payment. 255 character MAX.
redirectURL
The URL of the Tenant that the PSU will be redirected at the end of the paylink journey.
url
The URL to open bank selection screen.
bankID
Unique identification string assigned to the bank by our system.
merchantID
If you are providing our Payment service to your own business clients (merchants), then you should set the Id of your merchant.
merchantUserID
The Id of the end-user.
creditorAccount
Instance’s
PayByBankAccountResponse
, which is the account that will receive the payment.debtorAccount
Instance’s
PayByBankAccountResponse
, which is the account from which the payment will be taken.paylinkOptions
Instance’s
PaylinkOptionsResponse
, which contains options for Paylink.notificationOptions
Instance’s
PayByBankNotificationOptionsResponse
, which contains options about notification.paymentOptions
Instance’s
PaylinkPaymentOptionsResponse
, which contains options about payment for Paylink.limitOptions
Instance’s
PaylinkLimitOptionsResponse
, which contains options about limit for Paylink.