├── .gitignore ├── .scrutinizer.yml ├── .travis.yml ├── LICENSE ├── README.md ├── cert ├── acp_test_enc.cer ├── acp_test_middle.cer ├── acp_test_root.cer ├── acp_test_sign.pfx └── acp_test_verify_sign.cer ├── composer.json ├── composer.lock ├── demo ├── autoload.php ├── b2c │ ├── pay.php │ └── preauth.php ├── charge │ └── paybill.php ├── config-direct.php ├── config.php ├── direct │ ├── open-token.php │ ├── open.php │ └── openpay.php ├── directdebit │ ├── DK00000000777290058110097201510130001I.txt │ └── authorize.php ├── index.php ├── openreturn.php ├── paynotify.php ├── payreturn.php └── wap │ └── pay.php ├── phpdox.xml ├── phpmd.xml ├── phpunit.xml ├── src ├── UnionPay.php ├── service │ ├── App.php │ ├── B2B.php │ ├── B2C.php │ ├── Charge.php │ ├── Direct.php │ ├── DirectDebit.php │ ├── Qrcode.php │ ├── Token.php │ └── Wap.php └── util │ └── HttpClient.php └── test ├── AllTests.php ├── UnionPayTest.php ├── service ├── AppTest.php ├── B2BTest.php ├── B2CTest.php ├── ChargeTest.php ├── DirectDebitTest.php ├── DirectTest.php ├── QrcodeTest.php ├── TokenTest.php └── WapTest.php └── util └── HttpClientTest.php /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/.gitignore -------------------------------------------------------------------------------- /.scrutinizer.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/.scrutinizer.yml -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/README.md -------------------------------------------------------------------------------- /cert/acp_test_enc.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/cert/acp_test_enc.cer -------------------------------------------------------------------------------- /cert/acp_test_middle.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/cert/acp_test_middle.cer -------------------------------------------------------------------------------- /cert/acp_test_root.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/cert/acp_test_root.cer -------------------------------------------------------------------------------- /cert/acp_test_sign.pfx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/cert/acp_test_sign.pfx -------------------------------------------------------------------------------- /cert/acp_test_verify_sign.cer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/cert/acp_test_verify_sign.cer -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/composer.json -------------------------------------------------------------------------------- /composer.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/composer.lock -------------------------------------------------------------------------------- /demo/autoload.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/demo/autoload.php -------------------------------------------------------------------------------- /demo/b2c/pay.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/demo/b2c/pay.php -------------------------------------------------------------------------------- /demo/b2c/preauth.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/demo/b2c/preauth.php -------------------------------------------------------------------------------- /demo/charge/paybill.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/demo/charge/paybill.php -------------------------------------------------------------------------------- /demo/config-direct.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/demo/config-direct.php -------------------------------------------------------------------------------- /demo/config.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/demo/config.php -------------------------------------------------------------------------------- /demo/direct/open-token.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/demo/direct/open-token.php -------------------------------------------------------------------------------- /demo/direct/open.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/demo/direct/open.php -------------------------------------------------------------------------------- /demo/direct/openpay.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/demo/direct/openpay.php -------------------------------------------------------------------------------- /demo/directdebit/DK00000000777290058110097201510130001I.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/demo/directdebit/DK00000000777290058110097201510130001I.txt -------------------------------------------------------------------------------- /demo/directdebit/authorize.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/demo/directdebit/authorize.php -------------------------------------------------------------------------------- /demo/index.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/demo/index.php -------------------------------------------------------------------------------- /demo/openreturn.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/demo/openreturn.php -------------------------------------------------------------------------------- /demo/paynotify.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/demo/paynotify.php -------------------------------------------------------------------------------- /demo/payreturn.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/demo/payreturn.php -------------------------------------------------------------------------------- /demo/wap/pay.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/demo/wap/pay.php -------------------------------------------------------------------------------- /phpdox.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/phpdox.xml -------------------------------------------------------------------------------- /phpmd.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/phpmd.xml -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/phpunit.xml -------------------------------------------------------------------------------- /src/UnionPay.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/src/UnionPay.php -------------------------------------------------------------------------------- /src/service/App.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/src/service/App.php -------------------------------------------------------------------------------- /src/service/B2B.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/src/service/B2B.php -------------------------------------------------------------------------------- /src/service/B2C.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/src/service/B2C.php -------------------------------------------------------------------------------- /src/service/Charge.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/src/service/Charge.php -------------------------------------------------------------------------------- /src/service/Direct.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/src/service/Direct.php -------------------------------------------------------------------------------- /src/service/DirectDebit.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/src/service/DirectDebit.php -------------------------------------------------------------------------------- /src/service/Qrcode.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/src/service/Qrcode.php -------------------------------------------------------------------------------- /src/service/Token.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/src/service/Token.php -------------------------------------------------------------------------------- /src/service/Wap.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/src/service/Wap.php -------------------------------------------------------------------------------- /src/util/HttpClient.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/src/util/HttpClient.php -------------------------------------------------------------------------------- /test/AllTests.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/test/AllTests.php -------------------------------------------------------------------------------- /test/UnionPayTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/test/UnionPayTest.php -------------------------------------------------------------------------------- /test/service/AppTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/test/service/AppTest.php -------------------------------------------------------------------------------- /test/service/B2BTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/test/service/B2BTest.php -------------------------------------------------------------------------------- /test/service/B2CTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/test/service/B2CTest.php -------------------------------------------------------------------------------- /test/service/ChargeTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/test/service/ChargeTest.php -------------------------------------------------------------------------------- /test/service/DirectDebitTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/test/service/DirectDebitTest.php -------------------------------------------------------------------------------- /test/service/DirectTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/test/service/DirectTest.php -------------------------------------------------------------------------------- /test/service/QrcodeTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/test/service/QrcodeTest.php -------------------------------------------------------------------------------- /test/service/TokenTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/test/service/TokenTest.php -------------------------------------------------------------------------------- /test/service/WapTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/test/service/WapTest.php -------------------------------------------------------------------------------- /test/util/HttpClientTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangv/union-pay/HEAD/test/util/HttpClientTest.php --------------------------------------------------------------------------------