Skip to content

Latest commit

 

History

History
22 lines (12 loc) · 1.08 KB

File metadata and controls

22 lines (12 loc) · 1.08 KB

Test Payments

Use the payments sandbox environment to simulate payment transactions. All apps automatically start in the payments sandbox.

Start a playtest

To test your app:

  1. Run devvit playtest <test-subreddit-name>.
  2. If your app does not already have a playtest subreddit, Devvit will automatically create one for you.

Once you start a playtest session, a new pre-release version of your app is automatically created and installed on your test subreddit. The pre-release version has a fourth decimal place, so if your current app is 0.0.1, the first pre-release version will be 0.0.1.1.

The pre-release version is updated and uploaded to your test subreddit every time you save your app code. You’ll need to refresh your subreddit to see the updated app. This may take a couple of seconds, so be patient.

Simulate purchases

In your test subreddit, you can make simulated purchases to test your app. No gold deducted in this state.

Sample payment simulation

To end your playtest, press CTRL + C in the terminal session where you started it.