I need to redirect after form submission to my paypal site. How do I correctly write the query string? i need to list price, item, currency, and return values. Any help would be greatly appreciated!!
I need to redirect after form submission to my paypal site. How do I correctly write the query string? i need to list price, item, currency, and return values. Any help would be greatly appreciated!!
Is there any reason why you aren't using the Gravity Forms PayPal Add-On to integrate with PayPal rather than doing it via a redirect? The PayPal Add-On is designed to let you create order forms that integrate with PayPal and just makes things easier.
If you don't want to use the Add-On you'd have to check with the PayPal API to see how what needs to be passed in the query string. You configure the redirect by editing your form, going to Form Settings, selecting the Confirmation Tab and then setting it to Redirect. You would then use the query string builder to build your query string and pass form field values. But I don't know what PayPal needs from you in the query string, you'd have to find that out from the PayPal API documentation.
I would love to use the paypal add-on, but in all honesty I can't afford the cost of the developers liscense.
Rdowney, did you ever figure this out? I'm having the same issue. Thanks!!
I'm not sure how PayPal wants the data passed, but it is possible because users have done it. There used to be a tutorial on how to do this that a user had written but the site is no longer available so I can't link to it. You would have to find out what data PayPal wants passed to it via the query string, and then configure your form to pass that data to PayPal using the confirmation redirect.
I posted this question in Paypal's forum and have finally figured it out!!!!
Here is the link you need to enter into the redirect url...
https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=YOURPAYPALEMAIL
Then go to paypal's html variable page, https://merchant.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_Appx_websitestandard_htmlvariables and figure out what data you want to send. For instance...
item_name=Total&amount={Total:115}(or whatever your form field you want to enter for the price). Or if it's a one price "buy now" type deal, you don't need to enter {Total:115} just put in the number. Such as amount=15.00.
It was so stinking simple one I had the correct website address to send it to! :)