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

      <bdo id='n0Yu9'></bdo><ul id='n0Yu9'></ul>

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

      <tfoot id='n0Yu9'></tfoot>
    3. PayPal Express Checkout API - 有没有办法使用 CreateRecurringPayment

      PayPal Express Checkout API - Is there a way to process both recurring payment in one session using method CreateRecurringPaymentsProfile?(PayPal Express Checkout API - 有没有办法使用 CreateRecurringPaymentsProfile 方法在一个会话中处理定期
          <legend id='0UpY8'><style id='0UpY8'><dir id='0UpY8'><q id='0UpY8'></q></dir></style></legend>
            <tbody id='0UpY8'></tbody>
          • <bdo id='0UpY8'></bdo><ul id='0UpY8'></ul>

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

              • <small id='0UpY8'></small><noframes id='0UpY8'>

                <tfoot id='0UpY8'></tfoot>

                本文介绍了PayPal Express Checkout API - 有没有办法使用 CreateRecurringPaymentsProfile 方法在一个会话中处理定期付款?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我尝试使用 CreateRecurringPaymentsProfile 方法在一个会话中处理两次定期付款.这是我的行动的年表:

                I tried to process two recurring payment in one session using method CreateRecurringPaymentsProfile. Here is the chronology of my actions:

                首先我设置方法 SetExpressCheckout:

                First I set method SetExpressCheckout:

                'METHOD'                        => 'SetExpressCheckout',
                'RETURNURL'                     => $this->paypalreturnurl,
                'CANCELURL'                     => $this->paypalcancelurl,
                'PAYMENTREQUEST_0_CURRENCYCODE' => $this->paypalcurrencycode,
                'PAYMENTREQUEST_0_PAYMENTACTION'=> 'SALE',
                'L_BILLINGTYPE0'                => 'RecurringPayments',
                'L_BILLINGAGREEMENTDESCRIPTION0'=> 'Tier 1 + Management Services',
                'PAYMENTREQUEST_0_DESC'         => 'Tier 1 + Management Services',
                'L_PAYMENTREQUEST_0_NAME0'      => 'Tier 1',
                'L_PAYMENTREQUEST_0_NUMBER0'    => '10101',
                'L_PAYMENTREQUEST_0_QTY0'       => '1',
                'L_PAYMENTREQUEST_0_AMT0'       => '0.02',
                'L_PAYMENTREQUEST_0_DESC0'      => 'Description of Tier 1',
                'L_PAYMENTREQUEST_0_NAME1'      => 'Management Services 8 hours - for $0.01',
                'L_PAYMENTREQUEST_0_NUMBER1'    => '212121',
                'L_PAYMENTREQUEST_0_QTY1'       => '1',
                'L_PAYMENTREQUEST_0_AMT1'       => '0.01',
                'L_PAYMENTREQUEST_0_DESC1'      => 'Description of Management Services 8 hours - for $0.01',
                'PAYMENTREQUEST_0_ITEMAMT'      => '0.03',
                'PAYMENTREQUEST_0_AMT'          => '0.03'
                

                从 SetExpressCheckout 方法成功响应后,使用 CreateRecurringPaymentsProfile 方法成功执行第一次定期付款.这是参数:

                After successful response from SetExpressCheckout method, the first recurring payment is executed successfully using CreateRecurringPaymentsProfile method. Here is the parameters:

                'L_PAYMENTREQUEST_0_NAME0'      => 'Management Services 8 hours - for $0.01',
                'PROFILEREFERENCE'              => 'RPInvoice1234',
                'PROFILESTARTDATE'              => date('Y-m-d') . 'T' . date('H:i:s').'Z',
                'SUBSCRIBERNAME'                => 'Mr Sub Scriber',
                'TOKEN'                         => urlencode($token),
                'DESC'                          => 'Tier 1 + Management Services',
                'AMT'                           => '0.01',
                'BILLINGPERIOD'                 => 'Month',
                'BILLINGFREQUENCY'              => '1',
                'TOTALBILLINGCYCLES'            => '12',
                'REGULARTOTALBILLINGCYCLES'     => '1',
                'VERSION'                       => '74.0',
                'MAXFAILEDPAYMENTS'             => '1',
                'L_PAYMENTREQUEST_0_AMT0'       => '0.01',
                'INITAMT'                       => '0.01',
                'L_PAYMENTREQUEST_0_NUMBER0'    => '212121',
                'L_PAYMENTREQUEST_0_QTY0'       => '1',
                'L_BILLINGTYPE0'                => 'RecurringPayments',
                'L_BILLINGAGREEMENTDESCRIPTION0'=> 'Tier 1 + Management Services',
                'L_PAYMENTREQUEST_0_ITEMCATEGORY0'=> 'Digital'
                

                在 CreateRecurringPaymentsProfile 方法成功响应后,我尝试使用类似的参数创建另一个定期付款(不幸的是没有成功),然后再次 CreateRecurringPaymentsProfile 方法:

                After the successful response from CreateRecurringPaymentsProfile method, I tried to create another recurring payment ( unfortunately without success ) using similar parameters and again CreateRecurringPaymentsProfile method:

                'L_PAYMENTREQUEST_0_NAME0'      => 'Hosted Saas Tier 1',
                'PROFILEREFERENCE'              => 'RPInvoice123',
                'PROFILESTARTDATE'              => date('Y-m-d') . 'T' . date('H:i:s').'Z',
                'SUBSCRIBERNAME'                => 'Mr Sub Scriber 2',
                'TOKEN'                         => urlencode($token),
                'DESC'                          => 'Hosted Saas Tier 1 + Community Management Services',
                'AMT'                           => '0.02',
                'BILLINGPERIOD'                 => 'Month',
                'BILLINGFREQUENCY'              => '1',
                'TOTALBILLINGCYCLES'            => '12',
                'REGULARTOTALBILLINGCYCLES'     => '1',
                'VERSION'                       => '74.0',
                'MAXFAILEDPAYMENTS'             => '1',
                'L_PAYMENTREQUEST_0_AMT0'       => '0.02',
                'INITAMT'                       => '0.02',
                'L_PAYMENTREQUEST_0_NUMBER0'    => '10101',
                'L_PAYMENTREQUEST_0_QTY0'       => '1',
                'L_BILLINGTYPE0'                => 'RecurringPayments',
                'L_BILLINGAGREEMENTDESCRIPTION0'=> 'Hosted Saas Tier 1 + Community Management Services',
                'L_PAYMENTREQUEST_0_ITEMCATEGORY0'=> 'Digital'
                

                不幸的是,无论我做了什么更改,此方法总是返回相同的错误:

                Unfortunately this method always return the same error, regardless the changes I made:

                配置文件描述无效,L_ERRORCODE0 = 11581.

                Profile description is invalid, L_ERRORCODE0 = 11581.

                当我更改定期付款订单时,标题为管理服务 8 小时 - 0.01 美元"的第一次定期付款出现相同的错误!?问题是每次第二次重复都会返回同样的错误——配置文件描述无效,L_ERRORCODE0 = 11581."

                When I change the recurring payments order the same error appears for the first recurring payment with title "Management Services 8 hours - for $0.01" !? The problem is that every time second recurring returns the same error - "Profile description is invalid, L_ERRORCODE0 = 11581."

                我怎样才能让它工作?

                推荐答案

                最后,在 PayPal 支持的帮助下,我找到了在单个 Express Checkout 会话中创建多个重复配置文件的解决方案:

                Finally, with a little help from the PayPal support, I find a solution to create multiple recurring profiles in a single Express Checkout session:

                • 首先,您必须在 SetExpressCheckout 方法中传递两个配置文件(首先方法在我的例子中),例如:

                L_BILLINGTYPE0=定期付款

                L_BILLINGTYPE0=RecurringPayments

                L_BILLINGAGREEMENTDESCRIPTION0=第 1 层

                L_BILLINGAGREEMENTDESCRIPTION0=Tier 1

                和第二个产品

                L_BILLINGTYPE1=定期付款

                L_BILLINGTYPE1=RecurringPayments

                L_BILLINGAGREEMENTDESCRIPTION1=管理服务

                L_BILLINGAGREEMENTDESCRIPTION1=Management Services

                • 然后,在买家在 PayPal 中批准两者后,您需要调用两次 CreateRecurringPaymentsProfile:
                • 一个发送DESC"值为Tier 1"另一个发送DESC"具有管理服务"价值

                  还有检查这个

                  这篇关于PayPal Express Checkout API - 有没有办法使用 CreateRecurringPaymentsProfile 方法在一个会话中处理定期付款?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                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 的问题)

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

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

                      <bdo id='wLter'></bdo><ul id='wLter'></ul>
                        <legend id='wLter'><style id='wLter'><dir id='wLter'><q id='wLter'></q></dir></style></legend>

                        1. <tfoot id='wLter'></tfoot>