1. Go to this page and download the library: Download owlting/owlpay-laravel library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
owlting / owlpay-laravel example snippets
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
]);