Create a Charge via Embedded Widget
Create one-time checkout flows and sessions.
Last updated
Create one-time checkout flows and sessions.
Last updated
You can embed a Helio widget in any website to generate charges. When using the widget, a new tab will open, redirecting the user to the unique checkout page.
The user will only be able to pay once, and refreshing the page will not allow the user to transact again.
When creating your checkout widget, simply include "display": "new-tab"
in your configuration code to enable charges. Below is an example configuration.
You can configure your checkout widget to keep charges within the widget instead of redirecting, ideal for cases where your backend calculates the total after a user adds items to their cart on your site.
and then for this pay link.
Example API Response:
The charge token is the part at the end of the pageUrl
. For example, in this case, it is 54cdf9b3-5793-4046-9ee8-bb62574bc4ae.
Add the chargeToken to your Checkout widget configuration.
Use the chargeToken: "54cdf9b3-5793-4046-9ee8-bb62574bc4ae"
in your widget configuration as shown below.
For more configuration options, refer to the .