CREDITVOID - edfapay/edfa-pg-android-sdk GitHub Wiki
This page describes the EdfaPg Android SDK CREDITVOID Adapter.
Overview
CREDITVOID request is used to complete both REFUND and REVERSAL transactions:
- REVERSAL transaction is used to cancel hold from funds on card account, previously authorized by AUTH transaction.
- REFUND transaction is used to return funds to card account, previously submitted by SALE or CAPTURE transactions.
CREDITVOID
- The CREDITVOID Adapter operation method based on the cardholder data:
/**
* @param transactionId transaction ID in the Payment Platform. UUID format value.
* @param payerEmail customer’s email. String up to 256 characters.
* @param cardNumber the credit card number.
* @param amount the amount for capture. Only one partial capture is allowed. Numbers in the form XXXX.XX (without leading zeros).
* @param callback the [EdfaPgCreditvoidCallback].
*/
fun execute(
@NonNull
transactionId: String,
@NonNull
payerEmail: String,
@NonNull
cardNumber: String,
@Nullable
amount: Double?,
@NonNull
callback: EdfaPgCreditvoidCallback
)
- The CREDITVOID Adapter operation method based on the hash data:
/**
* @param transactionId transaction ID in the Payment Platform. UUID format value.
* @param hash special signature to validate your request to payment platform.
* @param amount the amount for capture. Only one partial capture is allowed. Numbers in the form XXXX.XX (without leading zeros).
* @param callback the [EdfaPgCreditvoidCallback].
*/
fun execute(
@NonNull
transactionId: String,
@NonNull
hash: String,
@Nullable
amount: Double?,
@NonNull
callback: EdfaPgCreditvoidCallback
)
- The
EdfaPgCreditvoidCallback
results:
Result | Description |
---|---|
EdfaPgCreditvoidResult.Success |
success result. |