Nasrul Hazim Bin Mohamad

Laravel: Billplz Helper

Jan
12

Billplz is a simple cash solution to send bills and collect payments in real-time.

There’s already a package available for PHP.

We going to create a wrapper and helper for Laravel application for the Billplz.

First, create a config file for Billplz – config/billplz.php

Then create a utility class in app/Utilities directory:

Lastly, create a helper in app/Support directory named helpers.php, and add the following command.

Now you’re done setting up your Billplz helper. You just need to setup BILLPLZ_API_KEY and BILLPLZ_VERSION in your .env to start use the Billplz helper.

Following are some example of the usage:

Billplz also provide sandbox for you to test. Do refer Billplz API documentation for more details.

Leave a Reply

Your email address will not be published. Required fields are marked *

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax

two × four =