• <tfoot id='r3chM'></tfoot>

    <legend id='r3chM'><style id='r3chM'><dir id='r3chM'><q id='r3chM'></q></dir></style></legend>

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

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

        将自定义变量传递给 paypal IPN

        时间:2023-06-23
            <bdo id='Cp0mK'></bdo><ul id='Cp0mK'></ul>

                <tfoot id='Cp0mK'></tfoot>
              • <legend id='Cp0mK'><style id='Cp0mK'><dir id='Cp0mK'><q id='Cp0mK'></q></dir></style></legend>
                  <tbody id='Cp0mK'></tbody>
                • <small id='Cp0mK'></small><noframes id='Cp0mK'>

                  <i id='Cp0mK'><tr id='Cp0mK'><dt id='Cp0mK'><q id='Cp0mK'><span id='Cp0mK'><b id='Cp0mK'><form id='Cp0mK'><ins id='Cp0mK'></ins><ul id='Cp0mK'></ul><sub id='Cp0mK'></sub></form><legend id='Cp0mK'></legend><bdo id='Cp0mK'><pre id='Cp0mK'><center id='Cp0mK'></center></pre></bdo></b><th id='Cp0mK'></th></span></q></dt></tr></i><div id='Cp0mK'><tfoot id='Cp0mK'></tfoot><dl id='Cp0mK'><fieldset id='Cp0mK'></fieldset></dl></div>
                • 本文介绍了将自定义变量传递给 paypal IPN的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在尝试将自定义变量传递给 paypal IPN.我可以设法传递一个变量.但我不知道如何传递多个变量.

                  I am trying to pass custom variables to paypal IPN. I can manage to pass one variable. But i don't know how to pass multiple variables.

                  我的流程是这样的

                  1. 用户填写表单
                  2. 他们点击按钮,然后转到贝宝
                  3. 他们付了钱,IPN 将信息发回给我,ipn.php 添加了传递给数据库的变量.

                  我的自定义变量是

                  1. 总行数(每当他们写作时,我都会计算行数)
                  2. 消息(他们写的消息)
                  3. 广告编号

                  但现在,我只能像这样传递一个变量

                  But for now, I can only pass one variable like this

                  form.php

                  <input name="custom" type="hidden" id="custom" value="{$line_count}">
                  
                  $_SESSION['line_count'] = $_POST['lines_txt'];
                  

                  ipn.php

                  $sql="INSERT INTO `form`(`totalline`) VALUES ('" .$_POST['custom']. "');";
                  

                  推荐答案

                  我不确定是否可以使用 Paypal 发送和接收多个变量.如果由于 Paypal 的限制而无法实现,您可以使用以下方法之一:

                  I am not sure, if it is even possible with Paypal to send and receive multiple variables. If it is not possible due to Paypal's restrictions, you could use one of the following approaches:

                  • 发送序列化的数据,并在返回时反序列化.
                  • 将数据写入form.php中的数据库(状态为notpaid)并发送id.在 ipn.php 中捕获 id 并设置 status =paid/error/数据库中发生的任何事情.

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

                  上一篇:独立脚本的 Drupal 会话用户 ID 下一篇:使用php一次提交多个项目到paypal购物车

                  相关文章

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

                    <legend id='NKovv'><style id='NKovv'><dir id='NKovv'><q id='NKovv'></q></dir></style></legend>
                    <tfoot id='NKovv'></tfoot>

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