awethemes / omnipay-payubiz

Omnipay 的 PayUBiz 驱动程序

0.1.0 2018-09-04 06:01 UTC

This package is auto-updated.

Last update: 2024-09-27 21:01:41 UTC


README

将 PayUBiz 支付网关与 Omnipay 集成。

安装

通过 Composer

$ composer require awethemes/omnipay-payubiz

用法

配置

$gateway = OmniAuth::create('PayUBiz');
$gateway->setKey(MERCHANT_ID);
$gateway->setSalt(PAYU_SALT);
$params = [
    'name' => $user->name,
    'email' => $user->email,
    'amount' => $product->amount,
    'product' => $product->name,
    'transactionId' => uniqid(),
    'failureUrl' => url('api/v1/checkout/failed'),
    'returnUrl' => url('api/v1/checkout/thank-you')
];

$gateway->purchase($params)->send()->redirect();

更多信息请查看官方 Omnipay 文档。

贡献

请参阅 CONTRIBUTINGCONDUCT 以获取详细信息。

安全

如果您发现任何与安全相关的问题,请发送电子邮件至 prabhakarbhat@live.com,而不是使用问题跟踪器。

致谢

许可协议

MIT 许可协议 (MIT)。有关更多信息,请参阅 许可文件