<small id='IjWnZ'></small><noframes id='IjWnZ'>

      <tfoot id='IjWnZ'></tfoot>
          <bdo id='IjWnZ'></bdo><ul id='IjWnZ'></ul>
      1. <legend id='IjWnZ'><style id='IjWnZ'><dir id='IjWnZ'><q id='IjWnZ'></q></dir></style></legend>
        <i id='IjWnZ'><tr id='IjWnZ'><dt id='IjWnZ'><q id='IjWnZ'><span id='IjWnZ'><b id='IjWnZ'><form id='IjWnZ'><ins id='IjWnZ'></ins><ul id='IjWnZ'></ul><sub id='IjWnZ'></sub></form><legend id='IjWnZ'></legend><bdo id='IjWnZ'><pre id='IjWnZ'><center id='IjWnZ'></center></pre></bdo></b><th id='IjWnZ'></th></span></q></dt></tr></i><div id='IjWnZ'><tfoot id='IjWnZ'></tfoot><dl id='IjWnZ'><fieldset id='IjWnZ'></fieldset></dl></div>

      2. Paypal IPN 自定义变量

        Paypal IPN custom variables(Paypal IPN 自定义变量)

          • <bdo id='SLAMN'></bdo><ul id='SLAMN'></ul>

              <tbody id='SLAMN'></tbody>

            <tfoot id='SLAMN'></tfoot>

            <small id='SLAMN'></small><noframes id='SLAMN'>

            <i id='SLAMN'><tr id='SLAMN'><dt id='SLAMN'><q id='SLAMN'><span id='SLAMN'><b id='SLAMN'><form id='SLAMN'><ins id='SLAMN'></ins><ul id='SLAMN'></ul><sub id='SLAMN'></sub></form><legend id='SLAMN'></legend><bdo id='SLAMN'><pre id='SLAMN'><center id='SLAMN'></center></pre></bdo></b><th id='SLAMN'></th></span></q></dt></tr></i><div id='SLAMN'><tfoot id='SLAMN'></tfoot><dl id='SLAMN'><fieldset id='SLAMN'></fieldset></dl></div>
          • <legend id='SLAMN'><style id='SLAMN'><dir id='SLAMN'><q id='SLAMN'></q></dir></style></legend>

                1. 本文介绍了Paypal IPN 自定义变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我的 Paypal IPN 付款正在工作(立即购买按钮),但现在我必须为每笔交易在我的数据库中添加一些变量,例如折扣名称、用户 ID 等.过去我使用自定义隐藏字段,因为我只需要用户 ID.但是现在我不知道如何传递这个新的自定义变量并让它们在付款成功时从 Paypal POST 返回?

                  My Paypal IPN payement is working (buy now button) but now I have to add some variables, like the discount name, the user ID, etc... in my database for each transaction. In the past I used the custom hidden field as I just need the user ID. But now I don't know how to pass this new custom variables and have them POST back form Paypal if the payement succeed ?

                  感谢您的帮助!

                  推荐答案

                  您有三个主要选择:

                  1. 使用标准的custom 隐藏字段将您需要的所有数据存储在一个字符串中.您可以使用 JSON 格式或某种等效格式.变量大小限制为 256 个字符,这听起来可能就足够了.

                  1. Use the standard custom hidden field to store all the data you need in one string. You could use JSON format or some equivalent. The variable size is limited to 256 characters, which sounds like it might be enough.

                  custom 字段中存储一个唯一 ID,并使用此 ID 查找您存储在数据库中的其他数据.

                  Store a unique id in the custom field, and use this id to look up the other data that you've stored in your database.

                  还有额外的 option 字段,您可以按照建议使用 此处 并由 PayPal 这里:

                  There are also additional option fields you can use as suggested here and explained by PayPal here:

                  您也可以将一些标准 PayPal 字段用于其预期用途以外的目的(即隐藏您的数据),但我认为这是非常可疑且完全没有必要的.

                  You could possibly also use some of the standard PayPal fields for purposes other than that for which they were intended (i.e., to hide your data), but this is highly dubious and entirely unnecessary, I would imagine.

                  请参阅此答案.

                  这篇关于Paypal IPN 自定义变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  How do I pass parameters into a PHP script through a webpage?(如何通过网页将参数传递给 PHP 脚本?)
                  PHP - include a php file and also send query parameters(PHP - 包含一个 php 文件并发送查询参数)
                  Where can I read about conditionals done with quot;?quot; and quot;:quot; (colon)?(我在哪里可以阅读有关使用“?完成的条件的信息?和“:(冒号)?)
                  Accessing arrays whitout quoting the key(在不引用键的情况下访问数组)
                  What is the name for the quot;lt;lt;lt;quot; operator?(“lt;lt;lt;的名字是什么?操作员?)
                  default as first option in switch statement?(默认为 switch 语句中的第一个选项?)
                    <tbody id='Nr2Ls'></tbody>

                      • <bdo id='Nr2Ls'></bdo><ul id='Nr2Ls'></ul>
                      • <legend id='Nr2Ls'><style id='Nr2Ls'><dir id='Nr2Ls'><q id='Nr2Ls'></q></dir></style></legend>
                        <i id='Nr2Ls'><tr id='Nr2Ls'><dt id='Nr2Ls'><q id='Nr2Ls'><span id='Nr2Ls'><b id='Nr2Ls'><form id='Nr2Ls'><ins id='Nr2Ls'></ins><ul id='Nr2Ls'></ul><sub id='Nr2Ls'></sub></form><legend id='Nr2Ls'></legend><bdo id='Nr2Ls'><pre id='Nr2Ls'><center id='Nr2Ls'></center></pre></bdo></b><th id='Nr2Ls'></th></span></q></dt></tr></i><div id='Nr2Ls'><tfoot id='Nr2Ls'></tfoot><dl id='Nr2Ls'><fieldset id='Nr2Ls'></fieldset></dl></div>

                          <small id='Nr2Ls'></small><noframes id='Nr2Ls'>

                          <tfoot id='Nr2Ls'></tfoot>