Has anyone any experience of getting the Paypal plug in to work? I''ve set myself up on the Paypal sandbox, I''ve setup my sending and receiving accounts, i''ve got the Paypal button on my view, I can go and make payments ok, but I can''t get the Instant Payment Notification part to work. At the end of the payment process the user is left in a paypal screen with seemingly no way back to my app and the paypal_ipn action Cheers, John -- Posted via http://www.ruby-forum.com/.
> I''ve set myself up on the Paypal sandbox, I''ve setup my sending and > receiving accounts, i''ve got the Paypal button on my view, I can go and > make payments ok, but I can''t get the Instant Payment Notification part > to work. At the end of the payment process the user is left in a paypal > screen with seemingly no way back to my app and the paypal_ipn actionHave you turned on the IPN in your PayPal profile? Also, to have PayPal redirect you back to your site, you need turn on Auto Return and set the url you want to return to. HTH, Jord
Jordan Elver wrote:>> I''ve set myself up on the Paypal sandbox, I''ve setup my sending and >> receiving accounts, i''ve got the Paypal button on my view, I can go and >> make payments ok, but I can''t get the Instant Payment Notification part >> to work. At the end of the payment process the user is left in a paypal >> screen with seemingly no way back to my app and the paypal_ipn action > > Have you turned on the IPN in your PayPal profile? Also, to have > PayPal redirect you back to your site, you need turn on Auto Return > and set the url you want to return to. > > HTH, > JordThanks Jord, I don''t think i''ve done any of those things so I shall try that tonight.... Do you know where I tell Paypal the URL? Presumably its the url to the controller task that deals with the IPN? --John -- Posted via http://www.ruby-forum.com/.
jh100000 wrote:> > Do you know where I tell Paypal the URL? Presumably its the url to the > controller task that deals with the IPN? >There are 3 hidden form variables you can use to set the values in the form that posts to Paypal.. heres an example: <input type="hidden" name="return" value="http://www.yoursite.com/thankyou" /> <input type="hidden" name="cancel_return" value="http://www.yoursite.com/cancel" /> <input type="hidden" name="notify_url" value="http://www.yoursite.com/paypal_ipn" /> Regards, Dave http://www.favoriterun.com -- Posted via http://www.ruby-forum.com/.
Many thanks Dave and Jord. I''ve managed to get IPN! Cheers guys --John -- Posted via http://www.ruby-forum.com/.
My Paypal payments are coming though perfectly now. I''m very impressed. However, one small problem... I seem to get 3 notifications for every payment. Is this normal? --John -- Posted via http://www.ruby-forum.com/.
> However, one small problem... I seem to get 3 notifications for every > payment. > Is this normal?I''m not sure, but I think you need to acknowledge the IPN post from PayPal. If you don''t I think PayPal will continue to send IPNs to you. Maybe the sandbox is limited to 3 tries?
Jordan Elver wrote:>> However, one small problem... I seem to get 3 notifications for every >> payment. >> Is this normal? > > I''m not sure, but I think you need to acknowledge the IPN post from > PayPal. If you don''t I think PayPal will continue to send IPNs to > you. Maybe the sandbox is limited to 3 tries?Thanks Jordan, I''ve got it sorted now I think there was some sort of handshake that wasn''t working properly - but it now is working spot on! I''m very impressed! --John -- Posted via http://www.ruby-forum.com/.