soneritics/buckaroojson 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

soneritics/buckaroojson

最新稳定版本:v1.6

Composer 安装命令:

composer require soneritics/buckaroojson

包简介

Buckaroo PHP implementation

README 文档

README

Build Status Coverage Status Latest Stable License

Buckaroo

Buckaroo payment provider implementation classes Connect with Buckaroo through their easy to use JSON API.

Important!

If you have the problem where floats are serialized the wrong way, add this line to your code:

ini_set( 'serialize_precision', -1 );

you have this problem when you get the error: An error occurred while processing the transaction: Total amount of articles does not match the transaction amount (S996)

Payment methods

Currently, the following payment methods are supported

  • iDeal
  • AfterPay (DigiAccept)
  • Bancontact
  • KBC
  • Credit cards:
    • Mastercard
    • Visa
    • American Express
  • Debit cards:
    • VPay
    • Maestro
    • Visa Electron
    • Carte Bleue
    • Carte Bancaire
    • Dankort

Example

Some example code has been added in the Examples folder. A sneak peek below :-)

$transactionKey = ''; // Your transaction key here

$authentication = new Authentication($secretKey, $websiteKey);
$buckaroo = new Buckaroo($authentication, true);
$transactionStatusRequest = $buckaroo->getTransactionStatusRequest($transactionKey)->request();

if ($transactionStatusRequest['Status']['Code']['Code'] == PaymentStatus::SUCCESS) {
    // Order is paid
}

Multiple payment methods

When you want the customer to make a choice for the payment method, but you do not want it on your own site, that's also possible. You can use the MultiServiceTransactionRequest for that. This is something that's commonly used for creditcard transactions.

$ccTransactionRequest = $buckaroo->getMultiServiceTransactionRequest()
    ->addService(new CreditcardMastercard)
    ->addService(new CreditcardVisa)
    ->addService(new CreditcardAmericanExpress)
    ->setAmountDebit(12.5)
    ->setInvoice('inv-123')
    ->request();
    
// Redirect the user to: echo $ccTransactionRequest['RequiredAction']['RedirectURL']

Change list

Version Breaking Changes Notes
1.* No Implement Refund, Authorize, Capture, etc. On request only!
2.0 Yes Map the responses to proper objects

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-07-03