Skip to main content

Test Mode

This article explains how to use test mode in Pocketsflow, which allows you to test payment flows without processing real charges.

Chain avatar
Written by Chain
Updated over a month ago

What is Test Mode?

Test mode is a sandbox environment that lets you simulate transactions without processing actual payments. This is ideal for:

  • Testing your integration with Pocketsflow

  • Verifying webhook handling

  • Validating payment flows

  • Training staff on the platform

While in test mode, no real charges are made, and no actual funds are transferred. All transactions are simulated.

Enabling Test Mode

To enable test mode:

  1. Log in to your Pocketsflow dashboard

  2. Go to Settings > Developer Settings

  3. Toggle the Test Mode switch to "On"

  4. A banner will appear at the top of your dashboard indicating you're in test mode

Note: Test mode affects your entire account. All products, subscriptions, and payment flows will operate in test mode while this setting is enabled.

Testing Payments

Test Cards

Use the following test cards from Stripe to simulate different payment scenarios:

Card Number

Brand

CVC

Expiry Date

Description

4242 4242 4242 4242

Visa

Any 3 digits

Any future

Successful payment

4000 0000 0000 0002

Visa

Any 3 digits

Any future

Declined payment (generic decline)

4000 0000 0000 9995

Visa

Any 3 digits

Any future

Declined payment (insufficient funds)

4000 0000 0000 9979

Visa

Any 3 digits

Any future

Declined payment (stolen card)

4000 0000 0000 3220

Visa

Any 3 digits

Any future

3D Secure 2 authentication required

5555 5555 5555 4444

Mastercard

Any 3 digits

Any future

Successful payment

6011 1111 1111 1117

Discover

Any 3 digits

Any future

Successful payment

3782 822463 10005

Amex

Any 4 digits

Any future

Successful payment

International Test Cards

Card Number

Brand

Country

Currency

Description

4000 0082 6000 0000

Visa

Spain

EUR

Successful payment (3DS off)

4000 0000 0000 0101

Visa

Any

Any

Requires ZIP code

4000 0000 0000 0069

Visa

Any

Any

Requires ZIP and CVC

Testing Subscriptions

For subscription testing, you can use any of the successful payment cards above. To test specific subscription scenarios:

  1. Successful Subscription: Use card 4242 4242 4242 4242

  2. Failed Payment: Use card 4000 0000 0000 0341 to simulate a subscription that succeeds initially but will fail on renewal

Test Webhook Events

When testing subscriptions, the following webhook events will be triggered:

  • customer.subscription.created: When a test subscription is created

  • invoice.payment_succeeded: Upon successful test payment

  • customer.subscription.updated: When subscription details change

  • customer.subscription.deleted: When a test subscription is canceled

Testing vs. Live Mode

Feature

Test Mode

Live Mode

Payments

Simulated (no real charges)

Real charges to customer cards

Cards

Only test cards accepted

Only real cards accepted

Email Notifications

Sent only to merchant email

Sent to both merchants and customers

Dashboard

Shows "TEST MODE" banner

Normal dashboard view

Webhooks

Same format but with test data

Real customer and transaction data

Data Persistence

Test data is kept separate from live data

Live data is permanent

Switching to Live Mode

To switch back to live mode:

  1. Go to Pocketsflow dashboard

  2. On the sidebar toggle the Test Mode switch to "Off"

  3. Confirm the change

Important: Always verify that you're in live mode before launching your store or accepting real payments.

Did this answer your question?