Forums

Submit to Payment Gateway Question

hpinson 11 Sep, 2007
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 11 Sep, 2007
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
hpinson 12 Sep, 2007
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
Max_admin 13 Sep, 2007
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, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
hpinson 13 Sep, 2007
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.
Max_admin 13 Sep, 2007
Glad it does what you need now🙂 thanks for adding your idea here too for everybody to know😉

Best regards,

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
hustad 06 Oct, 2007
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 07 Oct, 2007
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
hustad 13 Oct, 2007
Thanks for letting me know.🙂
This topic is locked and no more replies can be posted.