Can I test paypal api's from localhost

前端 未结 7 839
难免孤独
难免孤独 2020-12-25 13:07

UPDATE 1:

According to this tutorial on Using PayPal\'s Instant Payment Notification with PHP, PayPal cannot access locally hosted websites unless c

7条回答
  •  既然无缘
    2020-12-25 13:42

    Well, it most works, but also, you can setup a temporary local dns entry. All you have to do is:

    1. open your /etc/hosts
    2. add a new entry: yourwebsite.com 127.0.0.1

    So when your browser query for the website will be fetched from your 127.0.0.1, somethings your need to flush dns( /etc/init.d/nscd restart).

    and that is it all, but remember to remove the entry when you are ready for production.

提交回复
热议问题