PayPal 没有返回我需要的所有信息?

发布于 2024-12-09 03:35:37 字数 1126 浏览 0 评论 0原文

这是后续内容:设置 PayPal 返回 URL 并使其成为自动返回?

我现在终于得到回复了。这是 print_r($_REQUEST) 的结果:

Array
(
     [q] => paypal/return
     [tx] => XXPXXX7XXXXXXXXXX
     [st] => Completed
     [amt] => 1.05
     [cc] => USD
     [cm] => 
     [item_number] => NA
     [__utma] => XXX096XXX.XXX229XXX3.13XXX76XXX.13XXX936XX.1XXX397915.6
     [__utmz] => 231096538.131XXX6095.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)
     [SESS4088bf574XXX65c931XXX51XXX9e0XXX] => f8fe6XXX18029fXXX39305cXXX4aXXXc
     [PHPSESSID] => c0XXX43a9f7XXXa5XXXb2XXXf4419XXX
     [__utmc] => 23109XXX8
     [__utmb] => 2XX0XXX38.8.10.1318XXX15
)
  1. 为什么我指定的发票值是这样的: -->没有归还?
  2. 为什么未返回“费用”值?即贝宝收取多少佣金?
  3. 在结帐之前是否可以获取交易 ID?即我可以请求交易ID 被称为什么吗?

更新: 1. 在我添加 后,它现在返回为“cm” 2....... 3.......

This is a follow up to: Setting PayPal return URL and making it auto return?

I now finally get a response. This is the result of print_r($_REQUEST):

Array
(
     [q] => paypal/return
     [tx] => XXPXXX7XXXXXXXXXX
     [st] => Completed
     [amt] => 1.05
     [cc] => USD
     [cm] => 
     [item_number] => NA
     [__utma] => XXX096XXX.XXX229XXX3.13XXX76XXX.13XXX936XX.1XXX397915.6
     [__utmz] => 231096538.131XXX6095.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)
     [SESS4088bf574XXX65c931XXX51XXX9e0XXX] => f8fe6XXX18029fXXX39305cXXX4aXXXc
     [PHPSESSID] => c0XXX43a9f7XXXa5XXXb2XXXf4419XXX
     [__utmc] => 23109XXX8
     [__utmb] => 2XX0XXX38.8.10.1318XXX15
)
  1. Why is the invoice value that I specified like this: <INPUT TYPE="hidden" id="invoice" NAME="invoice" value="XXXXXX"> --> not returned?
  2. Why is the "Fee" value not returned? I.e. How much paypal is taking as their cut?
  3. Is it at all possible to get the transaction id BEFORE I checkout? I.e. Can I request the transaction ID to be called something?

UPDATE:
1. It is now returned as 'cm' after i added <INPUT TYPE="hidden" id="invoice" NAME="custom" value="XXXXXX">
2. .....
3. .....

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文