如何禁用 PayPal Express Checkout 对城市参数的要求?
我如何告诉 Paypal Express Checkout 我不需要任何地址信息来处理我的订单?我在请求中发送 NOSHIPPING=1 参数,但是当我将订单提交到 paypal 沙箱、确认付款并返回到我的网页后,我收到以下错误消息:
L_ERRORCODE0 -> 10728
L_SHORTMESSAGE0 -> Shipping Address City Empty
L_LONGMESSAGE0 -> The field Shipping Address City is required
我是否遗漏了什么?
How can I tell Paypal Express Checkout that I don't require any address information to process my order? I'm sending the NOSHIPPING=1 parameter in my request, but once I submit the order to the paypal sandbox, confirm my payment, and return back to my webpage, I get the following errro message:
L_ERRORCODE0 -> 10728
L_SHORTMESSAGE0 -> Shipping Address City Empty
L_LONGMESSAGE0 -> The field Shipping Address City is required
Am I missing something?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
SetExpressCheckout 中的
NOSHIPPING=1
没问题,但如果您发送任何类型的地址参数,它仍然会验证地址。要关闭此功能,请确保您根本不发送任何
SHIPTOXxxx
参数(例如 SHIPTONAME、SHIPTOSTREET 等),或者不发送ADDROVERRIDE=1
NOSHIPPING=1
in SetExpressCheckout is fine, but it will still validate the addess if you send any sort of address parameter.To turn this off, ensure you don't send any
SHIPTOxxxxx
parameters at all (such as SHIPTONAME, SHIPTOSTREET, etc.) OR that you don't sendADDROVERRIDE=1