PHP code example of byrcsc / laravel-payrex
1. Go to this page and download the library: Download byrcsc/laravel-payrex 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/ */
byrcsc / laravel-payrex example snippets
use ByRcsc\LaravelPayrex\Facades\Payrex;
$intent = Payrex::paymentIntents()->create(
amount: 10_000,
paymentMethods: ['card', 'gcash'],
description: 'Order #RC-1042',
);
$intent->id;
$intent->status;
$intent->clientSecret;