• 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

  • Please note that the team will not be available on 17th June 2024, due to a public holiday.

    During this period, support assistance may experience some delays.

Pre-populate Wordpress User Email in embedded form

Hi,

I'd like to be able to pre-populate an embedded Pabbly checkout with a user's wordpress email address and name. I've already seen the suggestions at the link below.

query parameters

I've tried adding PHP code that recreates the embed URL like this using the Code Snippets plugin:

Code:
// Get current user's email address
$user_email = wp_get_current_user()->user_email;

// Build the URL with user's email address
$pabbly_url = "https://payments.pabbly.com/api/checkout/embed.js?_m=52...embed-id...2fad&email=" . $user_email;

// Output the URL as a variable
echo $pabbly_url;

And then using the variable: $pabbly_url in the Pabbly embed code, but I can't get it working.

Is there a way to make this work?

It would solve a big problem for me.

Thanks!
John
 
Top