1. Go to this page and download the library: Download pashazahari/billplz-bundle 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/ */
pashazahari / billplz-bundle example snippets
/**
* Note: if you have set 'enable_sandbox' to true, billplz will use 'sandbox' configuration only.
*/
function createPayment(BillplzInterface $billplz)
{
/**
* Assume you have set { name: "product", id: "ae12345"} in collection.
*
* It will get the id from the given name, you don't have to do anything.
*/
$response = $billplz->createBill("product", "[email protected]", null, "Lorem Ipsum", 100, "https://127.0.0.1/payment/success", "A new product", []);
// your own logic here...
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.