Postman
Here is our Optty postman for create order flows:
Pre Requisites
Download the postman collection.
Replace
webhook_urlin the collection variables to a url you can receive webhook messages on. https://webhook.site is an easy way to do this.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
All Defaults
Routing Number: 026073150
Account Number: 2715500356
Any BSB and Account Number.
Or any PayId
Card Number: 4000000000001000 Card Holder Name: Any Expiry: Any Future Date CVC: Any 3 Digits
Credentials
Api Key
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI5Njk0MzBkNC04NmQ4LTQ3MDUtOTlhMC02NDg0ZDJiY2JhOGIiLCJqdGkiOiIyNjQyYTJhZS1iODAyLTQzYmEtODk1MS1iYTliMTY4ZGEzMDEiLCJpYXQiOjE2MjYyNjQxMzR9.RPm76qd5Lc335r5o9_Ixbfg_G7DAPCzM4HAvs1ip-i0
Access Token:
sandbox_rtjNuRcBr12GVuepqzBmOo9uyiYBpcuRMZFG8ezy
Webhook Secret:
vhx87n-P8VLdflbih838YOKJHYzc7bwmZ7s0i_xy
username:
[email protected]
Public Key Id:
5f0cbe19-a757-4f33-8178-0177386d51ae
Password:
$4EOtj%2s6@#fMzlu9YR*10H&3v7Z!G1
Private key:
-----BEGIN PRIVATE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MfO33PduikmLzM6+Gu6LdHQKcyRan+awKBgFS8dr9O0LgRq0nFAWoBKqSXW8UhDgGlvqpcDyEufQy2QRom/6AeVeHotqhmLDxgSEnvayv30T/5eINYa48Ro5EbqrcbuYKuWLoyOhpYbfhVNQ3kQe8C2BIr8mNqNsrNFj5fe4kSsfnz9VSMOWySGWy4Pegtquk0DRJ566/8tGSBAoGAYVKLmUprCxykb0eAGWeO13uiU8QyK8GTqgWmucki3NiHI2cHUqXJJhO0ZumGCg5PMUgBsKScWVj/pSIjb7oj7AmMXIKrZlrdemA0ql4xnOEdhea50j2Th9F920uA3LSZjywA5jmKjP+MWIppufBK4/Efi4OMs49aOlu7pJ+vYOUCgYAF6bagHBKWL/S4tm7PluXlT8DS3vwadTXlH9ieCEw23gnXHethSmThyZ9qOPn0dDsQ5wDyZHvAo+WzMn/hJ0WdXVUgLDF2Y7JbIQ+QmZDHp3exQELRjQnTd27OtZ2dtUxSMhMvSjw80xCCzvxoNiXxlOsVY0uzQszBBjCA313efA== -----END PRIVATE KEY-----username: vsmrt-TESToptty
sharedSecret: 733d8b567c
access_key: 1DrrvOD8CW5FIA== token: 5517fa6e8f1580b6904b735106baa7be60b38eb6
access_secret: g4amFj1RTJwQrJpUHUN_xGUmYZw=
Last updated