Checks the terms of the selected JSAPI, H5, Native or application of the payment product. The order of service-end access is set below; the specific fields and the mode of transfer are still performed according to the official document of the selected product.

Prepare business and applications

Checks the number of the business, the connection of the APPID and the rights of the selected product.

The business and application configuration meets the payment product requirements.

Install PHP SDK

The installation of the WeChat Pay official PHP library in your business project to check the operating environment against the warehouse description.

composer require wechatpay/wechatpay

The service provider is able to initialize the client and use the correct signature information.

List and Save Association

When a local order is created, you will call the next line interface for the selected product.

Returning payment entry or prepayment mark can correspond to local order.

Check and decrypt notifications

The official bank is used to verify the notification on the basis of the header and original submission and then declassify the resource content in accordance with the product rules.

Notifications that are forged, altered or not matched by orders do not update the status of payments.

Quite a bit of processing and active checking.

Only payment records and transactions are used to prevent duplicate processing; authentication of a service-end check when no notification is received.

Repeated calls are processed only once, and the notification omits a checklist to compensate.

Validate uplink and refunds

Check payments, deliveries, refunds and queries separately; check permissions, keys and notification domain names again at production switching.

Successes, failures and unusual orders can be tracked and reconciled.