Forums

paypal payment verification data into form

raivis 02 Mar, 2011
Hi!

I am looking to get paypal payment verification into a form.

What I would like to set up is something like:
1. When a form is submitted and customer is sent to paypal - a form gets "unpaid" status
2. When customer has paid - a form turns "unpaid" status to "paid", or new "paid" status gets added to a form.

Any ideas how to get it done?
I have browsed forum but did not manage to get clear solution..

Thanks,
Raivis
GreyHead 02 Mar, 2011
Hi Raivis,

There isn't a clear solution. The problem is that you need to get the info back from PayPal. You can use several different approaches:[list=a]
  • The simplest is to set up a PayPal Return URL. In ChronoForms you can do this using one of the ExtraCode boxes. You will need to include code to verify that this is a valid Return URL; look up the transaction details and mark the transaction as paid
  • You can use the ChronoForms PayPal API plug-in if your PayPal account supports the API, the plug-in has a box to handle the returned transaction info
  • You can add code to handle a PayPal IPN*, this is not too difficult if your transaction is simple.
  • [/list:o]

    Bob

    * I'm currently beta testing a ChronoForms PayPal IPN plug-in - it's been developed in bits and pience for a year or so now. The main problem with a plug-in is that it needs to be able to handle a wide variety of different uses where as hand-coded IPN only needs to handle on partcular form.
    raivis 02 Mar, 2011
    Thanks, Bob!

    I will try the IPN option.
    Where should I insert IPN php code?

    Thanks,
    Raivis
    GreyHead 02 Mar, 2011
    Hi Raiis,

    It's a hand-shake transaction, the first part you can handle with the ChronoForms redirect plug-in then the repsonse code will be in one of the ExtraCode boxes.

    Bob
    This topic is locked and no more replies can be posted.