Buy Now
Sign in

Submit to Payment Gateway Question

hpinson , September 11 2007, 00:05
H
hpinson 55
September 11 2007, 00:05 #2121
Hi. When I try and submit my Chronoform to a payment gateway (PayPal), the form is submitted, but my chronoforms email notification and database add event no longer happens.

I am leaving "Form URLs > REdirect URL blank and pointing "Submit URL:" to the payment gateway.

Is there any way to get:

a) the notification email sent,

b) the database record written, and

c) the submit to PayPal?

It seems I can get a+b or c but not both.

Thanks!
GreyHead 64
September 11 2007, 12:59 #2133
Hi hpinson,

Someone else asked this question and my memory tells me that Max took it away to look at. I'm not sure that an answer was ever posted here.

Hmmm , no, this was the thread I remembered. Nothing useful there though.

Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
H
hpinson 55
September 12 2007, 23:59 #2175
I wonder if it is possible to get support for resolving this paid or otherwise? I've solved every other problem of my forms application in Chronoforms, but not this one, and it is a show stopper. I have to be able to write form records to the database, send the email notification, AND redirect to the PayPal gateway.

Let me know-- thanks!

-- Harlow
[email]hpinson@indepthL.com[/email]<br><br>Post edited by: hpinson, at: 2007/09/12 20:00
admin 27
September 13 2007, 00:03 #2177
Hi Harlow,

Promise to look into this issue today, this needs using someway to submit the form twice to 2 different URLs, will see the best way to get this work on most servers.

Cheers

Max
Max
If your main question got answered then please mark the answer using the button!
Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
H
hpinson 55
September 13 2007, 00:48 #2185
Hi Max. I have a workaround, which may be good enough.

Basically, create a second form, and call it as the redirect from the first form.

The second form contains the paypal hidden fields and PayPal button.

<input type="hidden" name="cmd" value="_s-xclick">

<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but20.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">

<input type="hidden" name="encrypted" value="-----BEGIN PKCS7----- Long encryption string...">


All email response and database writing are turned off on this second form. On the Form URL tab I use the Submit URL action to point to the paypal gateway:

https://www.paypal.com/cgi-bin/webscr

This seems to work. One modifaction that I may investigate is passing the post data from the first form on to paypal. Should be possible with hidden fields.

Regardless, this is probably not an uncommon scenario, and being able to send the response email, write to the database, and submit to a payment gateway would be a nice future feature.

Take care, and thanks for an excelent and very versatile component.
admin 27
September 13 2007, 02:30 #2194
Glad it does what you need now thanks for adding your idea here too for everybody to know

Best regards,

Max
Max
If your main question got answered then please mark the answer using the button!
Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
H
hustad 8
October 06 2007, 19:33 #2651
hi hpinson,

This is exactly what i also need, so glad i found this thread.

Were you able to pass the hidden fields to the paypal form? And if so, might i ask if you can share some code with you? (i am lacking some php programming skills...)

Thanks
GreyHead 64
October 07 2007, 16:55 #2652
Hi hustad,

As far as I know that solution will work, though it's not straightforward. I think that Max will eventually add PayPal/Billing as a feature - though at the moment he's completely tied up with work and the Joomla 1.5 version of ChronoForms.

Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
H
hustad 8
October 13 2007, 20:30 #2786
Thanks for letting me know.