Forums

Pay Pal with more than One Form

RamboRon 24 Jun, 2014
The directions in http://www.chronoengine.com/faqs/57-cfv4/cfv4-actions/2583-how-to-use-the-paypal-redirect-action.html on how to set up paypal listener say the redirect from paypal needs the form name. This makes it impossible to make several forms that accept payment for different thing. And since paypal only lets you have one account is there a way around this limitation of your system?
GreyHead 24 Jun, 2014
Hi RamboRon,

The reDirect form any single form needs to redirect to an event in the same form. From another form it should redirect to an event in that form. So there is no practical limitation.

Bob
RamboRon 25 Jun, 2014
There is still a problem, limitation, with that setup. If your DB Save and Emails are saved in the listener, like they should be, all forms will have to have the same information or the DB Save and Emails will not send the correct information. If the send/save before the listener then there is no guarantee that they finished the sale before emailing/saving.
GreyHead 25 Jun, 2014
Hi RamboRon,

Sorry but I don't understand what you are saying here. You can have different listener events save to different tables if you need to. And I'd always recommend that you save the transaction information before you redirect and then update the status for the record to 'paid' once you have notification.

Bob
RamboRon 25 Jun, 2014
Lets say I have one form to subscribe to my printed newsletter. It takes the customer info and redirects to PayPal. PayPal takes the payment and redirect back to the IPN for that form. It then enters them in the DB subscribers and emails me their information and email them. We will call it Subscribe.

I have another form to pay for classified advertising. It collects the same info except it takes the classified ad info as well and redirect to PayPal. PayPal takes the info and redirect back to the Subscribe IPN. But when it tries to save to the DB it saves to subscribes DB and there is no entry for the classified ad info. Then when it goes to send the emails there is also no block for the email to send the classified info. Even if I save to the DB first it can't make paid to either DB when it is directed back because it only sees the subscribe DB of if it is set with multiple DB's it will try to same to all of them.

Then I have a third for for display ads that takes an uploaded graphic. Same problem again. It can't save the DB where the file is or email it because these are set for subscribe.
GreyHead 27 Jun, 2014
Hi RamboRon,

I'm sorry I do not understand why you are using the same form event for what appear to be three completely different submissions? Even if you do choose to do that you can use conditional code and extra actions to support more than one DB Save and/or Email template.

Bob
RamboRon 19 Jul, 2014
From the begining of this thread we have been talking about how PayPal will only allow one ipn return. So there can only be one On ipn event. The more we advance the further we fall behind, v5 has issues compared to v4 and now you act like you don't know what we are saying. The thread is clear and anyone reading it will see the same.
RamboRon 19 Jul, 2014

Hi RamboRon,

The reDirect form any single form needs to redirect to an event in the same form. From another form it should redirect to an event in that form. So there is no practical limitation.

Bob



It can't when PayPal only allows one redirect and you have multiple forms that you need to redirect to.
GreyHead 20 Jul, 2014
Hi RamboRon,

PayPal only allows one default ReDirect URL but you can specify a different one in the payment submission.

Bob
RamboRon 30 Jul, 2014
I have seen the payment redirect URL but it says not to use it for this purpose.
GreyHead 01 Aug, 2014
Hi RamboRon,

Here's what I see in the PayPal docs:

returnUrl xs:string (Required) The URL to which the sender's browser is redirected after approving a payment on paypal.com. Specify the URL with the HTTP or HTTPS designator. Maximum length: 1024 characters

Bob
RamboRon 07 Aug, 2014
And this is what ChonoForms5 says in the PayPal Redirect - Full object under Return URL: "The URL to which the user will be sent back after purchase, don't set this to the IPN URL!". A little misleading, it tells me not to use it and you tell me to use it for the IPN.
GreyHead 07 Aug, 2014
Hi RamboRoon,

The IPN URL is the url that you give to PayPal to tell it where to send the IPN Notification. It's usually the URL of the event with the IPN Listener in your form. You do not want to send the User there,

The Return URL is a different URL that you give to PayPal to tell them where to return the User to after they have paid.

Both of these can be set for each form.

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