Pay with Ali-Pay:
Functions that need to be
activated for Alipay payment : activation address: https://b.alipay.com/signing/productSetV2.htm ( features that need to be activated : the functions marked in the red box below )
Alipay prepares relevant keys for payment:
$appid ='';//https://open.alipay.com Account Center->Key Management->Open Platform Key, fill in the APPID of the application that added computer website payment
$rsaPrivateKey='';//Merchant private key, fill in the private key corresponding to the signature algorithm type, how to generate the key reference:
https://docs.open.alipay.com/291/105971 and https://docs.open .alipay.com/200/105310
$alipayPublicKey ='';//Alipay public key, account center -> key management -> open platform key, find the application with payment function, according to your encryption type, check the Alipay public key
WeChat Pay:
WeChat Pay prepares relevant keys:
$mchid ='';//WeChat Pay Merchant Account PartnerID Send email after WeChat Pay merchant profile review
$appid ='';//Public Account APPID Send email after
WeChat Pay merchant profile review $apiKey ='';// https://pay.weixin.qq.com Account Settings-Security Settings-API Security-API Key-Set API Key
$appKey ='';//App Key of the official account corresponding to the WeChat payment application
Configure the relevant configuration of WeChat payment:
1. Open https://mp.weixin.qq.com/, set-official account setting-function setting
Configure to add the JS interface security domain name, and configure the web page authorized domain name.
2. Open https://pay.weixin.qq.com, product center-my product opens the following products
3. Open https://pay.weixin.qq.com, product center-development configuration
1) JSAPI payment-payment authorization catalog, add catalog.
2) H5 payment-H5 pays the domain name and adds the domain name.