PHP code example of haaruuyaa / xendit-laravel-api

1. Go to this page and download the library: Download haaruuyaa/xendit-laravel-api 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/ */

    

haaruuyaa / xendit-laravel-api example snippets


use Haaruuyaa\XenditApi\Facades\Ewallet;

// To create an ewallet payment
Ewallet::createPayment();
// To create an ewallet Void
Ewallet::createVoid($id);
// To create an ewallet Refund
Ewallet::createRefund($id);
// To get an update for the ewallet charge status
Ewallet::getPaymentStatus($id);