• Instructions to Ask a Question

    Click on the "Ask a Question" button and select the application for which you would like to ask questions.

    We have 5 different products namely - Pabbly Connect, Pabbly Subscription Billing, Pabbly Email Marketing, Pabbly Form Builder, Pabbly Email Verification.

    The turnaround time is 24 hrs (Business Hours - 10.00 AM to 6.00 PM IST, Except Saturday and Sunday). So your kind patience will be highly appreciated!

    🚀🚀Exclusive Discount Offer

    Just in case you're looking for any ongoing offers on Pabbly, you can check the one-time offers listed below. You just need to pay once and use the application forever -
     

    🔥 Pabbly Connect One Time Plan for $249 (🏆Lifetime Access) -  View offer 

    🔥 Pabbly Subscription Billing One Time Plan for $249 (🏆Lifetime Access) - View offer

CONDITIONAL REDIRECT AFTER SUCCESSFUL PAYMENT

The use case is to redirect customers to different web pages depending on whether they've selected addons or not after their payment was successful. So if you're using Pabbly Connect too, this can easily be done. Here's how 👇
.
To set up a conditional redirect to redirect users to different thank you pages depending upon the order total, you can follow the steps below. Now, this amount can vary if the user has selected an addon or bump offer.
.
Step 1: Create a workflow in your Pabbly Connect account with the trigger “subscription activate” in Pabbly Subscription Billing.
1676275765194.png

.
Step 2: Add the trigger webhook URL in the “Redirect URL after Successful payment” field by editing the plan on which you want to set up redirection.
1676275954189.png

.
Step 3: Do a checkout with a test card and capture the webhook response. The response would include the hosted page ID which would be used to fetch subscription data.
1676276095191.png

.
Step 4: Choose the API module in the next step of the workflow. Make an API call known as Get Hosted Page Data API. The response would bring all the data like customer email, plan ID, etc. Link to the API: https://apidocs.pabbly.com/...
.
Step 5: Choose “Router” in the third step with two routes(You can have more than two routes if there are more than two conditional redirects).
1676276191343.png

.
Step 6: In the first route, choose the first step as a filter and select label as “Data Invoice Amount”, filter type as “Equals” and value as your plan’s amount without an addon.
1676276318200.png

.
Step 7: In the first route, choose the second step as “Data Forwarder by Pabbly”, Action event as “Redirect to” and enter the URL on which you want your customers to be redirected if they haven’t selected add-ons. The redirect status should be “301 Moved Permanently”.
1676276482560.png


Step 8: In the second route, you need to follow the same steps that are in steps 6 and 7. But in the filter, you’ll select the label “Data Invoice Amount”, filter type as “greater than” and the value should be the plan amount. In the data forwarder module, you need to follow the steps of step 7 except the “Redirect to” URL needs to be the one on which you want your customers to be redirected if they’ve selected add-ons.
1676276597902.png

1676276709757.png

.
Step 9: That’s all. Save the workflow and do two test checkouts(One with add-ons and one without add-ons) to see the magic happening!

Workflow Link - https://connect.pabbly.com/workflow...XPQJdBGRfSwIGCV8JelBKBjkHGFYLW2hSFwdYACoMbg##

This is a test workflow for the same use case. If desired, you can use this workflow link directly for the same use scenario.
 

Attachments

  • 1672744492659.png
    1672744492659.png
    26.9 KB · Views: 134
Last edited by a moderator:

Groff

Member
Wow, this looks like a very powerful workflow feature. Thank you for adding. I am getting ideas on how I can use this to my benefit.
 
Top