定制 sydneyecommerce/omnipay-bpoint 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

sydneyecommerce/omnipay-bpoint

最新稳定版本:0.0.4

Composer 安装命令:

composer require sydneyecommerce/omnipay-bpoint

包简介

BPoint driver for the Omnipay payment processing library

README 文档

README

BPoint v5 driver for the Omnipay PHP payment processing library

BPoint v5 API: https://www.bpoint.com.au/developers/v5/index.htm#!#api

Currently only supports tokenized purchases with two available methods:

  • createToken()
  • purchase()

Usage

<?php
use Omnipay\Omnipay;
use Omnipay\Common\CreditCard;

// Create a gateway for the Bpoint Gateway
// (routes to GatewayFactory::create)
/* @var \Omnipay\Bpoint\Gateway $gateway */
$gateway = Omnipay::create('Bpoint');

$gateway->setTestMode(true);
$gateway->setUsername('usernameValue');
$gateway->setPassword('passwordValue');
$gateway->setMerchantNumber('merchantIdValue');

// Tokenize a card
/* @var \Omnipay\Bpoint\Message\Response $response */
$response = $gateway->createToken([
    'card' => new CreditCard([
        'number' => '4987654321098769',
        'cvv' => '987',
        'expiryMonth' => '03',
        'expiryYear' => '2026',
        'firstName' => 'John',
        'lastName' => 'Doe',
    ]),
    'crn1' => '12345',
    'crn2' => '',
    'crn3' => null,
])->send();

if (!$response->isSuccessful()) {
    // handle errors
}

// Charge using a token
/* @var \Omnipay\Bpoint\Message\Response $response */
$response = $gateway->purchase([
    'card' => new CreditCard([
        'number' => $response->getToken(),
        'cvv' => '987',
        'expiryMonth' => '03',
        'expiryYear' => '2026',
        'firstName' => 'John',
        'lastName' => 'Doe',
    ]),
    'amount' => '50.00',
    'currency' => 'AUD',
    'description' => 'Merchant Reference',
    'crn1' => '12345',
    'crn2' => '',
    'crn3' => null,
])->send();

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-07-16