dtk31564 2014-09-25 11:06
浏览 81
已采纳

定期付款IPN请求rp_invoice_id字段

Here is example of PayPal Express Checkout Recurring Payment IPN request:

 [mc_gross] => 6.56
    [period_type] =>  Regular
    [outstanding_balance] => 0.00
    [next_payment_date] => 03:00:00 Jun 21, 2012 PDT
    [protection_eligibility] => Ineligible
    [payment_cycle] => Weekly
    [tax] => 0.00
    [payer_id] => K48P3Fxxxx
    [payment_date] => 16:52:28 Jun 14, 2012 PDT
    [payment_status] => Completed
    [product_name] => Virtual Subscription $6.56 / week for 3 weeks
    [charset] => windows-1252
    [rp_invoice_id] => 208
    [recurring_payment_id] => I-4DHKxxxx
    [first_name] => Test
    [mc_fee] => 0.38
    [notify_version] => 3.4
    [amount_per_cycle] => 6.56
    [payer_status] => verified
    [currency_code] => USD
    [business] => xxxx@gmail.com
    [verify_sign] => AlAlnsACWRTf4OV6vRMZG4sCyEdYACBnr7ishagKt60BxtlJgPjaRIAh
    [payer_email] => xxxx@gmail.com
    [initial_payment_amount] => 0.00
    [profile_status] => Active
    [amount] => 6.56
    [txn_id] => 3PE0612xxxx
    [payment_type] => instant
    [last_name] => User
    [receiver_email] => xxxx@gmail.com
    [payment_fee] => 0.38
    [receiver_id] => TYDEKWLxxxx
    [txn_type] => recurring_payment
    [mc_currency] => USD
    [residence_country] => US
    [test_ipn] => 1
    [transaction_subject] => Virtual Subscription $6.56 / week for 3 weeks
    [payment_gross] => 6.56
    [shipping] => 0.00
    [product_type] => 1
    [time_created] => 23:48:22 Jun 13, 2012 PDT
    [ipn_track_id] => b2c853ddxxxx

As you can see, there is field called rp_invoice_id which is The merchant’s own unique reference or invoice number, which can be used to uniquely identify a profile.

When creating API call CreateRecurringPaymentsProfile, how to pass this value, which field should I set in the API call?

Thank you

  • 写回答

2条回答 默认 最新

  • douduan2272 2014-09-25 12:25
    关注

    You need to use the PROFILEREFERENCE parameter to pass in a value that will be returned via IPN in the rp_invoice_id parameter.

    PROFILEREFERENCE

    (Optional) The merchant's own unique reference or invoice number.

    Character length and limitations: 127 single-byte alphanumeric characters

    https://developer.paypal.com/webapps/developer/docs/classic/api/merchant/CreateRecurringPaymentsProfile_API_Operation_NVP/

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 求lingo代码和思路
  • ¥15 公交车和无人机协同运输
  • ¥15 stm32代码移植没反应
  • ¥15 matlab基于pde算法图像修复,为什么只能对示例图像有效
  • ¥100 连续两帧图像高速减法
  • ¥15 如何绘制动力学系统的相图
  • ¥15 对接wps接口实现获取元数据
  • ¥20 给自己本科IT专业毕业的妹m找个实习工作
  • ¥15 用友U8:向一个无法连接的网络尝试了一个套接字操作,如何解决?
  • ¥30 我的代码按理说完成了模型的搭建、训练、验证测试等工作(标签-网络|关键词-变化检测)