Using the playground
Send real requests from the API reference, with a TEST app.
Every page in the API reference has a Test button that opens a request editor and sends the request to the Gladys API for real. To send authorized requests, give the playground a token first: choose Authorize above the Test button.
With your TEST app
Choose Sign in with Gladys and sign in with your merchant account. Pick one of your TEST apps, and the playground gets a 15-minute token for it, without you copying any secret. Only TEST apps with the Server-to-server (client credentials) type are listed.
Your Gladys session stays in this browser tab and ends when you close it.
With your own keys
Paste a client ID and client secret. They are exchanged for a token in your browser, directly with the Gladys API, and the secret is not stored or sent anywhere else.
LIVE keys move real money
The playground warns you, and asks you to confirm, if you paste LIVE keys
(anything not starting client_test_). Every request sent with them is real.
Use a TEST app unless you mean it.
Once authorized
The bar above Test shows which app the requests are sent as, whether it is TEST or LIVE, and how long the token lasts. Change picks another app; Clear forgets the token. Tokens are kept in memory only, so reloading the page forgets them too.
Requests go to https://api.joingladys.com/api/v1. With a TEST app they move
play money only. A payment you create here has a real checkout_url: open it
and choose Approve as test payer to finish it.