Postman

Here is our Optty postman for create order flows:

Pre Requisites

  1. Download the postman collection.

  2. Replace webhook_url in the collection variables to a url you can receive webhook messages on. https://webhook.site is an easy way to do this.

  3. Create an order and use the test data at the bottom of this page to complete the checkout.

This Postman collection is linked to an existing Optty merchant with pre-enabled payment methods. While sufficient for basic testing, more in-depth testing requires signing up for your own merchant account here. Once registered, replace the `client-id` and `client-secret` with your new merchant's credentials. You will also need to enable payment methods using the Optty credentials linked at the bottom of this page.

The collection includes create order payloads for three different payment methods, each demonstrating an exception outlined in the "Exception Handling" section.

  • ZIP AUD - Shows the basic flow that always returns an immediate successful status upon redirect.

  • GoCardless USD - Shows the flow that always returns PENDING on redirect and requires listening to webhooks or implementing polling to get the latest status.

  • Volt AUD - Shows how a refund can result in a PENDING response. This will require listening to the refund callback as described in Notification Handling To receive the webhook, you will need to register your webhook on your own sandbox, as `REFUND_CALLBACK` is not sent to your `dynamicCallbackURL`.

Test Data

Successful User: [email protected] Password: test1234 Decline User: [email protected] Password: test1234

Credentials

Api Key eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI5Njk0MzBkNC04NmQ4LTQ3MDUtOTlhMC02NDg0ZDJiY2JhOGIiLCJqdGkiOiIyNjQyYTJhZS1iODAyLTQzYmEtODk1MS1iYTliMTY4ZGEzMDEiLCJpYXQiOjE2MjYyNjQxMzR9.RPm76qd5Lc335r5o9_Ixbfg_G7DAPCzM4HAvs1ip-i0

Last updated