ox01code / omise
这是一个omise的包
2.0.0
2020-03-13 12:46 UTC
Requires
- php: ^7.2.5
- guzzlehttp/guzzle: ~6.0
This package is auto-updated.
Last update: 2024-09-28 16:41:33 UTC
README
文档
支持
让我们开始
通过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);