Method: ActiveMerchant::Billing::UsaEpayAdvancedGateway#add_customer_payment_method
- Defined in:
- lib/active_merchant/billing/gateways/usa_epay_advanced.rb
#add_customer_payment_method(options = {}) ⇒ Object
Add a payment method to a customer.
Required
-
:customer_number– number returned by add_customer response.message -
:payment_method-
:method– credit_card or check -
:name– optional name/label for the method -
:sort– an integer value specifying the backup sort order, 0 is default
-
Optional
-
:make_default– settrueto make default -
:verify– settrueto run auth_only verification; throws fault if cannot verify
Response
-
#message– method_id of new customer payment method
482 483 484 485 486 487 |
# File 'lib/active_merchant/billing/gateways/usa_epay_advanced.rb', line 482 def add_customer_payment_method( = {}) requires! , :customer_number request = build_request(__method__, ) commit(__method__, request) end |