需要API签名才能请求PayPal错误,我已经设置了API签名 [英] API Signature is required to make requests to PayPal error, I have an API signature set already

查看:170
本文介绍了需要API签名才能请求PayPal错误,我已经设置了API签名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在有一个大问题。我的网站是用Ruby on Rails编写的,我正在使用活跃的商家gem与PayPal进行交互。该网站托管在heroku上。



在我的heroku应用程序中,我有一个API密钥和API签名设置为配置变量。然而,我仍然得到错误:

$ $ p $ 运行:rake资产:预编译
(在/ tmp / build_3pvaswdp7wvca1)
rake中止!
需要API证书或API签名才能向PayPal
发出请求(请参阅使用--trace运行任务完整跟踪)

我可以运行heroku运行rake资源:单独预编译并且工作完全正常。

另外,我的暂存站点具有在暂存网站上设置的配置变量完全相同(RACK_ENV和RAILS_ENV在暂存站点btw上设置为生产),似乎工作正常。然而,我的生产网站崩溃。



关于可能发生的事情/如何解决这个问题的任何想法?

解决方案

我刚刚发现了这个命令:

  heroku labs:enable user-env -compile -a myapp 

但它是实验性的。


I'm having a big problem right now. My site is written in Ruby on Rails, and I'm using the active merchant gem to interface with PayPal. The site is hosted on heroku.

I have an API key and API signature set as config variables in my heroku app. However, I still get the error:

Running: rake assets:precompile
(in /tmp/build_3pvaswdp7wvca1)
rake aborted!
An API Certificate or API Signature is required to make requests to PayPal
(See full trace by running task with --trace)

I can run heroku run rake assets:precompile separately and that works completely fine.

Furthermore, my staging site has the exact same config variables (RACK_ENV and RAILS_ENV are set to production on the staging site btw) set on my staging site and that seems to be working fine. However, my production site crashes.

Any ideas on what might be happening / how to fix this issue?

解决方案

I just found out about this command:

heroku labs:enable user-env-compile -a myapp 

BUT it is experimental.

这篇关于需要API签名才能请求PayPal错误,我已经设置了API签名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆