Class: JuspayCheckout::Card

Inherits:
ExpressCheckout show all
Defined in:
lib/juspay_checkout/card.rb

Class Method Summary collapse

Methods inherited from ExpressCheckout

credential_config, request

Class Method Details

.delete(token) ⇒ Object



18
19
20
# File 'lib/juspay_checkout/card.rb', line 18

def delete(token)
	JuspayCheckout::ExpressCheckout.request("/card/delete", 'post', {card_token: token})
end

.get_info(cardbin) ⇒ Object



13
14
15
# 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) ⇒ Object



8
9
10
# File 'lib/juspay_checkout/card.rb', line 8

def get_saved(customer_id)
	JuspayCheckout::ExpressCheckout.request("/cards?customer_id=#{customer_id}", 'get')
end