This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, |