owlting / owlpay-laravel
There is no license information available for the latest version (v1.2.1) of this package.
Owlpay SDK.
v1.2.1
2024-09-25 13:57 UTC
Requires
- php: ^7|^8.0|^8.1|^8.2
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: >=6.2|^7.0.1
Requires (Dev)
- orchestra/testbench: ^3.5
- dev-main
- v1.2.1
- v1.2.0
- v1.1.0
- v1.0.0-beta.5
- v1.0.0-beta.4
- v1.0.0-beta.3
- v1.0.0-beta.2
- v1.0.0-beta
- v0.9.2
- v0.9.1
- v0.8.5
- v0.8.4
- v0.8.3
- v0.8.2
- v0.8.1
- v0.8.0
- v0.7.0
- v0.6.2
- v0.6.1
- v0.5.11
- v0.5.10
- v0.5.9
- v0.5.8
- v0.5.7
- v0.5.6
- v0.5.5
- v0.5.4
- v0.5.3
- v0.5.2
- v0.5.1
- v0.4.1
- v0.3.6
- v0.3.5
- v0.3.4
- v0.3.3
- v0.3.2
- v0.3.1
- v0.2.4
- v0.2.3
- v0.2.2
- v0.2.1
- v0.1.4
- v0.1.3
- v0.1.2
- v0.1.1
This package is not auto-updated.
Last update: 2024-11-21 10:17:54 UTC
README
OwlPay Laravel SDK provides ease to use APIs and internal importing for Laravel, it's provide several use cases following.
Warning
This package is developing now, if we have a huge changes, the semi version is going to modify.
Requirements
- PHP >= 7.3
- PHP extension required
- curl extension
- json extension
- mbstring extension
- Laravel >= 5.4
Installation
Also, you need to publish and configure the environment keys in your application.
$ php artisan vendor:publish --provider="Owlting\OwlPay\Providers\OwlPayServiceProvider"
Finally, set the environment variables.
OWLPAY_API_URL=https://api.owlpay.com OWLPAY_APPLICATION_SECRET=<OWLPAY_APPLICATION_SECRET>
Get OWLPAY_APPLICATION_SECRET
according to the tutorial article
https://docs.owlpay.com/owlpay-guideline/zh/page-introduction/role_company/developer.html#_4-%E8%A8%AD%E5%AE%9A-api-key
Send order to OwlPay
use Owlting\OwlPay\Facades\OwlPay; $order = Order::first(); $meta_data = [ 'sku' => 'SKU#1234', ]; OwlPay::createOrder([ 'application_order_uuid' => $order->order_number, // order number from your application 'currency' => $order->currency, // TWD 'total' => $order->total, // paid price, 100.00 'application_vendor_uuid' => $order->vendor_number, // vendor number from your application 'meta_data' => $meta_data, // extra information with key-value format ]);