X-PAYPAL-APPLICATION-ID标头包含无效值
我正在与Paypal一起在红宝石上工作,我需要发送发票。我的沙盒帐户正在运行,我可以在平台上看到发票,但是如果我输入“ live”,则无法执行。我得到这个错误 X-PAYPAL-APPLICATION-ID标头包含无效值 在哪里可以找到我的应用程序ID?或如何发送发票?
控制器
@api = PayPal::SDK::Invoice::API.new(
:mode => "live", # Set "live" for production
:app_id => "APP-80W284485P519543T", <-i have only for sandbox
:username => "xxxxx.gmail.com",
:password => "xxxxxx",
:signature => "xxxxxxx" )
yml
test: &default
# Credentials for REST APIs
client_id: xxxx
client_secret: xxxx
# Mode can be 'live' or 'sandbox'
mode: live
# Credentials for Classic APIs
app_id: APP-80W284485P519543T
username: xxxx
password: xxxx
signature: xxxx
# # With Certificate
# cert_path: "config/cert_key.pem"
sandbox_email_address: xxxx
# # IP Address
# ip_address: 127.0.0.1
# # HTTP Proxy
# http_proxy: http://proxy-ipaddress:3129/
development:
<<: *default
production:
<<: *default
mode: live