Connecting your payment system with Salesforce is a quick way to maximize your business’s operations. Our experts explain what a merchant account is and how to set one up to process payments in Salesforce easily.Read more "How To Connect Your Merchant Services Account to Salesforce"
Worldpay/Vantiv is a popular gateway that allows millions of organizations to process payments. Find out just how easy it is to connect Vantiv to Chargent and streamline how you collect payments.Read more "How to Connect Worldpay/Vantiv With Salesforce"
If you’re using Chargent, installing multiple payment gateways is a breeze. In this post, our experts provide a step-by-step tutorial on using two or more payment gateways within Salesforce.Read more "How To Perform Multiple Payment Gateway Integration in Salesforce"
FormAssembly provides an easy integration to connect their software with Chargent. Learn how these two solutions can enhance your customer’s experience and give you more control over your payments.Read more "How To Use FormAssembly and Salesforce to Take Payments"
Salesforce CPQ and Billing products make payment automation simple – if you can integrate it with your current payment gateway. Learn how Chargent makes it easy to connect Salesforce with your preferred gateway.Read more "What is the Chargent Gateway Connector?"
Learn about how to use test payment gateways, test credit card numbers, Salesforce production versus sandboxes, recommended testing steps before you go live, and more.
Tips for a Successful Go-Live
In order to have a successful go-live with Chargent and Salesforce, testing is critically important. Aspects of both Salesforce and payment processing can be complex at times, and there are many “moving parts” and configuration options.
Successful and error-free payments are critical to any business or nonprofit organization, so it is best to work through any configuration in the testing phase.
We therefore urge you to plan on these testing steps as part of your launch of Chargent in your Salesforce environment. This includes running multiple types of tests:
- Test In your Salesforce Sandbox Org
- Test In your Salesforce Production Org
- Test Using your Test Payment Gateway account
- Test Using a Live Payment Gateway account
Salesforce and Your Payment Gateway
Both Salesforce and your payment gateway provide both live (in other words production) and test (in other words sandbox) accounts, so that you can test against any customizations that you have in a Salesforce Sandbox without affecting your live configuration. And you can test payments on test credit cards without doing real transactions that capture funds and generate processing fees.
These testing guidelines are what we have seen result in the most successful implementations of Chargent, especially when moving from other billing or payments software.
Payment Gateway Test Account
You will need to obtain a test account or sandbox account from your payment gateway in order to test Chargent. Your gateway will provide you with test credentials that will allow you to create a test integration to Salesforce.
The good news is that most payment providers provide a form where you can sign up for a test account in minutes.
Your gateway will also provide you with test credit card numbers and bank numbers to use during the testing process. For some gateways, you will need to use specific amounts, expiration dates, and the card security code in order to receive an approval or a decline from the gateway.
Check out Chargent’s gateway guide documentation for your particular payment gateway for complete details.
Salesforce Sandbox Testing
As a security precaution, when running in Sandbox, all Chargent Payment Gateway records will send transactions to the test payment gateways, regardless of whether you set them up as test or live. The “Test Endpoint” checkbox field is effectively disabled, so transactions are always sent to a test endpoint whether it is checked or not.
HOWEVER, there is a workaround in the sandbox which we provided, for when you want to run a few real credit card transactions at the end of your testing, just prior to going live. You can use the “Endpoint Override” field to override our setting, and send transactions to a live server.
If you are creating a Full or Partial Copy sandbox, this setting will be copied from your production org if you have an endpoint override value populated there. So it is a best practice to disable the Recurring Billing Batch, and to remove that endpoint, to make sure no live transactions get sent while you are testing in Sandbox.
Running Test Payments in Salesforce
If you are using Chargent Anywhere you can easily click on the Payment Console button to begin. You will need to complete the billing information including the billing address and credit card or bank account number to process a test transaction.
CHECKLIST: How to Save on Payments, Improve PCI Compliance
10 crucial steps to make your Salesforce payment process secure, easy and profitable
The next step allows you to test a single transaction or to set up Recurring Billing. When you click to the next page you can enter in the credit card number and the test information provided by your gateway. Click the charge button to complete the transaction.
If everything was set up and entered correctly, you will see a green approval message showing the success. This will also create a Transaction record that is now associated with the record which you originally processed the payment from.
If you are not using Chargent Anywhere, you can complete similar tests using the classic Payment Console or the Charge button located directly on the Chargent Order record.
Test Credit Card Numbers
Payment Gateways provide special test credit card numbers for testing purposes. It is important to note that these test credit card numbers will work in test gateway accounts, but will not work on your live gateway account.
Similarly, you generally cannot use real credit card numbers for testing on the test gateway accounts.
Two Visa test credit card numbers that are easy to remember are:
4111 1111 1111 1111 (four + 15 ones)
4242 4242 4242 4242 (42 eight times) – – a Visa card has sixteen digits
Use any Expiration Date in the future and any 3 digit card security code, unless your gateway requires a specific card security code when testing, such as the PayTrace Gateway.
Your payment gateway will also provide you with additional test credit card numbers (and test bank account numbers, if applicable).
Please see Chargent’s individual gateway guides for more information on test credit card numbers.
Some test payment gateways use the amount that you send for a test transaction to determine the response message that you receive.
This is designed to allow you to receive all of the different responses, which is actually not required since Chargent has already completed the integration between Salesforce and your payment gateway.
It is important to understand this, however, to save yourself some frustration of repeatedly receiving a decline message from a test gateway, based on the amount you send, but thinking that you are unable to get an approved transaction.
Here are some examples:
- With the Authorize.net Gateway, using an Amount of $70.02 or the Zipcode 46282 will generate declined transaction responses.
- For the BlueSnap and Braintree Gateways, certain test credit card numbers will generate failure or unsuccessful card verification responses.
- For the NMI Gateway, to generate a declined transaction, pass an amount that is less than $1.00.
- Finally, for the PayTrace Gateway, a submission of $0.50, $1.00 or a higher amount (with the exception of $1.12, $1.13) should result in an approval response. Amounts such as $0.20, $0.21, and $0.29 will result in the return of a DECLINE message.
No need to worry about remembering these details, we just wanted you to be familiar with the concept. Full details and links to the larger testing documentation for each Gateway is available in Chargent’s gateway guide for each specific integration.
ACH and Direct Debit Transactions
ACH, also known as electronic check, echeck, or direct debit (for our friends in Australia) can also be tested for most gateway integrations. Please check out Chargent’s individual gateway guide for your gateway to see if ACH is supported.
If your payment gateway supports ACH and Direct Debit, then you should also find test bank account details such as a test Routing Number, a BSB Number, and an account number.
When testing using the Payment Console you want to make sure you select Bank Account instead of Credit Card as the Payment Method. From the Chargent Order, choose “check” in the Payment Method Field for bank account transactions.
Testing in Your Salesforce Production Org
When testing in your Salesforce Production org, you can choose either a live gateway or a test gateway setup. Unlike the Salesforce Sandbox, keep in mind that live gateways in Production Orgs will send the transactions to a live endpoint, which means processing real transactions.
This means you may want to set up a new gateway using your test credentials, making sure that you select Test in the setup wizard. This will allow your test transactions to go to a test environment of your gateway.
IMPORTANT: Before going live with your Chargent system, you need to test a few live transactions, using your own credit card or bank account.
This is critical because payment gateway test environments are not always a 100% accurate reproduction of the live environment. If you have a new payment gateway account, this will also allow you to verify that it is set up correctly and all features (such as accepting American Express, tokenization, ACH and Address Verification Services) have been properly activated by the payments provider.
Live gateways will require real credit card / bank accounts for testing, they will not work with test credit card numbers. Simply charge small amounts, such as $1. Don’t worry, you can void the transactions afterwards and never see it on your credit card statement.
If you have set up test gateways in your Salesforce production org, we recommend setting them to inactive before going live, to make sure that they cannot accidentally be selected.
And that’s all you need to know for how to test payments in Salesforce!
If you missed part 1 of this series, “How to Test in a Salesforce Sandbox”, check it out. It goes pretty deep on how to use Salesforce Sandboxes, and some things to watch out for.
Questions? We are always here to help.
Integrate CyberSource with Salesforce in minutes! In this video you will learn how you can connect Salesforce to your CyberSource account very quickly using the Chargent payment application.Read more “Connect CyberSource to Salesforce in Minutes!”