Pass on values - Redirect URL After Successful Payment

Status: Closed · Asked by Thesis on · 0 views

Thesis — Question ·

Hi.

How do I pass on values / variables after successful payment to a specific URL?

See my example below and as in the attached picture, I tried to pass on "email" and "firstname" to https://www.mywebsite.com but it seems to be a wrong format.

https://www.mywebsite.com?email={{data_customer_email_id}}&firstname={{data_customer_first_name}}

The variables "data_customer_email_id" and "data_customer_first_name" are from your webhook labels.

I couldn't find any documentation about this.

Deleted member 9923 — Reply ·

Hello @Thesis ,

You cannot pass values directly in the redirect URL, as the redirect URL may not function properly in such cases, as shown in your screenshot.

If you need to fill in customer-related details on the redirect page, use the following workaround:

Step 1: Get Customer Details

Use the “Get Hosted Page Data” API to retrieve the customer details filled in on the checkout page.

API documentation link: https://apidocs.pabbly.com/#7d728c89-043b-4ab2-bea9-155a6b32c836

Step 2: Set Up a Workflow with Pabbly Connect

1. Create a workflow in Pabbly Connect.
2. Use the webhook provided by Pabbly Connect as the redirect URL in Pabbly Subscription Billing.
3. During this process, the webhook URL will redirect the customer to another page.
4. Utilize the “Get Hosted Page Data” API to obtain the details filled by the customer on the checkout page.
5. Use these details in your redirect URL to prefill the details in your page and then redirect the customer to the required URL according to your requirements.

I hope this answers your concern please let us know if you have any other please let us know.

Also you can refer to the below help documentation which is of similar usecase
https://forum.pabbly.com/threads/conditional-redirect-after-successful-payment.10760/

Back to all forum threads · Log in to reply