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

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

  2. <tfoot id='uv4hR'></tfoot>

      检测 Paypal 订阅取消

      Detecting Paypal Subscription Cancellation(检测 Paypal 订阅取消)
      1. <tfoot id='fRUbW'></tfoot>

      2. <legend id='fRUbW'><style id='fRUbW'><dir id='fRUbW'><q id='fRUbW'></q></dir></style></legend>

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

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

                  <tbody id='fRUbW'></tbody>
              1. 本文介绍了检测 Paypal 订阅取消的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我编写了一个简单的 paypal 订阅系统,用户可以在其中输入他们的信息,单击按钮,然后开始订阅.我想知道如何知道用户何时取消订阅?我见过 $txn_type subscr_cancel 但我不知道如何使用它,因为 paypal 不会再次调用我的处理程序.

                I have written a simple paypal subscription system, where a user can enter their information, click the button, and start a subscription. Im wondering how I can find out when the user cancels the subscription though? I have seen $txn_type subscr_cancel but I have no idea how to use that, since paypal doesn't call my handler again.

                谢谢!

                推荐答案

                如果是,您是否使用 IPN,然后取消订阅时,paypal 返回 $_POST['txn_type'] = subscr_cancel 以及subscr_date = 订阅日期,subscr_id = 订阅 ID 等现在您可以处理返回的订阅 ID 的取消请求.类似地,订阅结束时您会得到 $_POST['txn_type'] = subscr_eot.一旦您在 paypal 设置中设置了 IPN url,它将始终调用您的 ipn 处理程序.使用 switch case 来处理像这样的不同请求,

                Are you using IPN if yes then, when a subscription is cancelled paypal returns $_POST['txn_type'] = subscr_cancel along with subscr_date = subscription date, subscr_id = subscription ID, etc now you can process cancel request for the returned subscription id. similarly you get $_POST['txn_type'] = subscr_eot when subscription ends. Once you have setup IPN url in the paypal settings it will always call your ipn handler. use switch case to handle different requests like so,

                switch ($_POST['txn_type']) {
                    case 'cart':
                          //for products without subscription
                     break;
                    case 'subscr_payment':
                        //subscription payment recieved
                        break;
                
                    case 'subscr_signup':
                        //subscription bought payment pending
                        break;
                
                    case 'subscr_eot':
                       //subscription end of term
                        break;
                
                    case 'subscr_cancel':
                        //subscription canceled
                        break;
                 }
                

                这篇关于检测 Paypal 订阅取消的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)
                  <tbody id='VwHeB'></tbody>
                1. <small id='VwHeB'></small><noframes id='VwHeB'>

                  <tfoot id='VwHeB'></tfoot>
                  • <bdo id='VwHeB'></bdo><ul id='VwHeB'></ul>

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