ox01code/omise

这是一个omise的包

安装: 100

依赖: 0

建议者: 0

安全: 0

星级: 6

观察者: 2

分支: 5

开放性问题: 0

类型:package

2.0.0 2020-03-13 12:46 UTC

This package is auto-updated.

Last update: 2024-09-28 16:41:33 UTC


README

Total Downloads Monthly Downloads Daily Downloads License

文档

开始使用omise
代码示例

支持

让我们开始

通过composer安装

composer require ox01code/omise

将config文件放置到项目中

php artisan vendor:publish --tag=config

在.env文件中设置值

OMISE_PUBLIC_KEY=
OMISE_SECRET_KEY=

创建Source 了解更多

$response = OmiseSource::create([
   'amount' => 12345,
   'currency' => 'THB',
   'type' => 'truemoney',
   'phone_number' => '0123456789',
]);
dd($response);

创建Charge 了解更多

$response = OmiseCharge::create([
   'amount' => 12345,
   'currency' => 'THB',
   'return_uri' => 'http://example.com/orders/345678/complete',
   'source' => 'src_*****',
]);
dd($response);