Giter VIP home page Giter VIP logo

billplz-for-minisite's Introduction

Billplz for Minisite

Integrate Billplz with your Minisite written with HTML code.

Minimum System Requirement

  • PHP version 5.6
  • PHP libcURL

Configuration

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'
  • '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'.
  • 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)

  1. Include the tracking code in file billplzpost.php replacing

// Include tracking code here with

include('affiliate-pro/controller/affiliate-tracking.php');
  1. Include the tracking code in file redirect.php replacing

// Include tracking code here with

$sale_amount = number_format((float)($rbody['amount']/100), 2, '.', '');
$product = $rbody['description'];
include('affiliate-pro/controller/record-sale.php');
  1. Insert the code below in configuration.php. Replace '30' with your own value
$commission = '30';

How to use

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

    1. Payer Name => Mandatory
    2. Payer Email => Mandatory if (3) is not set
    3. Payer Mobile Phone Number => Mandatory if (2) is not set
    4. Amount => Mandatory if $amount value is not defined in configuration.php
    5. Reference 1 Label => Optional
    6. Reference 1 Data => Optional
    7. Reference 2 Label => Optional
    8. Reference 2 Data => Optional
    9. Payment Description => Mandatory if $description value is not defined in configuration.php
    10. Collection ID => Mandatory if $collection_id value is not defined in configuration.php
  • The HTML Form input name must be according to the name below:

    1. Payer Name => name
    2. Payer Email => email
    3. Payer Mobile Phone Number => mobile
    4. Amount => amount
    5. Reference 1 Label => reference_1_label
    6. Reference 1 Data => reference_1
    7. Reference 2 Label => reference_2_label
    8. Reference 2 Data => reference_2
    9. Payment Description => description
    10. Collection ID => collection_id

Form Example:

  • Please refer to index.php file

Issues?

Facebook: Billplz Dev Jam

billplz-for-minisite's People

Contributors

wzul avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.