Postman

Here is our Optty postman:

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.

  • Klarna 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

Phone Number: +61 473 752 244

Credentials

Api Key 8e65ed69-d84e-4ddd-82a9-031de6181869

Api Secret klarna_test_api_dUZoaVVIYkticTB2LWhhd0QyMUhBbDIzU2ExIVg5d1EsOGU2NWVkNjktZDg0ZS00ZGRkLTgyYTktMDMxZGU2MTgxODY5LDEsQitidkE1SnJzckZuUXZIUDZJM1pXQTFKTmZZSzJnTGVBMW1rbTY4aUcyaz0

Last updated