Method: ActiveMerchant::Billing::EwayManagedGateway#retrieve

Defined in:
lib/active_merchant/billing/gateways/eway_managed.rb

#retrieve(billing_id) ⇒ Object

Get customer’s stored credit card details given by billing_id

Parameters

  • billing_id – The eWay provided card/customer token to charge (managedCustomerID)



97
98
99
100
101
102
# File 'lib/active_merchant/billing/gateways/eway_managed.rb', line 97

def retrieve(billing_id)
  post = {}
  post[:managedCustomerID] = billing_id.to_s

  commit('QueryCustomer', post)
end