Select the Alipay product that matches your terminal and business privileges, and then compare it to the official document. Different protocols, certificate modes and product configurations cannot be mixed.
Identification of applications and products
The application, business identification and payment products to be used are checked on open platforms.
- Identify the actual scene of the web page, mobile page or application.
- Saves the selected product document and the current opening conditions.
Application and product rights are consistent with actual operations.
Install SDK and configure keys
Install an appropriate version of the README at the official PHP SDK warehouse in Alipay and initialize it at the service end.
- Apply the private key and Platform public key or certificate in the configuration of the selected mode.
- Distinguishing between testing and formal configuration, limiting access to key files.
SDK can read the configuration and the key will not be sent to the browser.
Create orders and initiate payments
The service-end generates business orders, which are passed into the business order number, the amount of the order, etc. by product document.
- Prices are read from commodity configurations and local dues are saved.
- Sets a step-over notification and a front-end return address according to product rules.
The payment request relates to the only local, searchable order.
Process stethoscope notifications
Validation of the notice by the corresponding SDK to check the business order number, amount and application and business affiliation.
- Whether or not it can be confirmed on the basis of the status of payment as defined in the product.
- Repeat notice to read the records of the processing and return the response as officially agreed.
Notices that are not certified or that do not belong to the order cannot trigger delivery.
Checking and delivery
The front-end returns the page to read the local order status; the status is confirmed by the service-end call to the selected product's id capability when the status is to be determined.
- Payment is confirmed before the goods or interests are issued.
- Payments and deliveries are recorded separately, and if failed, only uncompleted deliveries are retryed.
Reloading or re-receiving a page will not result in a duplicate shipment.
Test refunds and formal transitions
The order, refund and query processes are jointly closed with the actual product privileges and then the formal configuration is reviewed.
- Check the abnormal path with repeated notifications, amounts not in line and network timeout.
- Refund orders relate to original transactions while dealing with changes in business interests.
Orders, deliveries, refunds and reconciliations may be reconciled with each other.