ZibalDriver

new ZibalDriver()

Class to interact with the Zibal payment gateway.

Methods

(async) request(data, sandboxopt) → {Promise.<TransactionCreateResponseZibal>}

Create a payment request to Zibal.
Parameters:
NameTypeAttributesDefaultDescription
dataTransactionCreateInputZibalInput data for creating the transaction.
sandboxboolean<optional>
falseFlag to determine whether to use the sandbox environment.
Returns:
Response from the Zibal API for creating a transaction.
Type: 
Promise.<TransactionCreateResponseZibal>

(async) request(data, sandboxopt) → {Promise.<TransactionCreateResponseZibal>}

Create a payment request to Zibal.
Parameters:
NameTypeAttributesDefaultDescription
dataTransactionCreateInputZibalInput data for creating the transaction.
sandboxboolean<optional>
falseFlag to determine whether to use the sandbox environment.
Returns:
Response from the Zibal API for creating a transaction.
Type: 
Promise.<TransactionCreateResponseZibal>

(async) verify(data, sandboxopt) → {Promise.<TransactionVerifyResponseZibal>}

Verify a payment transaction with Zibal.
Parameters:
NameTypeAttributesDefaultDescription
dataTransactionVerifyInputZibalInput data for verifying the transaction.
sandboxboolean<optional>
falseFlag to determine whether to use the sandbox environment.
Returns:
Response from the Zibal API for verifying a transaction.
Type: 
Promise.<TransactionVerifyResponseZibal>

(async) verify(data, sandboxopt) → {Promise.<TransactionVerifyResponseZibal>}

Verify a payment transaction with Zibal.
Parameters:
NameTypeAttributesDefaultDescription
dataTransactionVerifyInputZibalInput data for verifying the transaction.
sandboxboolean<optional>
falseFlag to determine whether to use the sandbox environment.
Returns:
Response from the Zibal API for verifying a transaction.
Type: 
Promise.<TransactionVerifyResponseZibal>