Jump to content

I need help to only send form info to my email after customer has paid via paypal


Aidan1569

Recommended Posts

I have a contact form with a file upload button, when you click on “submit” you are redirected on Paypal everything works fine but, I would like to send the contact form only when visitors have paid on Paypal. I’ve searched on google but I have not found a way to do this.

Can anyone help?

Cheers,

Aidan.

Link to comment
Share on other sites

Since you're not showing us any code, let's play a guessing game.  How do you know when they have paid on Paypal?  Are you waiting for a message from PP telling you such?  Or is there some connection you are making with code you have written that will give you back a response?

This is fun!

Link to comment
Share on other sites

You will need to store the details of the order in an order table, perhaps with status.

When an order is completed at paypal it will callback to one or more "webhook" url's you've onfigured, which are script(s) you would right to do processing on your server.

Read through this section at Paypal:  https://developer.paypal.com/docs/api-basics/

The script would need to parse the data the webhook script gets from paypal (ideally you should choose to use json format)  and send the email you require, looking up the order in your order table.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.