简体   繁体   English

如何在Sylius中配置Paypal Express Checkout?

[英]How configure Paypal Express Checkout in Sylius?

I've started a new project with Sylius and I'm trying to make an order trying to pay it with paypal. 我已经与Sylius一起开始了一个新项目,我正在尝试下订单,尝试用Paypal付款。 I've changed my paypal account as premium user to get my username, password and signature. 我已将贝宝帐户更改为高级用户,以获取用户名,密码和签名。 Then I've configured the parameters.yml file adding those datas. 然后,我已经配置了parameters.yml文件并添加了这些数据。

contexts:
    paypal_express_checkout:
        paypal_express_checkout_nvp:
            username:  
            password:  
            signature: 
            sandbox:   true

But when I choose paypal as a payment option I get this: 但是,当我选择贝宝作为付款方式时,我得到了:

在此处输入图片说明

Is something else what I have to configure? 还有什么我需要配置的吗?

PS The version of Sylius is 0.11.0-dev PS Sylius的版本是0.11.0-dev

If you are using the live Credentials of paypal please set the sandbox as false in parameters.yml file ... it will help you ... 如果您使用的是Paypal的实时凭据,请在parameters.yml文件中将沙箱设置为false……这将帮助您...

because if sandbox is true then paypal only allow the Test mode payment 因为如果沙盒为true,则贝宝仅允许测试模式付款

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

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