Express Checkout 错误消息:“安全标头无效" [英] Express Checkout error message: "Security header is not valid"

查看:31
本文介绍了Express Checkout 错误消息:“安全标头无效"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 PayPal 中实施快速结账.

I'm implementing Express Checkout in PayPal.

我对前两个步骤SetExpressCheckoutGetExpressCheckout 没有问题.但是当我使用 DoExpressCheckout 时,我遇到错误安全标头无效".

I have no problem with the first two steps, SetExpressCheckout and GetExpressCheckout. But when I use DoExpressCheckout, I encounter the error "Security header is not valid".

API 凭据相同!

我已通过将 DoExpressCheckout 中的 $environment 更改为 live 来修复它.($environment 的区别在于它将使用 https://api.sandbox.paypal.com/nvp/ 而不是 https://api-3t.$environment.paypal.com/nvp)

I've fixed it by changing the $environment to live in DoExpressCheckout. (The difference $environment makes is that it'll use https://api.sandbox.paypal.com/nvp/ instead of https://api-3t.$environment.paypal.com/nvp)

为什么?

https://api-3t.$environment.paypal.com/nvp 有什么问题吗?

推荐答案

https://api-3t.sandbox.paypal.com/nvp 需要与 https://api 不同的用户帐户-3t.paypal.com/nvp 需要.

沙盒帐户可以在 developer.paypal.com

这篇关于Express Checkout 错误消息:“安全标头无效"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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