Method: ActiveMerchant::Billing::PinGateway#unstore
- Defined in:
- lib/active_merchant/billing/gateways/pin.rb
#unstore(token) ⇒ Object
Unstore a customer and associated payment method.
53 54 55 56 57 58 59 60 61 |
# File 'lib/active_merchant/billing/gateways/pin.rb', line 53 def unstore(token) customer_token = if /cus_/.match?(token) get_customer_token(token) else token end commit(:delete, "customers/#{CGI.escape(customer_token)}", {}, {}) end |