PaymentMethodProfile
Describes a customer payment method.
Description
This object describes a customer payment method. A payment method can be a CreditCard, ACH (electronic check), StoredValue (gift certificate, store credit, auto-reloading prepaid card, etc.), or Invoice. The payment type is specified by setting MethodType to CreditCard, ACH, StoredValue, or Invoice. If MethodType is left blank and credit card information is provided, the type will default to CreditCard. If MethodType is left blank and electronic check information is provided, the type will default to ACH.
The StoredValue method can be as simple as a store credit or as complex as linking to a physical prepaid card or gift card with a magnetic strip. For a store credit or simple balance on account, the only required field is Balance. To use the StoredValue payment method, the merchant account must have stored value transactions enabled.
The Invoice method allows a merchant to collect transactions that will be invoiced at a later date. Balance is increased by the system when an Invoice transaction is received. MaxBalance specifies the maximum balance that a customer can incur before Invoice transactions are declined. Setting MaxBalance to 0 will cause the customer to have no limit. To process Invoice transactions, the merchant account must have invoice processing enabled.
Properties
Type | Name | Description |
---|---|---|
string | MethodType | Type of payment method (CreditCard, ACH, StoredValue, or Invoice). (required) |
integer | MethodID | ID of payment method. This property is ignored when adding a new payment method but required if updating an existing method (read-only). |
string | MethodName | Label for payment method. For example, Work Visa or Personal Checking. |
string | AccountHolderName | Account Holder Name (required) |
integer | SecondarySort | If set to value greater than 0, use this method as backup in case default fails. Secondary methods will be run in ascending order. |
datetime | Created | Date created. (optional) |
datetime | Modified | Date modified. (optional) |
Credit Card
string | CardNumber | Credit card number (required for credit cards). If data is coming from a swiper, base64 encode the entire raw block read from the swiper device and put enc:// at the beginning. Example: enc://AAbbCdEEaa… |
string | CardExpiration | Credit card expiration date in YYYY-MM format. It will also accept MMYY format (required for credit cards). (optional) |
string | AvsStreet | Street address for AVS (address verification system). (Optional but recommended for credit cards.) |
string | AvsZip | Zip code for AVS. (Optional but recommended for credit cards.) |
string | CardCode | CVV2/CID card identification code. This code is not stored and is only used when verifying a new payment method before it is added. (Optional for credit cards.) |
string | CardType | Type of credit card (Visa, MasterCard, etc). This is a read-only parameter and will be ignored if set. |
Electronic Check (ACH)
string | Account | ACH bank account number (required for checks). |
string | AccountType | ACH type of bank account (checking or savings; defaults to checking). |
string | Routing | ACH bank routing number (required for checks). |
string | DriversLicense | Driver's license number used for check guarantee (optional). |
string | DriversLicenseState | Driver's license state (optional). |
string | RecordType | ACH transaction type (optional; should be left blank unless instructed differently by check processor). |
Invoice
double | MaxBalance | The maximum balance that may be charged on an invoice before transactions are declined. |
Stored Value
double | double | The funds left on the account. Transactions against this payment method may not exceed this balance. |
boolean | boolean | Set True if StoredValue card should automatically be reloaded. |
string | ReloadSchedule | Automatic reload schedule. |
double | ReloadThreshold | Balance that will trigger an automatic reload. |
double | ReloadAmount | Amount to automatically reload. |
integer | ReloadMethodID | Payment method to use for reloading card. |
eBizCharge.PaymentMethod payMethod = new eBizCharge.PaymentMethod();
payMethod.CardExpiration = "1212";
payMethod.CardNumber = "4000100011112224";
payMethod.AvsStreet = "123 Main st.";
payMethod.AvsZip = "90046";
payMethod.MethodName = "My Visa";
Updated over 1 year ago