Handle Order Payment Widget Integration
Testing the Optty Handle Order Payment Widget in Sandbox Mode
To test the functionality of the optty-handle-order-payment-widget,
follow these steps:
Access the Sandbox: Go to the Optty Widgets Sandbox at https://widgets.qa.optty.com/
Set Mode to Live: In the Mode dropdown, select Live.
Choose Currency: Select your desired currency.
Provide Your Sandbox Token: Enter your sandbox
widgetToken
into theInsert JSON Web Token Here
input field.Apply Configuration: Click the
Apply Config
button to update the settings.Process Payment: Navigate to the
#13 Optty Handle Order Payment Widget
section, provide the payment payload in the JSON editor, and click Pay to see the in-context payment flow in action
Handle Order Payment Widget Setup and Integration
Prerequisites
Include the Optty JS Widget loader in your page
Ensure you have the necessary merchant credentials
Parameters
When using the optty-handle-order-payment-widget
, note the following about dynamicCallbackUrl
:
For In-Context implementation:
dynamicCallbackUrl
is required in the create order payloadFor standard implementation:
dynamicCallbackUrl
is optional in the create order payload
When provided, dynamicCallbackUrl
should be a valid HTTPS URL that can receive requests for webhook notifications about order status changes.
Step 1 - Widget Setup & Initialization
1.1 Initiate Widget
1.2 Load configuration
Step 2 - Setup Optty Handle Order Payment Widget
Call the widget with required payload structure:
Last updated