-
Notifications
You must be signed in to change notification settings - Fork 5
RECURRING_SALE
This page describes the ExpressPay Flutter SDK RECURRING_SALE Adapter.
Recurring payments are commonly used to create new transactions based on already stored cardholder information from previous operations.
RECURRING_SALE request has same logic as SALE request, the only difference is that you need to provide primary transaction id, and this request will create a secondary transaction with previously used cardholder data from primary transaction.

- The RECURRING_SALE Adapter operation method based on the cardholder data:
/**
* @param payerEmail customer’s email. String up to 256 characters.
* @param cardNumber the credit card number.
* @param auth indicates that transaction must be only authenticated, but not captured.
* @param callback the [ExpressPaySaleCallback].
*/
func execute(order: ExpressPayOrderProtocol,
options: ExpressPayRecurringOptions,
payerEmail: String,
cardNumber: String,
auth: Bool,
callback: @escaping ExpressPaySaleCallback) -> URLSessionDataTask- The RECURRING_SALE Adapter operation method based on the hash data:
/**
* @param hash special signature to validate your request to payment platform.
* @param auth indicates that transaction must be only authenticated, but not captured.
* @param callback the [ExpressPaySaleCallback].
*/
func execute(order: ExpressPayOrderProtocol,
options: ExpressPayRecurringOptions,
hash: String,
auth: Bool,
callback: @escaping ExpressPaySaleCallback) -> URLSessionDataTaskResponse from Payment Platform is the same as by SALE command, except for the value of the difference parameter "action=RECURRING_SALE".
- The
ExpressPaySaleCallbackresults:
| Result | Description |
|---|---|
ExpressPaySaleResult.success |
success result. |
ExpressPaySaleResult.decline |
result with the decline reason. |
ExpressPaySaleResult.recurring |
result with the recurring parameters. |
ExpressPaySaleResult.secure3D |
result with the redirect parameters. |
Website: https://expresspay.sa
Phone: +966920033633
Email: itsupport@expresspay.sa
Address: ExpressPay, Olaya Street, Riyadh, Saudi Arabia
Developer Support: Email 1, Email 2, WhatsApp 1, WhatsApp 2
© 2023 - 2024 ExpressPay. All rights reserved.