| Query parameter | Required | Description |
|---|---|---|
paymentBrand | O | The specific Payment Brand which you intend to provide to user. With this parameter, you will get the available payment method(s) and payment information for this specific Payment Brand in response. |
Currency | O | The specific currency which the user intends to use to pay. With this parameter, you will get the available payment method(s) and payment information for this specific currency in response. |
paymentBrand, and then currency.| Body parameter | Required | Description |
|---|---|---|
merchantTransInfo | M | The reference for the payment, including a unique merchantTransID and merchantTransTime to specify the time you initiate the request. |
transAmount | M | The currency and value of the payment. The value must follow the currency's minor unit. |
paymentMethod | M | Use paymentMethod.type to specify different payment method type, such as e-wallet or card payment, with different payment information that you collect in the previous step. |
transInitiator | M | The information of device to initiate the transaction. |
storeInfo | O | The supplemental store information. When your store is assigned with multiple MCCs in EVO Cloud, this field is required to indicate which MCC you are using for this payment. |
tradeInfo | O | This field is required when paymentMethod.e-wallet.paymentBrand is Alipay to indicate the detailed information about this payment. |
Webhook | O | The URL to receive notification. Specify this to get the notification from EVO Cloud after the payment succeeds. |
Metadata | O | A self-defined reference information that you can specify in the request, and will be echoed back in the response. The metadate message in the response is the same as the metadata in your request message, except of GET request. The metadata in GET response message is the same as the metadata in the POST request message. And the metadata in the notification is the same as the metadata in the POST request message. |
paymentMethod.type: Set as e-wallet in your request.paymentMethod.e-wallet.paymentBrand: The raw data of the user’s payment code.action object in the response, you can go to Step 5 to use the result.code and payment.status to present the payment result to your user.action object requiring a redirection:payment.status = Pending, you can make a request to EVO Cloud to retrieve the payment result if you don't use the Accept Notification webhook.| Query parameter | Required | Description |
|---|---|---|
| merchantTransID | M | The merchantTransInfo.merchantTransID of the requesting payment. |
result object in the response, you can go to Step 5 to use the result.code and payment.status to present the payment result to your user.payment and paymentMethod object in the response to show the details of this payment:payment.status: The status of this capture, required, can be Pending, Cancelling, Cancelled, Captured, Refunding, Refunded, Partial Refunded, or Failed. See EVO Cloud API Specification for more details.payment.failureCode: The error code for the payment, which will be returned when the payment.status is Failed.payment.failureReason: The error message for the payment, which will be returned when the payment.status is Failed.payment.transAmount: The currency and value of the payment, required. It is echoed back from your request.payment.merchantTransInfo: The object that is a reference for the payment, required and generated by your host. It is echoed back from your request.payment.evoTransInfo: The object that is a reference for the payment, required and generated by EVO Cloud. It contains evoTransID, evoTransTime, and traceNum (optional) and retrievalReferenceNum for some PSPs such as Visa or Mastercard.payment.pspTransInfo: The object that is a reference for the capture, optional and generated by the PSP. It contains pspTransID, pspTransTime, and authorizationCode. EVO Cloud forwards this information from PSP to your host if PSP returns.payment.billingAmount and payment.billingFXRate: The user's billing currency and value of the payment, and the FX rate between payment.transAmount.currency and payment.billingAmount.currency, if applicable. EVO Cloud forwards this information from PSP to your host if PSP returns. This is applied to some E-Wallet payment scenarios when PSP conducts currency conversion, or to some card payment scenarios when you enable the DCC feature. You can contact the EVO Cloud account manager for more details.payment.convertTransAmount and payment.convertTransFXRate: The currency and value calculated by EVO Cloud based on transAmount and the FX rate from transAmount.currency to a different currency when the transaction is sent out to PSP, and the FX rate between payment.transAmount.currency and payment.convertTransAmount.currency. The FX rate will be provided if you enable the currency conversion feature in EVO Cloud and this capture applies currency conversion. You can contact the EVO Cloud account manager for more details.paymentMethod.e-wallet.paymentBrand: The actual payment brand for the payment; EVO Cloud will distinguish this through the payment code.paymentMethod.e-wallet.walletName: The child wallet name when the payment brand is Alipayplus.result.code and payment.status to inform the user of the payment status.| Result code | Description |
|---|---|
S0000 | Success |
V0008 | Field {} is not applied with {...} |
C0004 | Request resource merchantTransID {XXX} not exist |
B0005 | Unsupported function {XXX}, please check your profile setup in EVO Cloud |
B0006 | Unsupported payment brand {XXX}, please check your profile setup in EVO Cloud |
B0033 | The transaction was rejected for security violation |
I0111 | Payment Code expired or error |
result.code values and recommended messages that you can present to your user, see Appendix in EVO Cloud API Specification.result.code is S0000, you need to check the payment.status to judge and inform your user the payment status.| Status | Description |
|---|---|
Captured | If card transaction, means transaction authorization and capture are successfully completed; If e-wallet transaction, means transaction is successfully completed. |
Failed | Payment failed |
payment.status values and description, see payment.status in EVO Cloud API Specification.