Skip to main content

Testing

Reflow offers a test mode you can use while developing and testing your app. We recommend working in test mode to avoid the risk of accidentally initializing charges with actual money.

Activating the Toolkit Test Mode

To activate test mode, add the data-testmode attribute to the line where you've included the Reflow JS library in your page.

<script
src="https://cdn.reflowhq.com/v2/toolkit.min.js"
data-testmode="true"
data-reflow-project="999999"
defer
></script>

All components in the page will now be switched to test mode and display only test-mode objects.

While in this mode, you can use PayPal and Stripe test cards to try out your integration. Completing the shopping cart checkout process will create a test-mode order in your Reflow project.

User account signed in with the auth button component will also be created in test-mode.