silviokennecke / apple-pay-token-decoder
ApplePay Token Decoder
1.2.1
2022-07-08 22:20 UTC
Requires
- php: >=7.4
- ext-openssl: *
- phpseclib/phpseclib: ^3.0
- phpseclib/phpseclib2_compat: ^1.0
- spomky-labs/php-aes-gcm: ^1.2
- symfony/process: ^3.4|^4.1|^5.0
Requires (Dev)
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2024-09-09 03:14:37 UTC
README
Apple Pay Token Decoder
此库用于解码 Apple Pay 令牌。
它接受支付令牌数据并返回一个 ApplePayPaymentData 对象。例如:
class SilvioKennecke\ApplePay\Decoding\ApplePayPaymentData#19 (9) {
private $version =>
int(1)
private $applicationPrimaryAccountNumber =>
string(16) "20427527000"
private $applicationExpirationDate =>
string(6) "190731"
private $currencyCode =>
string(3) "643"
private $transactionAmount =>
int(100000)
private $deviceManufacturerIdentifier =>
string(12) "050103073"
private $paymentDataType =>
string(8) "3DSecure"
private $onlinePaymentCryptogram =>
string(28) "Am+7lPDbobAGVT7hNAoABA=="
private $eciIndicator =>
NULL
}
安装
运行 composer require silviokennecke/apple-pay-token-decoder
使用方法
请参阅 https://github.com/silviokennecke/apple-pay-token-decoder/blob/master/examples/decode_token.php
有关 Apple Pay 令牌解码工作原理的更多信息,请访问: https://developer.apple.com/library/content/documentation/PassKit/Reference/PaymentTokenJSON/PaymentTokenJSON.html
归属
这是 PayU-EMEA/apple-pay 的分支。原始库由 PayU 创建。