Yuno is the AI operating system for payments, and a payment is the first thing you run on it. You send your first sandbox payment in about 10 minutes once you have sandbox credentials.
Get your sandbox credentials
- Account code, shown as
account_idin the dashboard public-api-keyprivate-secret-key
sandbox_. Production keys are different and start with prod_.
Connect the Yuno Test Payment Gateway and publish a route
- Open Connections, search for Yuno Test Payment Gateway, click Connect, name the connection, and click Save.
- Open Routing, open the Not published tab, find Card, and click Set Up.
- Click + Create new route, name it, and click Save.
- Click the arrow, choose Add step, select Yuno Test Payment Gateway, and click Publish.
- Open Checkout builder, turn on Card, and publish the settings.
Send the payment
- API
- Web SDK
DIRECT workflow, a back-to-back payment where your server sends the card data. Set your credentials as environment variables:https://api-sandbox.y.uno.id. Save it as YUNO_CUSTOMER_ID for the next call.Then create the payment with a test card. Send a new X-Idempotency-Key with each payment.See the result
- Check
statusandsub_statusin the response.SUCCEEDEDwithAPPROVEDmeans the gateway approved the payment. - Open Payments in the dashboard, find your payment, and open it to see its details.
- To receive the result on your server, configure a webhook and verify its signature (HMAC).
Troubleshooting
The API returns 401
The API returns 401
public-api-key or private-secret-key header is missing or wrong. Sandbox and production use different keys, so check that you copied the sandbox keys from the dashboard in Test Mode. See Authentication.The payment ends in INTERNAL_ERROR
The payment ends in INTERNAL_ERROR
workflow does not match your integration. Use DIRECT when your server sends the card, and SDK_SEAMLESS on the checkout session when the Web SDK creates the payment.No provider processes the payment
No provider processes the payment
The card is declined
The card is declined
Stuck on a term? See the Glossary. For URLs, keys, and specs see Developers.