AddCustomerPaymentMethodProfile

This method allows you to add a new payment method to a customer record.

Description

Multiple payment methods may be stored for each customer. There is no limit to the number of payment methods that can be stored, but only one of these methods may be marked as the default payment method for all future transactions, including recurring billing and manual charges.

All new payment methods will be validated by the system to ensure that the information entered fits the required format for the specified payment method. (I.e.: does the credit card have 16 digits and a future expiration date? Does the check routing number have 9 digits?)

This method requires the use of the CustNum, a unique customer number assigned by the gateway.

Syntax

string AddCustomerPaymentMethodProfile(SecurityToken securityToken, string customerInternalId, PaymentMethodProfile paymentMethodProfile)

Arguments

Type

Name

Description

SecurityToken

securityToken

Merchant security token: used to identify merchant and validate transaction. (required)

string

customerInternalId

Unique customer ID number assigned by the internal system for an existing customer. (required)

PaymentMethodProfile

paymentMethodProfile

Includes method name, description, ID, expiration date, etc. (required)

Return Value

Type

Description

string

The ID of the new payment method.