Auto Debit APIs
When enabling the Transport Code service, the user agrees to and signs the Auto Debit agreement to enable the service. After that, Alipay+ can automatically deduct the fare after the user finishes the ride.
The following APIs are used in Transport Code Auto Debit:
Note: In the Transport Code scenario, the MPP must support Auto Debit for in-store payments.
API | Description |
Enables the MPP to provide an authorization URL for the Auto Debit payment. | |
Enables the MPP to provide an access token to Alipay+. | |
Enables Alipay+ to send a request to the MPP to deduct funds from the user's MPP account using the authorized access token.
| |
Enables Alipay+ to revoke an access token if the user wants to cancel the authorization to the public transport operator. | |
Enables the MPP to inform Alipay+ of status updates of the authorization code or the access token. | |
Enables Alipay+ to query the payment result. | |
Enables Alipay+ to initiate a refund of a successful payment. | |
(Optional) | Enables the MPP to consult whether the public transport operator allows an access token to be canceled from the MPP side. |
For detailed instructions on how to utilize the APIs, see Auto Debit integration.