Skip to content

Adapters

Zohaib edited this page Mar 15, 2023 · 3 revisions

This page describes the ExpressPay Flutter SDK adapters.

Adapters

Adapter maps the raw Payment Platform API Action to the native SDK method.

All the adapters listed in the ExpressPayAdapters class, and you can reference to this class instance as below.

For example, to acquire the SALE adapter, reference as:

ExpresspaySdk.instance.ADAPTER.SALE

The acquiring of each Adapter will check the ExpressPaySDK initialization status.

The exception "ExpressPay SDK is not configured" will be thrown in case of failed initialization.

This is the list of all possible ExpressPay SDK Adapters:

Adapter Description
ExpressPaySaleAdapter Creates SALE or AUTH transaction
ExpressPayCaptureAdapter Creates CAPTURE transaction
ExpressPayCreditVoidAdapter Creates REVERSAL or REFUND transaction
ExpressPayGetTransactionStatusAdapter Gets status of the transaction in Payment Platform
ExpressPayGetTransactionDetailsAdapter Gets details of the order from Payment platform
ExpressPayRecurringSaleAdapter Creates SALE or AUTH transaction using previously used cardholder data

ExpressPay

The ExpressPay Flutter SDK - https://expresspay.sa

Clone this wiki locally