Method: ActiveMerchant::Billing::UsaEpayAdvancedGateway#add_customer
- Defined in:
- lib/active_merchant/billing/gateways/usa_epay_advanced.rb
#add_customer(options = {}) ⇒ Object
Add a customer.
Options
-
:id– merchant assigned id -
:notes– notes about customer -
:data– base64 data about customer -
:url– customer website -
:billing_address– usual options -
:payment_methods– array of payment method hashes.-
:method– credit_card or check -
:name– optional name/label for the method -
:sort– optional integer value specifying the backup sort order, 0 is default
-
Recurring Options
-
:enabled–trueenables recurring -
:schedule– daily, weekly, bi-weekly (every two weeks), monthly, bi-monthly (every two months), quarterly, bi-annually (every six months), annually, first of month, last day of month -
:number_left– number of payments left; -1 for unlimited -
:next– date of next payment (Date/Time) -
:amount– amount of recurring payment -
:tax– tax portion of amount -
:currency– numeric currency code -
:description– description of transaction -
:order_id– transaction order id -
:user– merchant username assigned to transaction -
:source– name of source key assigned to billing -
:send_receipt–trueto send client a receipt -
:receipt_note– leave a note on the receipt
Point of Sale Options
-
:price_tier– name of customer price tier -
:tax_class– tax class -
:lookup_code– lookup code from customer/member id card; barcode or magnetic stripe; can be assigned by merchant; defaults to system assigned if blank
Response
-
#message– customer number assigned by gateway
371 372 373 374 |
# File 'lib/active_merchant/billing/gateways/usa_epay_advanced.rb', line 371 def add_customer( = {}) request = build_request(__method__, ) commit(__method__, request) end |