PHP code example of pay-hub / sdk-laravel
1. Go to this page and download the library: Download pay-hub/sdk-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/ */
pay-hub / sdk-laravel example snippets
use PaymentHub\PaymentHub;
$url = PaymentHub::createPayUrl([
"order_id" => "ORD_1001",
"amount" => 5000,
"currency" => "USD",
"return_url" => "https://app.example.com/payment-result",
]);
$result = PaymentHub::verifyReturn($_GET);