class JuspayCheckout::Card
Public Class Methods
delete(token)
click to toggle source
DOC - www.juspay.in/docs/api/ec/?shell#refund-order
# File lib/juspay_checkout/card.rb, line 18 def delete(token) JuspayCheckout::ExpressCheckout.request("/card/delete", 'post', {card_token: token}) end
get_info(cardbin)
click to toggle source
DOC - www.juspay.in/docs/api/ec/?ruby#create-order
# File lib/juspay_checkout/card.rb, line 13 def get_info(cardbin) JuspayCheckout::ExpressCheckout.request("/cardbins/#{cardbin}?merchant_id=bewakoof&options.check_atm_pin_auth_support=true", 'get') end
get_saved(customer_id)
click to toggle source
DOC - www.juspay.in/docs/api/ec/?shell#get-order-status curl api.juspay.in/orders/145678234 \ -u your_api_key:
# File lib/juspay_checkout/card.rb, line 8 def get_saved(customer_id) JuspayCheckout::ExpressCheckout.request("/cards?customer_id=#{customer_id}", 'get') end