PHP code example of h2akim / billplz
1. Go to this page and download the library: Download h2akim/billplz 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/ */
h2akim / billplz example snippets
namespace H2akim\Billplz;
$billplz = new Billplz([
'api_key' => 'your-api-key'
]);
$billplz->collection()->create([
'title' => 'My Collection'
]);
namespace H2akim\Billplz;
$billplz = new Billplz([
'api_key' => 'your-api-key'
]);
$billplz->collection()->createOpen([
'title' => 'My Collection',
'description' => 'My Open Collection Description',
'amount' => 100 // RM1.00
]);
namespace H2akim\Billplz;
$billplz = new Billplz([
'api_key' => 'your-api-key'
]);
$billplz->bill()->create([
'collection_id' => 'your-collection-id',
'email' => '[email protected] ',
'mobile' => '60123456789',
'name' => 'Mak Jemah',
'due_at' => '1991-4-21',
'amount' => 5000, // RM50
'callback_url' => "http://my-website-with-comic-sans.com/return_url"
]);
namespace H2akim\Billplz;
$billplz = new Billplz([
'api_key' => 'your-api-key'
]);
$billplz->bill()->get([
'bill_id' => 'your-bill-id',
]);
namespace H2akim\Billplz;
$billplz = new Billplz([
'api_key' => 'your-api-key'
]);
$billplz->bill()->delete([
'bill_id' => 'your-bill-id',
]);