class Bygpay::Deposit::Card
Public Instance Methods
charge(amount, card_data = {})
click to toggle source
{
"card_number" : "4111111111111111", "amount": 1.00, "expiry_month": 6, "expiry_year": 2017, "cvv": 618, "country": "GH", "currency": "GHS"
} Perform a Bankcard debit request
# File lib/bygpay/deposit/card.rb, line 14 def charge(amount, card_data = {}) post(card_deposit_endpoint, card_data.merge(amount: amount)) end