Class: JuspayCheckout::Card
- Inherits:
-
ExpressCheckout
- Object
- ExpressCheckout
- JuspayCheckout::Card
- Defined in:
- lib/juspay_checkout/card.rb
Class Method Summary collapse
- .delete(token) ⇒ Object
- .get_info(cardbin) ⇒ Object
-
.get_saved(customer_id) ⇒ Object
DOC - www.juspay.in/docs/api/ec/?shell#get-order-status curl api.juspay.in/orders/145678234 \ -u your_api_key:.
Methods inherited from ExpressCheckout
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
DOC - www.juspay.in/docs/api/ec/?shell#get-order-status curl api.juspay.in/orders/145678234 \ -u your_api_key:
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 |