承接 deboorn/escrow-api 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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);

统计信息

  • 总下载量: 34
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 6
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 2
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-07-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固