Download the PHP package payu/apple-pay without Composer
On this page you can find all versions of the php package payu/apple-pay. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download payu/apple-pay
More information about payu/apple-pay
Files in payu/apple-pay
Package apple-pay
Short Description ApplePay Token Decoder
License Apache-2.0
Homepage https://github.com/PayU/apple-pay
Informations about the package apple-pay
Apple Pay Token Decoder
This library is used to decode tokens for Apple Pay.
It takes a payment token data and returns an ApplePayPaymentData object. ex:
Install:
Run composer require payu/apple-pay
Get AppleRootCA-G3.pem:
- Download AppleRootCA-G3.cer
- Run command:
openssl x509 -inform der -in AppleRootCA-G3.cer -out AppleRootCA-G3.pem
Get Private Key:
- Export merchant certificate to a p12 cert
- Use openssl to get the private key:
openssl pkcs12 -in <your_cert>.p12 -out private_key.pem -nocerts -nodes
- Copy content without
BEGIN
andEND
markers
Usage:
See https://github.com/PayU/apple-pay/blob/master/examples/decode_token.php
For more information about how Apple Pay tokens decoding works go to: https://developer.apple.com/library/content/documentation/PassKit/Reference/PaymentTokenJSON/PaymentTokenJSON.html
Only works on Linux hosts with openssl installed
For open pull requests please make sure the Travis build does not fail!
All versions of apple-pay with dependencies
ext-openssl Version *
phpseclib/phpseclib Version ^3.0
spomky-labs/php-aes-gcm Version ^1.2
symfony/process Version ^4.1|^5.0|^6.0