贝宝(Paypal)PDT不会返回“自定义"不再有价值(回归?) [英] Paypal PDT doesn't return "custom" value anymore (regression?)

查看:118
本文介绍了贝宝(Paypal)PDT不会返回“自定义"不再有价值(回归?)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当客户在付款后被重定向回我们的网站时,我们使用PDT的cmd=_notify-synch API来验证交易. 我们在贝宝(Paypal)按钮中传递带有客户ID的自定义"值,并希望取回该值.在过去的5年中效果很好.

We use PDT's cmd=_notify-synch API to validate transactions when the customer is redirect back to our website after a payment. We pass a "custom" value in our Paypal buttons with a customer id, and we expect to get this value back. This worked fine for the past 5 years.

从2018/10/19左右开始,PDT API停止返回传入的自定义"值.这中断了我们的付款流程.

Starting on or around 2018/10/19, the PDT API stopped returning the "custom" value that was passed in. This broke our payment flow.

不确定是否有人遇到此问题,和/或是否有变通办法或要更改的配置.

Not sure if anybody else ran into this issue, and/or if there's a workaround or a configuration to change.

推荐答案

该按钮URL用于托管按钮,这意味着在创建按钮时,所有参数都在PayPal中设置.您不能将return值直接传递给托管按钮.您需要在PayPal帐户内的托管按钮本身中进行调整.

That button URL is for a hosted button, which means all of the parameters are set within PayPal when you create the button. You cannot pass a return value directly to a hosted button. You would need to adjust that in the hosted button itself within the PayPal account.

唯一的设置方法是在高级变量"部分,但是您当然不能使它动态化.如果这是一个问题,则需要切换到使用非托管按钮,以便您可以按照尝试的方式直接传递参数.

The only way to set it there would be with the Advanced Variables section, but of course you won't be able to make that dynamic. If this is a problem you're going to need to switch to using a non-hosted button so that you can then pass parameters directly the way you are trying to do.

除此之外,您可以切换到使用Express Checkout API,然后您将拥有更大的自由度和灵活性,可以在结帐期间执行所需的任何操作.

Beyond that you could switch to using the Express Checkout API, and then you have more freedom and flexibility to do whatever you need during checkout.

这篇关于贝宝(Paypal)PDT不会返回“自定义"不再有价值(回归?)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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