Making a fake pledge to test the api?


#1

Hi everyone,

I’m working on an app with a patreon login which will unlock features depending on the pledges. I made the patreon login but now I’m wondering if there’s a way to make a fake pledge to test the api before promising anything to anyone or if I should make a real pledge to myself.


#2

At the moment there’s no sandbox or equivalent, you’re correct that pledging to yourself on the live site is the most popular approach at this time. There’s been some mention by the Patreon team of someday adding a sandbox, you can find the most recent mention of that here:

Here’s a citation from the documentation on the current approach: https://docs.patreon.com/#testing

Testing of the API can be done by creating dummy accounts through the website. To test pledging, it can be useful to:

  1. Create a Patreon account with creator page and set it to “per post”.
  2. Create another Patreon account and use it to pledge to the first account’s page. A “per post” pledge will not incur any payments as long as it is cancelled before the end of the month.
  3. Use the API as needed.

Here’s an example of a campaign I use to test: https://www.patreon.com/patreonphp