File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 1313processing library for PHP. This package implements Alipay support for Omnipay.
1414
1515> Cross-border Alipay payment please use [ ` lokielse/omnipay-global-alipay ` ] ( https://github.com/lokielse/omnipay-global-alipay )
16-
16+
1717> Legacy Version please use [ ` "lokielse/omnipay-alipay": "dev-legacy" ` ] ( https://github.com/lokielse/omnipay-alipay/tree/legacy )
1818
1919## Installation
@@ -44,13 +44,19 @@ The following gateways are provided by this package:
4444 * @var AopAppGateway $gateway
4545 */
4646$gateway = Omnipay::create('Alipay_AopPage');
47- $gateway->setSignType('RSA2'); // RSA/RSA2/MD5
47+ $gateway->setSignType('RSA2'); // RSA/RSA2/MD5. Use certificate mode must set RSA2
4848$gateway->setAppId('the_app_id');
4949$gateway->setPrivateKey('the_app_private_key');
50- $gateway->setAlipayPublicKey('the_alipay_public_key');
50+ $gateway->setAlipayPublicKey('the_alipay_public_key'); // Need not set this when used certificate mode
5151$gateway->setReturnUrl('https://www.example.com/return');
5252$gateway->setNotifyUrl('https://www.example.com/notify');
5353
54+ // Must set cert path if you used certificate mode
55+ //$gateway->setAlipayRootCert('the_alipay_root_cert'); // alipayRootCert.crt
56+ //$gateway->setAlipayPublicCert('the_alipay_public_cert'); // alipayCertPublicKey_RSA2.crt
57+ //$gateway->setAppCert('the_app_public_cert'); // appCertPublicKey.crt
58+ //$gateway->setCheckAlipayPublicCert(true);
59+
5460/**
5561 * @var AopTradePagePayResponse $response
5662 */
You can’t perform that action at this time.
0 commit comments