使用 Rails 测试 PayPal [英] Testing PayPal with Rails
问题描述
我需要测试与我的应用程序的新 PayPal 集成.我在开发环境中使用 PayPal 沙箱.
I need to test a new PayPal integration with my application. I use PayPal sandbox in development env.
为了测试整个界面,我发现 ngrok 可能会解决来自 PayPal 的消息问题.
In order to test the entire interface, I figured out that ngrok might solve the problem of messages from PayPal.
我在新的 Ubuntu 16.04 安装上使用 apt-get install ngrok-client
安装了 ngrok.
I installed ngrok using apt-get install ngrok-client
on my new Ubuntu 16.04 instalation.
当我尝试运行它 (ngrok 3000
, ngrok 80
) 时,我收到以下错误:
When I try to run it (ngrok 3000
, ngrok 80
) I get the following error:
Invalid address server_addr 'ngrokd.ngrok.com:443': lookup ngrokd.ngrok.com: no such host
有什么想法吗?
任何其他测试 PayPal 集成的解决方案?
Any idea?
Any other solution to test PayPal integration?
==================== 编辑 ==================
==================== EDIT ==================
非常重要 - 如果您使用 Rails 4.2.0,请查看本教程,它可能会为您节省几个小时的挫败感:
https://www.youtube.com/watch?v=YXKNxEv35HU
Very important - if youi use Rails 4.2.0, have a look at this tutorial, it might save you some hours of frustration:
https://www.youtube.com/watch?v=YXKNxEv35HU
推荐答案
尝试在放置 Ngrok 可执行文件的目录中运行 ./ngrok http 3000
.
Try to Run ./ngrok http 3000
in the Directory where your Ngrok executable file is placed.
这篇关于使用 Rails 测试 PayPal的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!