Recurring Payment Testing (paypal IPN)

I'm trying to set up a recurring payment service using paypal, my problem is that I can’t find a way to test it, I’ve already set it up within 1 day and 1 as a frequency, but still the account seems to take a month to make the next payment.

Paypal says that if you set it to Day, it will take minutes instead, but not even the day following the payment date is set to one month, did anyone encounter the same problem, or better yet, a solution to verify it?

thanks

Here is the NVP I post:

&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 paypal returns:

 ( [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 seems beautiful, except that paypal wants to pay the next payment per month from today.

+6
source share
3 answers

You're sending

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

and the next day of payment (here is the first payment) on that day.

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

This seems to be right. I think you should change the start date of your profile.

+3
source

Paypal has a built-in IPN tester to help debug your IPN listener and make sure it records everything correctly. It will send the same request variables to the endpoint as a real IPN notification message so that you can simulate what happens in a real billing situation.

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

If you have problems with the frequency of recurring payments, you need to configure this in the variables for your first subscription message in paypal. Can you share the fields that you use in your subscription request? (of course, editing sensitive data)

+1
source

CreateRecurringPaymentsProfile does not accept the NOTIFYURL parameter; rather, you need to configure the IPN URL in your PayPal account profile. This is the IPN URL that will be used for recurring payment IPN messages.

Visit: https://www.paypal-community.com/t5/Merchant-services-Archive/Recurring-payments-IPN/td-p/350104

0
source

Source: https://habr.com/ru/post/914573/


All Articles