Integrate Billplz with your Minisite written with HTML code.
- Linux Server Environment
- PHP version 5.5 and above (Tested with PHP 7.0)
Download this Repository and upload the individual files to your minisite directory. (It can be same directory with your Minisite or it can be in subdirectory which is Recommended)
Open configuration.php file with your favourite text editor and edit the following information:
Replace with your values in the single quotes
- 'APIKEY' => 'Your API Key here'
- Optional 'COLLECTION' => 'Your Collection ID here'
- 'X_SIGNATURE' => 'Your X Signature Key here'
- 'http://www.google.com/' => 'The full URL to your minisite or the full URL to this script subdirectory.
- 'http://www.google.com/success.html' => 'The full URL to redirect your payee after successful payment'. It can be overriden later
- Optional: Set $fallbackurl value in the event of failure to redirect user to payment page
- Optional: Set $amount value for fixed payment value. Useful to avoid user setting their own price
For integration with Affiliate Pro software: (Optional)
- Include the tracking code in file billplzpost.php after // Include tracking code here
Line 226:
include('affiliate-pro/controller/affiliate-tracking.php');
- Include the tracking code in file verifytrans.php after // Include tracking code here
Line 40:
$sale_amount = number_format((float)($this->data['amount']/100), 2, '.', ''); $product = $this->data['description'];** global $commission;** include('affiliate-pro/controller/record-sale.php');**
- Insert the code below in configuration.php after $fallbackurl = ''; and replace '30' with your own value
Line 22:
$commission = '30';
You need to have a form which collect and pass the input to the script.
-
Information that you can collect from using the HTML Form
- Payer Name => Mandatory
- Payer Email => Mandatory
- Payer Mobile Phone Number => Optional
- Amount => Mandatory (NOT REQUIRED: If $amount value has been set at Configuration stage)
- Notification => Optional
- Reference 1 Label => Optional
- Reference 1 Data => Optional
- Reference 2 Label => Optional
- Reference 2 Data => Optional
- Payment Description => Mandatory
- Success URL => Optional
- Collection ID => Optional
-
The HTML Form input name must be according to the name below:
- Payer Name => nama
- Payer Email => email
- Payer Mobile Phone Number => telefonbimbit
- Amount => amaun
- Notification => deliver
- Reference 1 Label => reference_label_1
- Reference 1 Data => reference_1
- Reference 2 Label => reference_label_2
- Reference 2 Data => reference_2
- Payment Description => description
- Success URL => successpath
- Collection ID => collection_id
-
Use input method="post" and action to file "billplzpost.php"
- Please refer to index.php file
Facebook: Billplz Dev Jam