Table of Contents


ChargeInfo

This class is used as a common data model to capture payment information and process credit card payments using Magentrix API. 
The payment can be processed through Stripe, Authorize.Net or Moneris providers.

Below is a list of Properties of this class:

Properties

NameTypeDescription
Amount*decimalCharge Amount
CardCvc*stringCredit Card's security code (usually the 3 digits in the back of the card)
CardNumber*stringCredit Card number
CitystringCity of the billing address
CountrystringCountry of the billing address
Currency*string3 character ISO code, e.g: USD or CAD
DescriptionstringDescription that goes with the payment
EmailstringEmail address of the billing contact
ExpMonth*intMonth the card is expiring
ExpYear*intThe year the card is expiring.
InvoicestringA reference number for the payment (only applicable to Auth.net)
Firstname*stringFirst Name of the billing contact
Lastname*stringLast Name of the billing contact
PaymentProfileIdstring 
PhonestringPhone number of billing contact
StatestringState/Province of the billing address
Street1stringStreet of billing address
Street2stringStreet of billing address
Tokenstring 
ZipCodestringZip or Postal code of the billing address