deboorn/escrow-api
Composer 安装命令:
composer require deboorn/escrow-api
包简介
Escrow.com Api Helper
README 文档
README
Escrow-Api
- Escrow.com API Helper
- License: MIT license
- These files are Not officially supported by Escrow.com.
- Questions regarding this software should be directed to daniel.boorn@gmail.com.
How to Install
Install the deboorn/escrow-api package
$ composer require deboorn/escrow-api
Example of Usage
$config = array( 'username' => 'exmaple@example.com', 'seller_email' => 'seller@example.com', 'password' => 'mypassword', 'partner_id' => '1234', ); $api = new \Escrow\Api($config['username'], $config['password'], 'https://stgsecureapi.escrow.com/api'); // Example of how to create a new transaction $transaction = $api->createTransaction(array( "Title" => "Test General Merchandise Title", "Description" => "Description", "TransactionType" => "1", "Partner" => array( "PartnerId" => $config['partner_id'], ), "Buyer" => array( "Email" => "buyeremail@example.com", "Initiator" => "false", "CompanyChk" => "false", "AutoAgree" => "false", "AgreementChecked" => "false" ), "Seller" => array( "Email" => $config['seller_email'], "Initiator" => "true", "CompanyChk" => "false", "AutoAgree" => "false", "AgreementChecked" => "false" ), "LineItems" => array(array( "ItemName" => "Line Item 1", "Description" => "Line Item 1 Description", "Quantity" => "1", "Price" => "2500", "Accept" => "true", "SellComm" => "100", "BuyComm" => "50" )), "EscrowPayment" => "0", "ShipmentFee" => "25", "ShipmentPayment" => "0", "InspectionLength" => "6", "Currency" => "USD", "Fulfillment" => "2", "CommissionType" => "1", "InitiationDate" => date('Y-m-d'), "TransactionLocked" => "true", "PartnerTransID" => uniqid(), "TermsLocked" => "true", "AllowReject" => "true", "BrkCommissionBuyerPortion" => "0", "BrkCommissionSellerPortion" => "500", "BrokerCommissionPayee" => "seller" )); var_dump($transaction);
deboorn/escrow-api 适用场景与选型建议
deboorn/escrow-api 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 34 次下载、GitHub Stars 达 6, 最近一次更新时间为 2017 年 07 月 28 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 deboorn/escrow-api 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 deboorn/escrow-api 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 34
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 10
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-07-28