Skip to main content

Overview

Secure and reliable pre-authorization ensures funds are reserved while providing flexible payment solutions. Supports both completion and cancellation of pre-authorizations.

Function

  • Pre-authorization transaction processing.
  • Pre-authorization processing and cancellation.

Authorization methods

  1. API: For high-volume merchants who wish to automate.
  2. Manual: Initiated via merchant backend.

Flow Chart

Pre-authorization Operation

  1. The merchant server calls the pre-authorization function and performs authorization or cancellation through the payment_authType.
curl -X POST '/gateway/service/auth'
-H 'Content-Type: application/x-www-form-urlencoded'
-d 'account=995149'
-d 'terminal=99514901'
-d 'signValue=6b86b273ff34fce19d6b804eff5a3f5747ada4eaa22f1d49c01e52ddb7875b4b'
-d 'payment_id=180803140041683010528'
-d 'payment_authType=1'

Response Data

<?xml version="1.0" encoding="utf-8"?>
<respon>
<account>995149</account>
<terminal>99514901</terminal>
<signValue>A75EBFFC5CF11EBBF752373115FD1CC1FF4472ACB338EF1E6F303594C656C3D0</signValue>
<order_number/>
<payment_id>240528151145313026060</payment_id>
<payment_status>1</payment_status>
<payment_details>Success</payment_details>
</respon>

Operation Result Type

ParameterDescription
payment_statusOperation result
  • 1 = Success
  • 0 = Failed
payment_detailsResult details
  • Code:Description