Skip to content

Instantly share code, notes, and snippets.

@dinesh1301
Created February 16, 2024 07:14
Show Gist options
  • Save dinesh1301/e789d902c749dff071706d516b8e0341 to your computer and use it in GitHub Desktop.
Save dinesh1301/e789d902c749dff071706d516b8e0341 to your computer and use it in GitHub Desktop.
Payglocal redirection handling

Payglocal redirection handling

Develop a serverless function on Vercel that consumes a POST request and pass on the entire data to POST payments/payglocal/callback/

Data to be consumed and transferred as it is

  1. x-gl-token in request body
  2. success_url in query params
  3. failure_url in query params

The response of the API payments/payglocal/callback/ will be a redirection to success/failure page based on the status of the order

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment