Alipay, China's leading third-party online payment solutionAlipay, China's leading third-party online payment solutionDOCS

      Introduction

      Auto Debit Payment requires a user to sign a payment agreement (such as the three-party withholding agreement) with the merchant in advance. After that, when the user purchases merchandise on the merchant site, the merchant can deduct money from the user account directly by using an authorization token.


      To use this payment solution, merchant needs to obtain the authorization in advance. Users need to sign a contract (such as the three-party withholding agreement) with merchant to authorize the merchant to obtain the authorization token. After that, the merchant can use the token to initiate the auto debit payment request.


      #User experience

      The following figures illustrate that a Philippine user purchases goods in Apple's App Store and uses GCash for payment. Assume this user uses a native GCash app (the user has already downloaded the app, then opens the app).


      Agreement payment.jpg


      Figure 1. Auto debit payment demo


      This sample assumes that a Philippine user purchases goods in Apple's App Store and uses Gcash for payment:

      1. Louis, a Philippine user, chooses a product of 1000 PHP in the App Store and places an order. He then chooses GCash to pay.
      2. Louis is redirected to the GCash agreement page, where the authorization agreement is displayed.
      3. Louis completes the authorization and then returns to the App Store, where the authorization result and the linked GCash account is displayed.
      4. Louis selects the GCash account to complete the payment. The App Store then returns the payment success result.


      #How it works

      In Auto Debit Payment, the following roles are involved:

      • Customer: An individual or institution that uses the payment service.
      • MerchantA company or individual that trades on goods or services.
      • Alipay: Alipay provides Auto Debit Payment service.
      • PSPA payment service provider. In Auto Debit Payment, PSP is a Digital Wallet, such as GCash.


      The following figures show the authorization and payment process flows of Auto Debit Payment.


      Authorization flow.png

      Figure 2. Authorization flow



      After the authorization is completed, the merchant can initiate payment requests with the access token.

      Payment flow.png

      Figure 3. Payment flow


      #More information

      Getting started

      Authorization and payment