Paypal adaptive payment return url is calling twice

后端 未结 1 773
独厮守ぢ
独厮守ぢ 2021-01-02 11:54

I have implemented paypal adaptive payment method and using the web flow. After making a payment, when i explicitly clicks on return button, the return url calls twice but i

相关标签:
1条回答
  • 2021-01-02 12:28

    @jitendra, I had this same issue and found out that the paypal uses a server side script which redirects the user to the return url after a while and when we explicitly click on return button, then the paypal server script again hits the return url on its own thus we get two responses/hits on our return url.

    We can over some this by checking/maintaining the no of responses which we get after the payments are made on paypal.

    We can maintain this using cookies on client end or on server using sessions or something else similar.

    Hope this helps well.

    0 讨论(0)
提交回复
热议问题