简体   繁体   English

禁用Paypal Express的沙盒模式

[英]Disable sandbox mode for Paypal Express

I'm using Omnipay with CodeIgniter to allow customers to checkout on Paypal. 我正在将Omnipay与CodeIgniter结合使用,以允许客户在Paypal上结帐。 I was using test mode during the development on the website, but now the site is done and ready to be put in production. 在网站开发过程中,我一直在使用测试模式,但是现在该网站已完成,可以投入生产。

But I don't know how to setup Omnipay to use live payments and not Sandbox mode. 但是我不知道如何设置Omnipay以使用实时付款而不是沙盒模式。 I tried setting the testMode to false. 我尝试将testMode设置为false。 -> Security header invalid. ->安全头无效。

I tried creating REST Api credentials -> You can't make this api call. 我尝试创建REST Api凭据->您无法进行此api调用。

I know that's probably not the right way to do this, but at least I explored options. 我知道这可能不是正确的方法,但至少我探索了各种选择。

So please, what's the most suitable configuration to do live Payments on PaypalExpress with Omnipay ? 那么,请问最适合使用Omnipay在PaypalExpress上进行实时付款的配置是什么?

Thanks in advance. 提前致谢。

You need to set testMode to false , or just leave it out entirely (false is the default). 您需要将testMode设置为false ,或者将其完全省略(默认为false)。

Security header invalid 安全标头无效

This means that you are trying to use test credentials with the production environment (which it sounds like you were). 这意味着您正在尝试在生产环境中使用测试凭据(听起来像是在使用)。

You don't want to create REST credentials, you need to create API credentials for the standard PayPal NVP API. 您不想创建REST凭据,需要为标准PayPal NVP API创建API凭据。

PayPal Express requires an API Username, Password, and Signature. PayPal Express需要API用户名,密码和签名。 These are different from your PayPal account details. 这些与您的PayPal帐户详细信息不同。 You can obtain your API details by logging in to your (live) PayPal account, and clicking Profile > My Selling Tools > API Access > Request/View API Credentials > Request API Signature. 您可以通过登录(实时)贝宝帐户并单击配置文件>我的销售工具> API访问>请求/查看API凭证>请求API签名来获取API详细信息。

depending on what type of payments are you using you need to say paypal to activate your account for this types of transactions (this is not necessary in sandbox. 根据您使用的是哪种付款方式,您需要说出贝宝来激活这种交易类型的帐户(在沙盒中这不是必需的)。
Anyway, is these error returned by omnipay or by paypal api? 无论如何,omnipay或paypal API是否会返回这些错误? Copy and paste de full error here for more help. 在此处复制并粘贴完整错误,以获取更多帮助。
There are a lot of differences between sandbox and real mode, sandbox usually say ok to any transaction. 沙盒和实模式之间有很多区别,沙盒通常可以接受任何事务。 We had a lot of problems integrating paypal api because of bad practices in sandbox. 由于沙箱中的不良做法,我们在集成Paypal API时遇到了很多问题。

In order to try your code in the PayPal sandbox test environment, use the following credentials : 为了在PayPal沙箱测试环境中尝试您的代码,请使用以下凭据:

API username : sdk-three_api1.sdk.com API用户名 :sdk-three_api1.sdk.com
API password : QFZCWN5HZM8VBG7Q API密码 :QFZCWN5HZM8VBG7Q
API signature : A‑IzJhZZjhg29XQ2qnhapuwxIDzyAZQ92FRP5dqBzVesOkzbdUONzmOU API签名 :A‑IzJhZZjhg29XQ2qnhapuwxIDzyAZQ92FRP5dqBzVesOkzbdUONzmOU

PS: Don't forget to set testMode to true PS:别忘了将testMode设置为true

source : PayPal NVP API Overview 来源: PayPal NVP API概述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM