payu/apple-pay
Composer 安装命令:
composer require payu/apple-pay
包简介
ApplePay Token Decoder
README 文档
README
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:
class PayU\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
}
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
BEGINandENDmarkers
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!
payu/apple-pay 适用场景与选型建议
payu/apple-pay 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.02M 次下载、GitHub Stars 达 51, 最近一次更新时间为 2018 年 02 月 27 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「openssl」 「decryption」 「apple-pay」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 payu/apple-pay 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 payu/apple-pay 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 payu/apple-pay 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A PHP library to encrypt/decrypt secrets using OpenSSL.
A simple PHP class to encrypt a string and decrypt an encrypted string
A package for automatically encrypting and decrypting Eloquent attributes in Laravel 5.5+, based on configuration settings.
Platine Security provides a complete security system with encryption, hash support.
A library for reading KeePass 2.x databases
A PHP library for RSA encryption and decryption using the OpenSSL extension
统计信息
- 总下载量: 1.02M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 51
- 点击次数: 29
- 依赖项目数: 0
- 推荐数: 1
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2018-02-27