承接 soneritics/buckaroojson 相关项目开发

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

邮箱: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.78k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固