Skip to content

Hosted payment

Payment Steps

  1. The merchant initiates a transaction request. Using the HTTPS protocol, it is redirected to the payment system via a browser.
  2. The payment system processes the transaction request and submits it to the bank for a consumption/pre - authorization transaction.
  3. After the transaction is completed, the payment system redirects the parameters related to the payment result to the online store's payment result page.
  4. On the payment result page, obtain the payment result, modify the order status of the online store, and display the payment result on the page to inform the cardholder of the transaction result of this order.

Authorize

The next table describes the request parameters to perform an Authorize.

NameTypeMax LengthRequiredDescription
Merchant Info
merNoString5YesThis value is provided by and is used to authenticate a merchant.
gatewayNoString8YesThis value is provided by and is used to authenticate a merchant.
orderNoString50YesThis value is the order number or tracking code, it can contain any alphanumeric value with a maximum length of 50 chars. The value must be unique.
orderCurrencyString3YesISO 4217 Currency code that indicates the currency of the transaction.
detailed in the appendix:List of ISO 4217 Currencies
orderAmountString10YesTransaction amount. The decimal separator must be a point “.”
returnUrlString500YesPayment result will be posted to this URL provided by merchant.
notifyUrlString200Noreturn the abnormal trade to this address by server asynchronous (POST method). Please return "OK" after receiving the request.
signInfoString64YesDigital signature on the payment of the results of key fields.
signInfo=sha256(merNo + gatewayNo + orderNo + orderCurrency + orderAmount + returnUrl + signkey);
detailed in the appendix:SHA256 encryption
Customer Info
firstNameString100YesCustomer’s first name.
lastNameString50YesCustomer’s last name.
emailString200YesCustomer's email address.
phoneString50YesCustomer’s billing phone.
countryString100YesCustomer’s billing country.
cityString100YesCustomer’s billing city.
addressString500YesCustomer’s billing address
zipString100YesCustomer’s billing zipCode
stateString100NOCustomer's billing state.
shipFeeString100No【Ship Fee】
Only for the digital, and only two decimal places after the decimal point..
discountString100No【Discount】
Default negative discount only for digital, and only two decimal places after the decimal point.
goodsInfoString5000No【Goods Info】
Including goods name, ID, unit price, number of specific detailed in the appendix:Goods Info
Receiving information (optional)
shipFirstNameString100No【Delivery First Name】
shipLastNameString100No【Delivery Last Name】
shipEmailString100No【Delivery Email】
shipPhoneString100No【Delivery Phone】
shipCountryString100No【Delivery Country】short name. Such as the United States:US
shipStateString100No【Delivery State】full name.
shipCityString100No【Delivery City】full name.
shipAddressString500No【Delivery Address】
shipZipString100No【Delivery Zip】
Other
remarkString1000NoEG: order Info

Please submit more paramters in order to avoid chanrgback. See: Risk parameters list .

Operation Responses

The next table describes the fields returned in all the responses.

NameTypeDescription
merNoStringThis value is provided by and is used to authenticate a merchant.
gatewayNoStringThis value is provided by and is used to authenticate a merchant.
tradeNoStringUnique identifier allocated by fastcloudpay.
orderNoStringCustomer’s order number
orderCurrencyStringCustomer’s order currency.
orderAmountStringCustomer’s order amount.
orderStatusStringTransaction status:
-2: To be confirmed
-1: Pending
0: Failure
1: Success
orderInfoStringTransaction result code + the result of a transaction information
billAddressStringBill Address
Billing address pay return trading success.
It returns null payment failure.
signInfoStringDigital signature on the payment of the results of key fields.
signInfo=sha256(merNo + gatewayNo + tradeNo + orderNo + orderCurrency + orderAmount + orderStatus + orderInfo + signkey);
remarkStringRemark
The self-defined message for merchant. It will be returned exactly as the original one.