class IatsPayments::CustomerLinkClient

Constants

ENDPOINT_URL

Public Class Methods

wsdl_endpoint_url() click to toggle source
# File lib/iats_payments/client/customer_link_client.rb, line 10
def self.wsdl_endpoint_url
  ENDPOINT_URL + "?WSDL"
end

Public Instance Methods

create_acheft_customer_code(message, locals={}) click to toggle source
# File lib/iats_payments/client/customer_link_client.rb, line 82
def create_acheft_customer_code(message, locals={})
  call(:create_acheft_customer_code, { message: message }.merge(locals))
end
create_credit_card_customer_code(message, locals={}) click to toggle source

|——————————————————————————————| | Parameter | Notes/Options | Char. Limit | | ========================================================================================== | agentCode | | 10 | | password | | 10 | | customerIPAddress | This is the IP address of the donor’s computer. | N/A | | | Please send to fully utilise the Fraud tools | | | | available from iATS. IPv4 only. | | | customerCode | You can provide the Token (Customer code); if | 40 | | | none is present, the iATS system will | | | | automatically assign one. | | | firstName | Optional but highly recommended | 100 | | lastName | Optional but highly recommended | 100 | | companyName | | 100 | | address | Optional but highly recommended | 100 | | city | Optional but highly recommended | 40 | | state | State or province (NA only). Optional but | 40 | | | highly recommended | | | zipCode | Optional but highly recommended | 40 | | phone | | 40 | | fax | | 40 | | alternatePhone |Mobile | 40 | | email | | 100 | | comment | | 100 | | recurring | Boolean: true (1)/false (0). | N/A | | | Required field – Use True if iATS will hold | | | | schedule, False if you will. | | | amount | Prevent the use of commas (,) within the dollar | N/A | | | amount fields if possible. iATS reads a comma | | | | as a period in this field to compensate for | | | | different countries use of the comma within | | | | currency. For example: $1,000 | | | beginDate | Value=”dateTime”; ISO 8601 format. | N/A | | | e.g. 2008-10-31T15:07:38.6875000 | | | | (“yyyy-MM-dd'T'HH:mm:ss.fffffffZ”) | | | | Required, but if recurring status is set to false,| | | | use any generic values. iATS will override with | | | | default placeholder data. | | | endDate | Value=”dateTime”; ISO 8601 format. | N/A | | | e.g. 2008-10-31T15:07:38.6875000 | | | | (“yyyy-MM-dd'T'HH:mm:ss.fffffffZ”) | | | | Required, but if recurring status is set to false,| | | | use any generic values. iATS will override with | | | | default placeholder data. | | | scheduleType | Options: Weekly, Monthly, Quarterly, Annually | N/A | | scheduleDate | Options: Monthly: 1~28,29,30 or 31; | N/A | | | Weekly: 1~7 (where Sunday = 1 and Saturday = 7) | | | | Quarterly or Annually: empty string | | | creditCardCustomerName | Donor’s name on credit card. If left empty, we | 30 | | | will use firstName + lastName, and cut at 30 | | | | characters. | | | creditCardNum | | 32 digits | | creditCardExpiry | “MM/YY” | 10 | | mop | NA: VISA, MC, AMX, DSC | N/A | | | UK: VISA, MC, AMX, MAESTR | | | title | | | | country | | | | item1 | | | | item2 | | | | item3 | | | | item4 | | | | item5 | | | | item6 | | | |————————|—————————————————|————-|

# File lib/iats_payments/client/customer_link_client.rb, line 78
def create_credit_card_customer_code(message, locals={})
  call(:create_credit_card_customer_code, { message: message }.merge(locals))
end
delete_customer_code(message, locals={}) click to toggle source
# File lib/iats_payments/client/customer_link_client.rb, line 94
def delete_customer_code(message, locals={})
  call(:delete_customer_code, { message: message }.merge(locals))
end
get_customer_code_detail(message, locals={}) click to toggle source
# File lib/iats_payments/client/customer_link_client.rb, line 98
def get_customer_code_detail(message, locals={})
  call(:get_customer_code_detail, { message: message }.merge(locals))
end
update_acheft_customer_code(message, locals={}) click to toggle source
# File lib/iats_payments/client/customer_link_client.rb, line 90
def update_acheft_customer_code(message, locals={})
  call(:update_acheft_customer_code, { message: message }.merge(locals))
end
update_credit_card_customer_code(message, locals={}) click to toggle source
# File lib/iats_payments/client/customer_link_client.rb, line 86
def update_credit_card_customer_code(message, locals={})
  call(:update_credit_card_customer_code, { message: message }.merge(locals))
end