How to test Stripe payment integration in RemOnline
Testing is an important step in setting up payment system integration. To learn and verify how payments work in the integration, follow these steps:
1. Test payment scenarios
When testing Stripe integration, you can check various scenarios:
Successful payments:
Check how RemOnline creates a payment, sends it to Stripe, receives confirmation of a successful transaction, and updates the payment link status.
Payment declines:
Check how RemOnline handles different types of declines (insufficient funds, declined by the bank, etc.): whether the correct message is displayed to the user, whether the decline is recorded in the logs, and whether the payment link status is changed by mistake.
Each type of scenario requires different cards for test payments.
2. Test cards
Stripe provides special test card numbers that allow you to simulate various payment scenarios without using real payment data. This allows you to check how your integration handles successful payments, declines, validation errors, and other situations that arise when paying payment links.
The most common test cards:
Successful payment:
Card number: 4242 4242 4242 4242
Any future expiration date (e.g., 12/26)
Any CVC/CVV (e.g., 123)
Payment declined:
4000 0000 0000 0002 (always declines)
Insufficient funds:
4000 0000 0000 0001
You can find a complete list of test card numbers and their descriptions in Stripe's official documentation at this link.
To test the integration without transferring money, use Stripe's special test environment (sandbox).
3. Creating a separate cash register for test payments in RemOnline
To make test payments, you need to create a separate cash register in RemOnline.
Go to the Finance > Payments page and click the “+ Add cash register” button.
Enter the name of the cash register as a required field and set the cash register to cashless, cashless only. For more information on setting up a cash register, see this article.
⚠️ Do not check the Virtual cash register checkbox, as such cash registers are not supported in integration with payment systems and cannot be used during testing.
After testing payments, you need to delete the payments in this cash register and delete the cash register. To do this, click on the gear icon in the upper corner of the cash register. Then click the delete button. This way, the company's financial reporting will not be affected.
4. Making a test payment
After completing the preliminary settings and connecting the integration, we will make a test payment.
1. Go to the Finance > Payment links section and click + Payment link. For more information on creating payment links, see this article.
☝️ To avoid mixing test and real payments, we recommend creating a separate test payer for test payments. This way, the payment history of the real customer will be accurate.
2. After creating a payment, open it via the link.
3. On the payment link page, fill in the details for the test payment. Here you specify the card number according to the type of payment you want to make (successful, unsuccessful, etc.).
4. After payment is made, the status of the payment link will automatically change to the appropriate one.
☝️ After completing testing, be sure to delete the cash register created for test payments, test payment links, and the test payer. This will keep all your data in the reports up to date.