Search code examples
wordpresspaypalcontact-form-7

Contact Form 7 + Paypal Integration


I have two options "New and Renewal". If user select Renewal option and submit the data they will charge 35$, and if select New option then they will charge 50$.

How can I integrate Paypal by using this option button from contact form.

Thanks.


Solution

  • For simplier method
    1. Go to Contact (CF7) page and edit your form
    2. At the bottom of the page, find "Additional Settings"
    3. Place this code

    on_sent_ok: "location = 'https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=[YOUR BUTTON ID HERE]';"