Charges and Transactions
Chargent utilizes standard terminology for online credit card and electronic check processing. As a user of an online payment gateway you may already be familiar with Authorize, Charge, Void and Refund. Here are the general definitions as used in Chargent:
Authorize: This creates an authorization only. Authorizations are a temporary transaction recommended to either void or process the charge within a few days. It’s used for, but not limited to the following situations.
- Making sure a credit card is valid or has the funds before processing a future charge.
- Holding funds prior to shipping merchandise.
- Holding funds until a final amount is calculated.
- An Authorization is done to obtain a token and then Capture the transaction.
- If an Authorization has been previously submitted it will capture the authorization and charge the credit card. This will change the Transaction Status field from Authorization to Charge.
Charge: When the Charge button is pressed, you will see a popup asking for the CVC (Card Verification Code). Once the CVC is entered and the Charge button pressed. one of the following instances will occur.
Void: Voiding will cancel a transaction that has not yet been settled (Charge or Refund from same day typically) or expired (Prior Authorization). You should always perform Voids from the Transaction record.
Refund: The Refund and Partial Refund button will refund a transaction that has been previously settled (between 1-120 days typically). You should always perform Refunds from the Transaction record.
Credit - The Credit button can send funds not tied to a previously captured transaction. Only supported on some payment gateways.
Please refer to the gateway guide for your particular payment gateway for additional information.
There are two primary ways of processing payments with Chargent. Chargent Anywhere and Chargent Orders.
Chargent Anywhere: Chargent Anywhere can be added to any object in Salesforce. This will allow you to process payments using Chargents popular Payment Request feature, where end users get a link to enter their payment details. If you are on Platform edition of Chargent or above you can also process phone / MOTO payments using the Payment Console.
Payment Request and Payment Console are also available as buttons on the Chargent Orders page.
A Note on PCI Compliance
For reduced PCI compliance scope, we recommend using these features when capturing initial payment data, as both Payment Request and Payment Console are able to tokenize payment information without ever saving account numbers to Salesforce.
Once you have tokenized payment data, you can run additional transactions from the Chargent Anywhere UI or the Charge / Authorize buttons on the Chargent Order record.
It is possible to enter credit card and bank account numbers directly into the Chargent Order record, and save them in encrypted fields there, but this is not recommended for compliance reasons.
For more information, please see our Salesforce PCI Compliance guide.
You should already have the following setup and configured in Salesforce before proceeding
Payment Request requires Chargent Sites Edition or above
Payment Console requires Chargent Platform Edition or above
Chargent Anywhere can be added to any object and provides you with 4 buttons to make payment processing easy from anywhere within your Salesforce Org.
- Send Payment Request: This allows you to send an email to someone with a secure link to a payment page where they can enter their credit card or bank information to make a payment.
- Payment Console: The Payment Console is a pop-up window that allows you to enter payment information for phone or MOTO orders, as well as configure Recurring Billing.
- Add Cash: If you are adding a cash payment it will create a transaction record and associate it with the object you are processing payments on.
- Add Check: If you are taking a paper check it will create a transaction record and associate it with the object you are processing payments on.
Send Payment Request
Our Payment Request feature allows you to generate and send a payment link (URL) to your customers directly from any object you’ve configured Chargent Anywhere on. This payment link can also be used in Salesforce email templates, your own email service / application, over IM, or really any media that has clickable links! Let’s take a look at how Payment Request works.
- Click the Send Payment Request button in the Chargent Anywhere Lightning component
- Click the Contact picklist to choose the contact to which you’re sending the request (You may also manually enter an email address in the Recipient Email Address field instead).
- Enter the Request Amount
- Enter the Payment Request Type: You have 3 types of Payment Request Types
- Charge Full Amount - This will charge the total of the Payment Request
- Authorize Full Amount - This creates an authorization only and does not charge the transaction
- Authorize Minimum - This will only authorize the minimum amount your gateway will allow (this is generally $1.00)
Here is the email that the customer will receive showing the link to make their payment (fully customizable Salesforce email template).
The payment link takes them to a secure payment page, where their contact information and the amount is already populated. The customer simply has to enter their credit card, CSC (Card Security Code), and Expiration Date then press Charge.
The Payment Request will create the following records in your Salesforce Org:
- Chargent Order - the Chargent Order acts as a payment source for the transaction. Its where the token will be stored for future payments and recurring billing.
- Chargent Payment Request - the Payment Request object consists of all Payment Requests for all transactions. Each payment request generated is associated with a Chargent Order.
- Transaction - Once the Payment Request is completed and payment has been made a transaction record is created showing the payment and associating the transaction back to the Chargent Order.
Once the Payment Request is paid, the Status field will change from Created to Paid.
For more information on setting up and configuring the Payment Request feature check our Payment Request Setup & User Guide.
Payment Console & Recurring Billing
In order to use Recurring Billing you need to have the Apex batch Scheduled. For more information on setting up the Apex batch please check out our full documentation on Recurring Billing.
The Chargent Anywhere Payment Console enables you to set up one-time or recurring payments. You can also register tokens for future payment processing. Payment Console allows you to process an initial amount and set up recurring payments in the same process.
There are several fields within the Payment Console Layout that will allow you to process initial and recurring charge (as well as register tokens and authorize payments).
- One Time / Recurring
- Card / Bank Account
- Process Type (Register Token, Authorize, and Charge)
To process a one time charge:
- Click on the Payment Console Button
- Select your contact from the dropdown menu (if you don’t have an existing contact record you can add a new one with the billing address)
- Click Next
- Enter in the credit card information
- Press the Charge button
Check out our full Recurring Billing documentation and setup page to learn how to setup Recurring Billing using the Payment Console.
Add Cash / Add Check
Add Cash and Add Check both will create a transaction but do not send the payment information to your gateway. They are designed to help you keep track of additional payment types that are associated with the record. Add Check refers to a paper check. These buttons can also be hidden from the page.
For additional information on configuring Chargent Anywhere please see our full documentation page or request the installation and configuration guide.
- Press Add Cash or Add Check
- You can either select an existing Chargent Order or create a new one by selecting the box that says Create New Order
- Enter the Payment Date
- (Paper Check only) Add the check number
- Enter the Amount
- Click Save
For customizing Chargent Anywhere, please check out our Chargent Anywhere Quick Start Guide.
Processing Payments Using Chargent Orders
You can also use the Chargent Orders records directly to process payments. Similar to Chargent Anywhere, which creates a Chargent Order record in the background, you can manually create a Chargent Order record and use the Charge, Authorize, Send Payment Request and use the Payment Console.
Chargent recommends you use tokenization rather than storing sensitive credit card information in Salesforce. Tokens can be used in place of the credit card in order to provide greater security. Storing credit card numbers is not recommended for PCI Compliance which is why Chargent provides settings to have the credit card data cleared after a successful transaction, after any transaction, or when a token is present on the Gateway record.
The minimum fields required to process a credit card transaction will vary slightly depending on your payment gateway and your settings. As a best practice, you should complete the basic fields below using the Payment Console or Payment Request tools.
In general terms, however, the following fields should be populated:
- Charge Amount: This is the amount that will be sent to the payment gateway. This field is defaulted to the balance due unless the manual charge box is checked. If you don’t check the manual charge box then you want to fill out the subtotal field, and optionally the shipping and tax fields. See Chargent Order Amounts for more information.
- Billing First Name and Billing Last Name (these automatically populate Credit Card Name when the information gets sent to the gateway)
- Billing Address: The address associated with the credit card
- Billing Zip Code:
- Payment Method (Credit Card or Check -- Check applies to ACH / electronic check / Direct Debit)
- Card Type (Visa, Mastercard, Amex, Discover and other payment sources)
- Card Number
- Card Expiration Month (2 digits - MM)
- Card Expiration Year (4 digits - YYYY)
The CVC (Card Verification Code) will be required after you press the Charge button. If you have the CVC required with your payment gateway, then this needs to be populated when the popup asks for it. If you don’t have it required then you can leave it blank and press the Charge button.If you are doing recurring billing you will need to use tokenization and provide the CVC for the initial transaction. Once a token is present recurring payments will occur as scheduled.
Optional but commonly used:
- Billing Email (some gateways will send a receipt to your customer - Chargent also sends a receipt to this email address when a transaction is processed).
- Invoice Number (may reduce your fees, useful for reconciliation).
- Order Information (may appear on customer receipt as description)
For ACH / eCheck transactions:
- Bank Account Type (Checking, Savings or Business Checking)
- Bank Account Number
- Bank Routing Number
- Bank Account Name (person or company name on bank account)
- Bank Name (name of the financial institution)
A Visualforce field that you can add to the page layout to give you a summary of the card information - Type, Last 4, and Expiration Date. It appears green if the card is more than 2 months from expiration, yellow if card is within 2 months of expiration, and red if the card is expired. When adding this Visualforce page to the Page Layout, update the settings to include the field name.
Chargent Order Amounts
The Chargent Orders Transaction package has the following fields that are involved in calculating a payment value:
The Total field is automatically populated from these three fields. The Balance Due field is made up of the Total minus the total of all past transactions, including both Charges & Refunds. The Balance Due field also populates the Charge Amount field which is the amount sent to be processed with your payment gateway.
For complete information on Recurring Billing from the Chargent Order record and descriptions of all fields, check out our complete Recurring Billing documentation
Refunds & Voids
Refunds and Voids should always be initiated from the Transaction Record.
- In Lighting you need to have My Domain enabled within your Salesforce settings to see Lightning Actions. These buttons will need to be added to your Transaction Page Layout. You will find them under “Mobile & Lightning Actions” within the Page Layout when adding them.
Refunds: Refunds can be done once a transaction has settled in your gateways batch (typically nightly). Refunds mean that the credit card statement will show a charge and then a refund as a separate record.
Refunds can be made against settled transactions for up to 120 days typically. Refunds are shown as a separate Transaction record in Salesforce with the Type equal to Refund and a negative amount to balance the total fields.
Voids: Voids will cancel a charge before it has been settled. For example, if you charge a credit card incorrectly, you can void it that same day, and it will not be processed when your daily batch settlement happens.
Voids will change the original transaction Type from Charge, Authorize, or Refund to Void in Salesforce, and does not create a separate transaction record. You can also void Refunds if you refunded a transaction by mistake.
Partial Refunds: With most payment gateways it is possible to do partial refunds using Chargent's Partial Refund button.
In some cases even if Chargent sends a different amount for a refund, the gateway references the original transaction amount only. For this reason, we recommend confirming during your testing period that the proper amounts were refunded.
It is possible to make multiple Partial Refunds against a single transaction as long as the total of the refunds do not add up to more than the original Transaction amount.
Unlinked Credits and Unreferenced Credits
Unlinked Credits (credit cards): Some payment gateways allow you to enable what is called Unlinked Credits to issue refunds beyond the 120 day window, refund transactions made in another system, or even send payments. Unlinked Credits are available for the following gateways. Unlinked Credits may have a different name depending on your gateway provider.
- Merchant e-Solutions
- Network Merchants (NMI)
Unreferenced Credits (ACH / Direct Debit): Some gateways allow you to do Unreferenced Credits. This is the option to send payments to a person’s checking account using the Routing Number and Bank Account Number when the transaction is not a refund of a previous charge. Unreferenced Credits are available from the following gateways. Unreferenced Credits may have a different name depending on your gateway provider.
- Network Merchants (NMI)
- Fat Zebra
Every time Chargent calls out to your payment gateway to send credit card or ACH transactions, it creates a transaction record in Salesforce containing the data it receives in response.
Transactions is a custom object in Salesforce, related to Chargent Orders as a Master-Detail relationship. The list of transactions can be found under the Related tab on the Chargent Order.
Almost all the data in a Chargent Transaction record has been received from your payment gateway in response to the callout Chargent made. Key fields include:
- Transaction ID: An identifying name for the transaction, automatically generated by Salesforce.
- Gateway Date: The date and time of the transaction.
- Gateway ID: The identifying transaction number received back from the payment gateway (sometimes called a transaction ID or transaction number on the gateway side)
- Type: The type of transaction submitted (Charge, Authorization, Refund, Void)
- Response Status: The status of the transaction received from the payment gateway (Approved, Declined, Error)
- Response Message: Additional transaction details received from the payment gateway ("This transaction has been approved." etc.)
Other fields which can be useful include:
- Recurring: This checkbox is set by Chargent, and shows whether a particular transaction was created by the recurring batch.
- Authorization: The authorization code returned by the payment gateway.
- Response, Response Code, Reason Code: These responses can be useful in understanding declines or errors, so check your payment gateway website for more information.
- Gateway Response: The full text of the response from your payment gateway, sometimes useful in troubleshooting a transaction.
Understanding Response Codes and Messages
The Response Code, Reason Code and other fields in the Chargent transaction have been returned to Salesforce by your payment gateway. If a transaction is declined or there is an error, you can often obtain more information by entering these codes into a search engine, or consulting the documentation provided by your payment gateway provider.
Here are some helpful links to understanding the decline reasons or support options for your specific gateway. Not all gateways have the response codes / reason codes listed on their website and may advise you to contact the issuing bank for the specific decline reason.
- eProcessing Network
- IATS Payments
- Merchant e-Solutions
- Merchant Warrior
- PayPal Payflow Pro
Creating and Updating Transaction Records
Chargent references existing transactions when running a recurring billing schedule, so be careful not to edit recurring transactions. In general, making changes to any existing transaction records is not recommended.
To manually create transaction records for paper checks, cash, or other payment methods not automatically controlled by Chargent, please see cash and paper check instructions.
Chargent creates a new Transaction record for each Charge, Authorization, or Refund. The only time that we update an existing Transaction record is in the case of a Void. In this case, the Transaction Type of an existing Charge, Authorization or Refund is changed to Void, since the Transaction was canceled.
Historical transactions can be imported into Chargent, but it takes data migration expertise to do everything correctly. Please contact us for additional advice and/or a referral to a Chargent consulting partner who can assist you.
Additional Notes on Transactions
- As of 5.20 Chargent, for some gateways, will update transactions that were originally started in Chargent with the latest status from certain payment gateways. Transaction Sync is available for the following Gateways.
- Chargent will generally attempt to send any transaction to your payment gateway, unless it can determine ahead of time that the charge will be declined (for example, an invalid card number length or expiration date in the past).
- If the Gateway ID field says Chargent Error, this means that Chargent prevented the transaction from being sent to your payment gateway. If there is another value in the Gateway ID field, it means that the data in the Transaction record was generated by your payment gateway and sent to Chargent.
- Each payment gateway handles duplicate transactions differently. Some gateways will decline a second transaction where the billing information and amount match a previous transaction within a certain time period. Other gateway may allow it but may flag it as a potential duplicate.
If a credit card is declined, a transaction record will be written with Response Status = Declined. There may be Response Codes in the transaction record with additional information provided by the payment gateway (please see Transaction Records for more information and links to response code lookup tools).
You can then attempt the charge again on a later date, contact the customer for updated billing details, or send a payment request to the customer.
Recurring Billing Declines
If a card is declined as part of the scheduled Apex batch that runs recurring billing transactions:
- Payment Status will automatically change from Recurring to Error.
- Once you have received updated billing information, change the Payment Status back to Recurring.
- If you have processed a charge manually outside of the recurring billing schedule by clicking the Charge button, be sure to set the Payment Start Date ahead to the next time the record should be billed, to avoid a recurring charge the next time the batch runs.
Entering Cash and Paper Check Payments
You can add a cash or paper check payment by creating a manual transaction record and indicating the Payment Method of Cash or Check.
- Click the AppLauncher in Salesforce
- Click on Transactions
- Click the New button
- Enter the following fields.
- Gateway Date: Payment Date and Time
- Gateway ID: Enter the Check Number or Cash
- Type: Charge
- Response Status: Approved
- Amount: The Amount of Cash or Check
- Payment Method: Cash or Check
Manual transactions will count in the summary fields such as "Total Transactions" and related calculations such as "Balance Due".
Email Receipts and Notifications
If you are sending receipts from Salesforce, you should disable Email receipts from your Payment Gateway. Most Payment Gateway interfaces have a setting to turn receipts off.
Most payment gateways will send an email receipt automatically to your customer, as soon as a charge (authorization and capture) goes through. The email address that Chargent sends to the Payment Gateway is the Billing Email field.
Key Chargent fields for Receipts
- Billing Email: This will be the email address the payment gateway will send an email to
- Order Information -- This usually appears in the "Description" field of the gateway receipts. This field is limited to 255 or fewer characters.
- Invoice Number -- This sends the invoice number to the gateway.
- Charge Amount -- This is the amount that Chargent sends to the payment gateway.
Preventing Gateway Receipts
You can often control whether a receipt is sent or not by logging into your payment gateway web interface and altering the settings there.
If you don't want your customer to receive the email, or you wish to send them your own email receipt from Salesforce with your branding / formatting, one option is removing the email address from the Billing Email field on the Chargent Order.
Sending Email Receipts from Salesforce
Chargent stores all billing and transaction data 100% natively inside Salesforce. You can modify the email template in Salesforce to use Chargents trigger to send personal email receipts using your company’s logo and custom fields. You can also create your own Workflow and Trigger with your own custom information. Check out Customizing Chargent Email Receipts and Notifications for more information.
If your payment gateway does not have a receipt setting, you should contact their support. You can also simply leave the Chargent Billing Email field blank, so it will not be sent to the payment gateway.
The Chargent Customer Receipt workflow rule uses the following criteria:
- Transaction: Response Status = Approved
- Transaction: Type = Charge
If you are manually entering paper check or cash transactions in Chargent, and don't wish to send receipts for those transactions, you can modify the Workflow rule to add an additional criteria such as:
- Transaction: Payment Method = Credit Card
What are Unresolved Transactions?
An Unresolved Transaction is when a Transaction record can’t be created or saved due to a Salesforce configuration error. Errors can happen due to Process Builder, Validation Rules, Triggers, custom Apex code or other conflicts. Since Transactions have a master-detail relationship to the Chargent Order, if the Chargent Order cannot be updated or saved, the Transaction cannot be either.
When an error occurs, an Email Notification is sent to the email address listed under the Chargent Admin Email Address you have listed in your Chargent Settings.
Chargent’s Unresolved Transactions feature will save a copy of the transaction for the Chargent Order, that can be reparented using its interface. Once the error has been fixed you will then be able to quickly attach the Transaction to the Chargent Order.
How to access the Unresolved Transactions object
You will see all the transactions that could not be written.
If the error is corrected then you can easily check the box to the left of the unresolved transaction and click the Create Transactions button. If you have multiple unresolved transactions then you can select multiple transactions and create all the records at the same time.
If the error is still present you will see the error message when you try to resolve the transaction. You can also click on the “View” link to see the original error.
How the Unresolved Transactions are handled
When attempting to process a transaction, if the transaction can’t be saved for some reason it will be marked as an Unresolved Transaction. It also creates an Email Notification which gets marked as Unresolved via the checkbox field
NOTE: If an unresolved transaction exists, additional transactions will not be processed on that Chargent Order until the transaction is attached to it.
Cleaning up Unresolved Transactions
If the error was with saving the Chargent Order (Validation Rule, Flow, or Process) and a transaction is present, review the gateway and payments made against the Order. If the Chargent Order should be picked up in the next batch then edit the Email Notification to uncheck the “Unresolved transaction”. You cannot use the Unresolved Transaction tab to process these as the error was not in a transaction. You should be able to process this again.
If the error was saving the Transaction record, use the Unresolved Transactions tab to process them. You should have the Email Notification that explains why the Transaction Record couldn’t be saved. Once you fix the error, and the record is able to be attached to the existing Chargent Order, you can process the Unresolved Transaction as listed above.
Other Troubleshooting Tools:
You can test the insertion of a Transaction record and the Master record from the Chargent Settings tab.
- Click on the App Launcher in the top left side of Salesforce
- Click on Chargent App
- Click on Chargent Settings
- Click on Troubleshooting Tools
- Press the button to insert a transaction
The testing of the insertion is based on your setup in your Salesforce Org and will tell you if there are any Flows, Processes, or Validation Rules preventing it from saving a record.
Chargent supports tokenization on most of our payment gateway integrations. Tokens are stored in the “Token” field on the Chargent Order, and can be used for future transactions, referencing the payment data stored securely on your payment gateway’s servers.
For an overview of tokenization, please watch this short video:
Chargent can support transactions in more than 150+ different currencies.
Please note your payment gateway and processor will determine:
- What currencies you can accept
- The currency your transactions are sent in (or converted to a different currency)
- The currency your payments are settled in
If you wish to accept multiple currencies, you should start with a conversation with your payment processor and gateway. If you are looking for a new payment provider to support a particular currency, please contact us for assistance.
Chargent also supports multiple active payment gateways, so some customers choose to use different payment gateways for different currency transactions. Workflow rules can automate selection of the proper currency based on other criteria, and gateways can be selected through the lookup field or automated via trigger.
There are several places to set your currency.
- Chargent Settings > Advanced Settings
- Your Gateway record
If you are accepting multiple currencies, the correct currency sent to the gateway is the one indicated on the Chargent Order record. If you are only using one currency and this field is blank on the Chargent Order, we will send the currency listed in your Gateway settings.
To set the Default currency on the Chargent Settings tab:
- Click the App Launcher in Salesforce and select Chargent app
- Click Chargent Settings tab.
- Select the Advanced Settings sub-tab.
- Under Gateway Settings you can select from the dropdown menu your default currency
Gateway Currency Settings
If your payment gateway supports multi-currency, use the Available Currencies multi-select picklist on the Gateway page to set this. Choose the currencies here that you wish to be available on the Chargent Order Currency picklist field (max 100 values).
Please note that you may have to manually add the Available Currencies field to the gateway page layout, depending on if it was available when you first installed Chargent.
Chargent strives to provide as many currencies as possible but in the event you find your currency is not listed, you can add it to the list. Currencies are part of your Gateway record under a Picklist called Available Currencies.
To add currencies to the picklist you want to do the following:
- Click the gear icon on the top right and choose Setup
- Navigate to Objects & Fields, and select Object Manager
- Locate the Gateways object and choose Fields and Relationships
- Click on Available Currencies
- Scroll down to the list of values and you can click New to add a currency.
You also need to update your Payment Gateway record in Salesforce to accept this currency
When you add your currency you also want to make sure that the country is also listed in the Country Mapping tool.
API Notes for Currencies
Chargent uses ISO 4217 standard in internal mapping for currency values. E.g. if you pass United States dollar currency via API, we'll send USD or 840 value on the gateway side (depending on the particular gateway).
If you pass a currency which is not contained in Chargent's internal mappings, it will be passed directly to the gateway without changes. E.g. if you pass "MyMadeUpCurrency" currency via API, we'll send "MyMadeUpCurrency" value to the gateway, as it is not described in ISO 4217. You can use this feature to directly submit ISO values also: if you pass "GBP" currency via API, we'll send "GBP" value to the gateway.
Chargent contains mappings for over 150 currencies in its Available Currencies field. Here are some of the more popular currencies.
- Australian Dollar
- Belgian Franc
- Canadian Dollar
- Swiss Franc
- German Mark
- French Franc
- Luxembourg Franc
- New Zealand Dollar
- Pound Sterling
- Russian Ruble
- Singapore Dollar
- Thai Baht
- U.S. Dollar
- Plus 139 more. . .
- Plus any custom value you wish to pass to your gateway
Please note that not all these currencies are accepted by all payment gateways, and we may be able to enable additional currency support based upon your requirements.
States, Provinces and Countries
States and Provinces
There are two fields in the Chargent Order object for states.
- Billing State: A picklist field you can add values to or customize for your own Salesforce Org.
- Billing State / Province: An optional text field where any value can be entered.
When standardizing the picklist values or what is entered in the text field, it is important to run some tests with your Payment Gateway’s address verification settings (AVS). Some payment gateways may want the full name, or require a 2 digit abbreviation, or allow both.
Note that any text value entered in Billing State / Province will override the Billing State picklist field and will be what is sent to your Payment Gateway.
The Billing Country field on the Chargent Order is a picklist that allows you to choose the country for the billing address. Chargent will attempt to match the value entered with the country abbreviation or ISO code which most Payment Gateways require.
New in Chargent 5.45 is the ability to map values to standardized country names / codes. Previously Chargent matched country names to codes, which could cause errors if country names or abbreviations were not standardized in a Salesforce org.
Chargent has all country names from ISO 3166-1 standard in its internal mapping. Often users want to use non-standard names for countries, for example “USA” instead of the full name (United States of America) or 2 digit standard (US).
In that case, your Salesforce administrator can add these country names to a custom setting called ‘Country Mapping’. This will ensure that the expected, standardized country values are sent to your Payment Gateway for address validation.
You can use the Country Mapping tool to add the Country Code to the list.
- Click the gear icon and choose Setup
- Under Custom Code select Custom Settings
- Next to Country Mapping click on Manage
- Click New and name it.
- add your ISO country codes and save.
See Country Codes here: https://en.wikipedia.org/wiki/ISO_3166-1
Chargent will check the custom settings for country mapping first, if no country is found in custom settings Chargent will check its internal mapper. If no value is found in the internal mapper, the original value in the Country field will be passed to the gateway without mapping.
Internal country map can be represented by the following table:
|United States of America||US||USA||840|
The internal mapper searches by label, alpha-2, alpha-3 and numeric values. So, if user entered ‘US’ or ‘USA’ or ‘840’ instead of ‘United States of America’ - the mapper will correctly find the necessary value and send it to the payment gateway.
To catch other non-standard values and correctly map them (if validation is not being enforced elsewhere in Salesforce), simply add them to the mapping values. For example:
Level II & Level III
Authorizations and how they work