Braintree:Python Heroku 服务器
Braintree: Python Heroku Server
我有一个(可能很简单的)关于 python heroku 服务器上的 运行 braintree 的问题,详见此处 https://developers.braintreepayments.com/start/hello-server/python
现在,我是 heroku 的新手,尝试并完成了很多教程,这些教程似乎都创建了一个可由 Web 服务器访问的应用程序(例如 python 的烧瓶)。
显然,我无法通过网络服务器测试我的 braintree 应用程序。有没有其他方法可以与我的 braintree 服务相对应,看看它是否在做正确的事情?例如从控制台?
我只是想知道除了通过 iOS 是否还有其他方法可以与我的 braintree 服务器交互并测试输入和输出行为。
此外,目前我使用
的procfile
web: gunicorn main_app:app
和
flask==0.10.1
dj-database-url==0.4.1
Django==1.9.7
gunicorn==19.6.0
psycopg2==2.6.1
whitenoise==2.0.6
braintree==3.32.0
在我的 requirements.txt 中,在这两种情况下都不确定这是否正确。
完全披露:我在 Braintree 工作。如果您有任何其他问题,请随时联系 support.
curl
是“a command line tool used for transferring data with URLs." Check out the manual 详细信息和用例。
例如,假设您有一条路线定义为 return a Braintree client token。您可以使用 curl 向该路由发出请求。
curl https://your-apps-name.herokuapp.com/client_token
如果您的请求成功,呈现页面的 HTML 应该包含令牌。
我有一个(可能很简单的)关于 python heroku 服务器上的 运行 braintree 的问题,详见此处 https://developers.braintreepayments.com/start/hello-server/python
现在,我是 heroku 的新手,尝试并完成了很多教程,这些教程似乎都创建了一个可由 Web 服务器访问的应用程序(例如 python 的烧瓶)。
显然,我无法通过网络服务器测试我的 braintree 应用程序。有没有其他方法可以与我的 braintree 服务相对应,看看它是否在做正确的事情?例如从控制台?
我只是想知道除了通过 iOS 是否还有其他方法可以与我的 braintree 服务器交互并测试输入和输出行为。
此外,目前我使用
的procfileweb: gunicorn main_app:app
和
flask==0.10.1
dj-database-url==0.4.1
Django==1.9.7
gunicorn==19.6.0
psycopg2==2.6.1
whitenoise==2.0.6
braintree==3.32.0
在我的 requirements.txt 中,在这两种情况下都不确定这是否正确。
完全披露:我在 Braintree 工作。如果您有任何其他问题,请随时联系 support.
curl
是“a command line tool used for transferring data with URLs." Check out the manual 详细信息和用例。
例如,假设您有一条路线定义为 return a Braintree client token。您可以使用 curl 向该路由发出请求。
curl https://your-apps-name.herokuapp.com/client_token
如果您的请求成功,呈现页面的 HTML 应该包含令牌。