PayPal Express Checkout即时更新不更新运输 [英] PayPal Express Checkout Instant Update not updating shipping

查看:159
本文介绍了PayPal Express Checkout即时更新不更新运输的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Paypal Express Checkout,并且一切正常,除了在调用Callback时不更新运输公司.

I am using the Paypal Express Checkout and everything working good except the shipping carrier not being updated when the Callback is being called.

我可以验证正在调用回调(已记录呼叫). 当贝宝用客户运送国家/地区调用回叫URL时,我将返回以下值.

I can verify the callback is being called (call is logged). When Paypal call the callback URL with the customer shipping country I return the following values.

METHOD=CallbackResponse&OFFERINSURANCEOPTION=false&CURRENCYCODE=USD&TOKEN=EC-5Fsdf5523823&LOCALECODE=en_US&L_SHIPPINGOPTIONNAME0=USPS&L_SHIPPINGOPTIONLABEL0=First+Class+%283-7+Days%29&L_SHIPPINGOPTIONAMOUNT0=0.00&L_SHIPPINGOPTIONISDEFAULT0=true&L_TAXAMT0=0.00&L_INSURANCEAMOUNT0=0.00&L_SHIPPINGOPTIONNAME1=USPS&L_SHIPPINGOPTIONLABEL1=Priority+%282-3+Days%29&L_SHIPPINGOPTIONAMOUNT1=7.95&L_SHIPPINGOPTIONISDEFAULT1=false&L_TAXAMT1=0.00&L_INSURANCEAMOUNT1=0.00&L_SHIPPINGOPTIONNAME2=UPS&L_SHIPPINGOPTIONLABEL2=Next+Day+Air&L_SHIPPINGOPTIONAMOUNT2=39.95&L_SHIPPINGOPTIONISDEFAULT2=false&L_TAXAMT2=0.00&L_INSURANCEAMOUNT2=0.00

回调消息正在通过PHP回显(我什至尝试将其另存为txt文件,并将回调URL指向此文件),即使Paypal不会更新发运方法.

The Callback message is being echo'd through PHP (I even tried save this as a txt file and point the callback URL to this file), even then Paypal doesn't update the Shipping Method.

我也将CALLBACKTIMEOUT更改为6秒,但这没关系.我正在使用HTTPS,也尝试使用普通的HTTP.

I also changed CALLBACKTIMEOUT to 6 seconds but it doesn't matter. I am using HTTPS and also tried it with normal HTTP.

我正在沙盒模式下对此进行测试.

I am testing this in sandbox mode.

有人可以帮助我吗?我真的被困在这里,我一直在寻找类似的问题,但找不到任何问题.

Anyone could help me out? I am really stuck here and I have been searching for similar problems but couldn't find any.

为您提供信息,我遵循了此Paypal指南: https://developer.paypal.com/docs/classic/paypal-payments-pro/integration-guide/WPInstantUpdateAPI/

For your information I followed this Paypal guide : https://developer.paypal.com/docs/classic/paypal-payments-pro/integration-guide/WPInstantUpdateAPI/

我还检查了是否返回了如下所述的所有必填字段: https://developer.paypal.com/docs/classic/api/merchant/Callback_API_Operation_NVP/

I also checked if I am returning all the required fields as described here : https://developer.paypal.com/docs/classic/api/merchant/Callback_API_Operation_NVP/

我希望有人能帮助我,在此先感谢!

I hope someone can help me out, thanks in advance!

更新

我尝试不发货选项

METHOD=CallbackResponse&NO_SHIPPING_OPTION_DETAILS=1&CALLBACKVERSION=95.0

Paypal回应为不运送到此位置.请使用其他地址." 因此,响应网址有效,问题出在使用其他运输方式进行响应时.

Paypal responds with 'doesnot ship to this location. Please use a different address.' So the response url is working, the problem is when responding with other shipping options.

关于, 库鲁杜

推荐答案

我遇到了与您相同的问题,但是随后我尝试了PayPal Instant Update集成指南中的示例代码,并将其作为文本文件添加到了我的服务器上:

I was having the same problems as you, but then I tried the example code from the PayPal Instant Update integration guide and added it as a text file on my server:

METHOD=CallbackResponse&OFFERINSURANCEOPTION=true&L_SHIPPINGOPTIONNAME0=UPS+Air&L_SHIPPINGOPTIONLABEL0=UPS+Next+Day+Air+Freight&L_SHIPPINGOPTIONAMOUNT0=20.00&L_TAXAMT0=2.20&L_INSURANCEAMOUNT0=1.51&L_SHIPPINGOPTIONISDEFAULT0=false&L_SHIPPINGOPTIONNAME1=UPS+Expedited&L_SHIPPINGOPTIONLABEL1=UPS+Express+2+Days&L_SHIPPINGOPTIONAMOUNT1=10.00&L_TAXAMT1=2.00&L_INSURANCEAMOUNT1=1.35&L_SHIPPINGOPTIONISDEFAULT1=true&L_SHIPPINGOPTIONNAME2=UPS+Ground&L_SHIPPINGOPTIONLABEL2=UPS+Ground+2+to+7+Days&L_SHIPPINGOPTIONAMOUNT2=5.99&L_TAXAMT2=1.99&L_INSURANCEAMOUNT2=1.28&L_SHIPPINGOPTIONISDEFAULT2=false

这至少给了我一个CallbackResponse,它最终起作用了,然后我可以通过编程对其进行更新,以使其在其余过程中正常运行.把我的头发扯了很多小时.由于PayPal并未真正提供任何调试CallbackResponses的方法,因此我很高兴拥有一个可以正常运行的起点.

This at least gave me a CallbackResponse that finally worked which I then could update with programming to make it function the rest of the way. Spent many hours ripping my hair out. As PayPal doesn't really provide any means of debugging the CallbackResponses, I was happy to have a functioning starting point.

希望这有助于将其他人指向正确的方向.

Hopefully this helps to point others in the right direction.

这篇关于PayPal Express Checkout即时更新不更新运输的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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