Ruby SDK for lazerpay finance.
Simply add this line to your application's Gemfile:
gem 'lazerpay'
And then execute:
$ bundle
Or install it yourself as:
$ gem install lazerpay
require 'lazerpay'
lazerpay = LazerPay.new( public_key, secret_key );
.env
file.
The initialize payment method allows you to initiate payment directly to Lazerpay by passing in the payment details
payment_details = lazerpay.payment.init({
customer_name: "Owoade Anuoluwapo",
customer_email: "owoadeanu@yahoo.com",
coin: "USDT",
currency: "NGN",
accept_partial_payment: false
})
To know more about the body attributes visit the docs
To verify transactions use the verify method on the payment object passing your transaction reference or id as an argument.
payment_status = lazerpay.payment.verify( "XcaAbnyQ" )
standard_link_object = lazerpay.payment.get_standard_link( payload )
To know about content of the payload object click here
donation_link_object = lazerpay.payment.get_dontion_link( payload )
To know about content of the payload object click here
bank_payout_object = lazerpay.payout.bank( payload )
To know about content of the payload object click here
crypto_payout_object = lazerpay.payout.crypto( payload )
To know about content of the payload object click here
To initiate a crypto deposit, the asset to be deposited must be passed an argument. Accepted assets: USDT | BUSD | USDC | DAI
crypto_deposit_object = lazerpay.crypto_deposit.get_wallet_address( token )
Initiate FIAT deposit
fiat_deposit_object = lazerpay.fiat_deposit.init( payload )
To know about content of the payload object click here
Get funding rate
funding_rate = lazerpay.fiat_deposit.getting_funding_rate( currency )
Currency can be either USD | NGN
Get accounts available for funding
funding_accounts = lazerpay.fiat_deposit.getting_available_accounts
swap_object = lazerpay.crypto_swap.init( payload )
To know about content of the payload object click here
swap_object = lazerpay.crypto_swap.get_swap_amount( payload )
To know about content of the payload object click here
transaction = lazerpay.transaction.get( reference )
transactions = lazerpay.transaction.get_all
Please feel free to fork this package and contribute by submitting a pull request to enhance the functionalities.
Created with 🧡 by Owoade