Skip to content

Instantly share code, notes, and snippets.

@juong89
juong89 / paymentsController
Last active February 1, 2016 02:26
BillPlz API using Ruby
class PaymentsController < ApplicationController
def index
url_collection = 'https://www.billplz.com/api/v2/collections'
url_bill = 'https://www.billplz.com/api/v2/bills'
api_key = 'YOUR-API-SECRECT-KEY' #You can get the secret key in your billplz's setting account
title = "Anything to explainn about your bill"
#Create collection ID
@collection = HTTParty.post(url_collection.to_str,