FrPayment
public final class FrPayment
FrPayment (Standing Order) API
Note
A Standing Order is an instruction that an account holder gives to their bank to make payments of a fixed amount at regular intervals. Payments are made automatically by the bank on a defined schedule (e.g. weekly or monthly) on an ongoing basis, unless a specified condition has been met, such as an end-date being reached or a set number of payments having been made. Standing Orders can only be created, amended or cancelled by the account holder, typically by using their online or telephone banking service. They are most commonly used for recurring payments where the amount stays the same, such as rent payments, subscription services or regular account top-ups.-
Opens webview using with
uniqueID
of FrPaymentDeclaration
Swift
func open(uniqueID: String, viewController: UIViewController, completion: @escaping (Result<PayByBankResult, PayByBankError>) -> Void)
Parameters
uniqueID
Unique id value of FrPayment.
viewController
UIViewController that provides to present bank selection
completion
It provides to handle result or error
-
Opens webview using with request model of FrPayment
Declaration
Swift
func initiate(request: FrPaymentCreateRequest, viewController: UIViewController, completion: @escaping (Result<PayByBankResult, PayByBankError>) -> Void)
Parameters
request
Request to create FrPayment
viewController
UIViewController that provides to present bank selection
completion
It provides to handle result or error
-
Creates FrPayment
Declaration
Swift
func createFrPayment(request: FrPaymentCreateRequest, completion: @escaping (Result<FrPaymentCreateResponse, PayByBankError>) -> Void)
Parameters
request
Request to create FrPayment
completion
It provides to handle result or error
-
Gets FrPayment detail
Declaration
Swift
func getFrPayment(request: FrPaymentGetRequest, completion: @escaping (Result<FrPaymentGetResponse, PayByBankError>) -> Void)
Parameters
request
Request to get FrPayment detail
completion
It provides to handle result or error
-
Soft deletes FrPayment with given id
Declaration
Swift
func deactivateFrPayment(request: FrPaymentDeleteRequest, completion: @escaping (Result<Bool, PayByBankError>) -> Void)
Parameters
request
Request to deacvtivate FrPayment
completion
It provides to handle result or error