简体   繁体   English

PayPal Express Checkout寄送地址不可修改

[英]PayPal Express Checkout Shipping Address should not be editable

I have already spent a lot of hours to find an answer for my problem but unfortunately i can't find a soloution. 我已经花了很多时间为我的问题找到答案,但是不幸的是我找不到解决方法。

I implement PayPal (Express Checkout) in our Shop-System. 我在我们的商店系统中实现了PayPal(快速结帐)。 In our shop, the customer enters his shipping address. 客户在我们的商店中输入其送货地址。 I don't want the customer to get the option to change his shipping address in PayPal. 我不希望客户选择在PayPal中更改其送货地址。 I only want the shipping address to be displayed which was entered before. 我只希望显示以前输入的送货地址。

For example, here is an express checkout implementation like I want it: 例如,这是一个我想要的快速结帐实现:

Shipping Address only displayed: 仅显示运送地址:

在此处输入图片说明

How can i make this possible? 我怎样才能做到这一点?

I use the PayPalSDK for ASP.NET 我将PayPalSDK用于ASP.NET

In your SetExpressCheckout request you can add the ADDROVERRIDE parameter and set its value to 1. Then make sure to include the shipping address parameters in your SEC request as well. 在您的SetExpressCheckout请求中,您可以添加ADDROVERRIDE参数并将其值设置为1。然后确保在您的SEC请求中也包括运送地址参数。

What this will do is simply display the address you pass over to PayPal without the ability for the user to change it. 这将仅显示您传递给PayPal的地址,而用户无法更改它。

The value 1 indiciates that the PayPal pages should display the shipping address set by you in the SetExpressCheckout request, not the shipping address on file with PayPal. 值1表示PayPal页面应显示您在SetExpressCheckout请求中设置的送货地址,而不是PayPal归档的送货地址。 This does not allow the customer to edit the address here. 这不允许客户在此处编辑地址。 Must be 1 or 0 必须为1或0

Here's a sample of an SEC request I just sent to the PayPal sandbox: 这是我刚刚发送到PayPal沙箱的SEC请求的示例:

[REQUESTDATA] => Array
    (
        [USER] => *****
        [PWD] => *****
        [VERSION] => 97.0
        [BUTTONSOURCE] => AngellEYE_PHPClass
        [SIGNATURE] => *****
        [METHOD] => SetExpressCheckout
        [MAXAMT] => 200.00
        [RETURNURL] => http://paypal.angelleye.com/standard/samples/DoExpressCheckoutPayment.php
        [CANCELURL] => http://paypal.angelleye.com/paypal/class/cancel.php
        [REQCONFIRMSHIPPING] => 0
        [NOSHIPPING] => 1
        [ALLOWNOTE] => 1
        [ADDROVERRIDE] => 1
        [BRANDNAME] => Angell EYE
        [CUSTOMERSERVICENUMBER] => 555-555-5555
        [BUYEREMAILOPTIONENABLE] => 1
        [SURVEYENABLE] => 1
        [BUYERREGISTRATIONDATE] => 2012-07-14T00:00:00Z
        [PAYMENTREQUEST_0_AMT] => 100.00
        [PAYMENTREQUEST_0_CURRENCYCODE] => USD
        [PAYMENTREQUEST_0_ITEMAMT] => 80.00
        [PAYMENTREQUEST_0_SHIPPINGAMT] => 15.00
        [PAYMENTREQUEST_0_TAXAMT] => 5.00
        [PAYMENTREQUEST_0_DESC] => This is a test order.
        [PAYMENTREQUEST_0_SHIPTONAME] => Tester Testerson
        [PAYMENTREQUEST_0_SHIPTOSTREET] => 123 Test Ave.
        [PAYMENTREQUEST_0_SHIPTOCITY] => Kansas City
        [PAYMENTREQUEST_0_SHIPTOSTATE] => MO
        [PAYMENTREQUEST_0_SHIPTOZIP] => 64111
        [PAYMENTREQUEST_0_SHIPTOCOUNTRY] => US
        [PAYMENTREQUEST_0_SHIPTOPHONENUM] => 816-555-5555
        [PAYMENTREQUEST_0_NOTETEXT] => This is a test note before ever having left the web site.
        [PAYMENTREQUEST_0_PAYMENTACTION] => Sale
        [L_PAYMENTREQUEST_0_NAME0] => Widget 123
        [L_PAYMENTREQUEST_0_DESC0] => Widget 123
        [L_PAYMENTREQUEST_0_AMT0] => 40.00
        [L_PAYMENTREQUEST_0_NUMBER0] => 123
        [L_PAYMENTREQUEST_0_QTY0] => 1
        [L_PAYMENTREQUEST_0_ITEMURL0] => http://www.angelleye.com/products/123.php
        [L_PAYMENTREQUEST_0_NAME1] => Widget 456
        [L_PAYMENTREQUEST_0_DESC1] => Widget 456
        [L_PAYMENTREQUEST_0_AMT1] => 40.00
        [L_PAYMENTREQUEST_0_NUMBER1] => 456
        [L_PAYMENTREQUEST_0_QTY1] => 1
        [L_PAYMENTREQUEST_0_ITEMURL1] => http://www.angelleye.com/products/456.php
        [L_PAYMENTREQUEST_0_ITEMCATEGORY1] => Digital
    )

And here's what I see when I log in to PayPal as the buyer after this SEC call... 这是我在此SEC通话后以买家身份登录PayPal时看到的内容...

在此处输入图片说明

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

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