Intergrate BillPlz API using Ruby
Introduction to API can read here: https://www.billplz.com/api
API FLow:
- Customer visits your site.
- Customer chooses to make payment.
- Your site creates a Bill via API call.
- Billplz API returns Bill's URL.
- Your site redirects the customer to Bill's URL.
- The customer makes payment via payment option of choice.
- Billplz sends a server-side update to your site on Bill's status on payment failure or success.
8a) Billplz redirects the customer back to your site if redirect_url is not empty, or
8b) The customer will see Billplz receipt.
gem install httparty , refer here: https://github.com/jnunemaker/httparty