简体   繁体   English

测试定期付款(paypal IPN)

[英]Testing recurring payments (paypal IPN)

I am trying to set up a recurring payment service using paypal, my problem is I cant seem to find a way to test it, I already set up at Daily period and 1 as frequency but still the account seems to take a month to make the next payment, 我正在尝试使用paypal设置定期付款服务,我的问题是我似乎无法找到测试它的方法,我已经设置在每日期间和1作为频率但仍然帐户似乎需要一个月才能使下次付款,

Paypal says if you set it to Day it would take minutes instead, but its not even taking a day next payment date is set to one month, has anyone encountered the same issue or better yet, a solution to test it? Paypal说,如果你把它设置为Day,它将需要几分钟,但它甚至没有花一天的下一个付款日期设置为一个月,有没有人遇到相同的问题或更好的,一个测试它的解决方案?

Thanks 谢谢

Here's the NVP I send: 这是我发送的NVP:

&AMT=19.95
&CURRENCYCODE=USD
&PROFILESTARTDATE=2012-05-30+T9%3A0%3A0
&TOKEN=XX-xxXxxxxxXXxxxxxxX
&BILLINGPERIOD=Day
&BILLINGFREQUENCY=1
&BILLINGTYPE=RecurringPayments
&DESC=\Subscription
&AUTOBILLOUTAMT=AddToNextBilling
&EMAIL=asfjasd@asdfasd.com
&FIRSTNAME=juanito
&LASTNAME=escarcha
&STREET=manzanares
&CITY=gdl
&STATE=jal
&COUNTRYCODE=MX
&ZIP=12345

Here's what paypal returns: 这是paypal返回的内容:

(
    [payment_cycle] => Daily
    [txn_type] => recurring_payment_profile_created
    [last_name] => perez
    [next_payment_date] => 03:00:00 May 30, 2012 PDT
    [residence_country] => MX
    [initial_payment_amount] => 0.00
    [currency_code] => USD
    [time_created] => 12:24:08 Apr 30, 2012 PDT
    [verify_sign] => XXXXXXXXXxxxxxxx
    [period_type] =>  Regular
    [payer_status] => unverified
    [test_ipn] => 1
    [tax] => 0.00
    [payer_email] => juan@paypal.com
    [first_name] => juan
    [receiver_email] => test@testcompany.com
    [payer_id] => XXXXXXxxxxxXXX
    [product_type] => 1
    [shipping] => 0.00
    [amount_per_cycle] => 19.95
    [profile_status] => Active
    [charset] => windows-1252
    [notify_version] => 3.4
    [amount] => 19.95
    [outstanding_balance] => 0.00
    [recurring_payment_id] => I-8JXMN6XXXXX
    [product_name] => Subscription
    [ipn_track_id] => 57fbxxXXXXXxx
)

Everything seem to be fine except paypal wants to charge the next payment a month from today 一切似乎都很好,除了paypal希望从今天起一个月收取下一笔款项

You send 你发送

PROFILESTARTDATE=2012-05-30+T9:0:0

and next payment date (here it is the first payment) is on this day. 和下一个付款日期(这是第一次付款)是在这一天。

[next_payment_date] => 03:00:00 May 30, 2012 PDT

It seems, it is correct. 看来,这是正确的。 You should change your profile start date I think. 您应该更改您的个人资料开始日期。

Paypal has a built in IPN tester tool to help debug your IPN listener and make sure it is logging everything correctly. Paypal有一个内置的IPN测试工具,可以帮助调试你的IPN监听器,并确保它正确记录所有内容。 It will send the same query variables to your endpoint as a real IPN notification post so you can simulate what happens in a real payment situation. 它会将相同的查询变量作为真实的IPN通知帖子发送到您的终端,这样您就可以模拟真实付款情况下发生的情况。

https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_admin_IPNTesting#id089BD0L50PF https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_admin_IPNTesting#id089BD0L50PF

If you are having trouble with the frequency of the the recurring payments, this needs to be configured in the variables for your first subscribing post to paypal. 如果您在定期付款的频率上遇到问题,则需要在您的第一个订阅帖子到paypal的变量中进行配置。 Can you share fields you are using in your subscription request? 您可以在订阅请求中共享您正在使用的字段吗? (redacting the sensitive data, of course) (当然,编辑敏感数据)

CreateRecurringPaymentsProfile doesn't accept the NOTIFYURL parameter; CreateRecurringPaymentsProfile不接受NOTIFYURL参数; rather, you need to set up an IPN URL within the Profile of your PayPal account. 相反,您需要在PayPal帐户的配置文件中设置IPN URL。 This is the IPN URL that will be used for the recurring payment IPN message(s). 这是将用于定期付款IPN消息的IPN URL。

Please visit: https://www.paypal-community.com/t5/Merchant-services-Archive/Recurring-payments-IPN/td-p/350104 请访问: https//www.paypal-community.com/t5/Merchant-services-Archive/Recurring-payments-IPN/td-p/350104

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM