How to Make Automatic URL in Paypal

Asked

Viewed 1,338 times

4

I have a page with a form that, after submitted, sends the data to paypal, after the customer make the payment wanted it to be redirected to the return url I send along with this form, however, whenever the customer makes the payment is sent to a page that says he has finalized the payment and the customer only and redirected to the url that indicates if you click on the link that says "Click Here to return to ...". but I wanted him to go straight to the page that in 10 seconds is redirected

Follow the screen I wanted to jump:

inserir a descrição da imagem aqui

I have Return URL active and configured on the paypal site

I wanted the user after paying to be immediately redirected to this page, thus being redirected directly to the site. inserir a descrição da imagem aqui

1 answer

1

Log in to your Paypal account and activate "Auto Return".

Normally you will find in "Payment Preferences" (Selling Preferences).

There is a field to enter a return URL. You can put any URL because this URL can be customized in the payment requests.

The parameters of the checkout

return -> URL absoluta da página de retorno
rm -> 1: GET, 2: POST
custom -> parametro_que_vc_quer_receber=valor_desse_parametro

Example

return: http://foo.bar/order/paypal/return
rm: 2
custom: order_id=10

This will inform Paypal to return by the POST method (rm == 2) and include a parameter order_id worthwhile 10. The URL you will receive is http://foo.bar/order/paypal/return

For more references (English): https://www.paypal.com/be/cgi-bin/webscr?cmd=p/mer/express_return_summary-Outside

IPN Listener

To reinforce, it is recommended to also define the notification URL.

The parameter is notify_url. To learn more, see: https://developer.paypal.com/docs/classic/ipn/integration-guide/IPNSetup/

  • Hello, obigado by disponibildiade, however I have it configured, but whenever I make a payment the user has to click on the link to return to the site. after that goes to the page that says in 10 seconds you’ll be redirected. i wanted the user after paying to be immediately forwarded to the site without having to click on the link

  • You mean that little delay, right? There’s not much to do. At least I don’t know about an instant redirect. Paypal uses that little delay. I think it is so that the user has time to see that the transaction has been made, but within the Paypal domain.

  • no, I’m not talking about that delay, I’m talking about the first image of my question where the user is there and just forwarded to the site if you click on the link. After clicking on the link and then sent to that page that has the delay in which it waits until 10 sec and only after and redirected to my site, the

Browser other questions tagged

You are not signed in. Login or sign up in order to post.