PayByBank
public final class PayByBank
PayByBank SDK.
Note
The Ecospend Gateway presents PayByBank SDK as an alternative and easier form of Open Banking Instant Payment solutions. PayByBank SDK provides you the option of downsizing the development effort for a PIS and AIS journeys to a single SDK integration. PayByBank undertakes all of interaction in the payment user journey with your branding on display.-
Opens webview using with
uniqueID
,url
andredirectURL
of Paylink.Declaration
Swift
static func open(paylink uniqueID: String, url: URL, redirectURL: URL, viewController: UIViewController, completion: @escaping (Result<PayByBankResult, PayByBankError>) -> Void)
Parameters
uniqueID
A system assigned unique identification for the Paylink.
url
Unique Paylink URL that you will need to redirect PSU in order the payment to proceed.
redirectURL
The URL of the Tenant that the PSU will be redirected at the end of the paylink journey.
viewController
Instance’s
UIViewController
, which provides to present bank selection.completion
It provides to handle
PayByBankResult
orPayByBankError
. -
Opens webview using with
uniqueID
,url
andredirectURL
of FrPayment.Declaration
Swift
static func open(frPayment uniqueID: String, url: URL, redirectURL: URL, viewController: UIViewController, completion: @escaping (Result<PayByBankResult, PayByBankError>) -> Void)
Parameters
uniqueID
A system assigned unique identification for the FrPayment.
url
Unique FrPayment URL that you will need to redirect PSU in order the payment to proceed.
redirectURL
The URL of the Tenant that the PSU will be redirected at the end of payment process.
viewController
Instance’s
UIViewController
, which provides to present bank selection.completion
It provides to handle
PayByBankResult
orPayByBankError
. -
Opens webview using with
uniqueID
,url
andredirectURL
of VRPlink.Declaration
Swift
static func open(vrplink uniqueID: String, url: URL, redirectURL: URL, viewController: UIViewController, completion: @escaping (Result<PayByBankResult, PayByBankError>) -> Void)
Parameters
uniqueID
A system assigned unique identification for the VRPlink.
url
Unique VRPlink URL that you will need to redirect PSU in order the payment to proceed.
redirectURL
The URL of the Tenant that the PSU will be redirected at the end of payment process.
viewController
Instance’s
UIViewController
, which provides to present bank selection.completion
It provides to handle
PayByBankResult
orPayByBankError
. -
Opens webview using with
uniqueID
,url
andredirectURL
of BulkPayment Paylink.Declaration
Swift
static func open(bulkPayment uniqueID: String, url: URL, redirectURL: URL, viewController: UIViewController, completion: @escaping (Result<PayByBankResult, PayByBankError>) -> Void)
Parameters
uniqueID
A system assigned unique identification for the Bulk Payment Paylink.
url
Unique Bulk Payment Paylink URL that you will need to redirect PSU in order the payment to proceed.
redirectURL
The URL of the Tenant that the PSU will be redirected at the end of payment process.
viewController
Instance’s
UIViewController
, which provides to present bank selection.completion
It provides to handle
PayByBankResult
orPayByBankError
. -
Opens webview using with
uniqueID
,url
andredirectURL
of Datalink.Declaration
Swift
static func open(datalink uniqueID: String, url: URL, redirectURL: URL, viewController: UIViewController, completion: @escaping (Result<PayByBankResult, PayByBankError>) -> Void)
Parameters
uniqueID
A system assigned unique identification for the Datalink.
url
Unique Datalink URL that you will need to redirect PSU in order the account access consent to proceed.
redirectURL
The URL of the Tenant that the PSU will be redirected at the end of account access process.
viewController
Instance’s
UIViewController
, which provides to present bank selection.completion
It provides to handle
PayByBankResult
orPayByBankError
. -
Opens bank application or bank website using with
id
andurl (payment_url)
of Payment.Declaration
Swift
static func open(payment id: String, url: URL, completion: @escaping (Result<PayByBankResult, PayByBankError>) -> Void)
Parameters
id
A system assigned unique identification for the Payment.
completion
It provides to handle
PayByBankResult
orPayByBankError
.