cancel
Showing results for 
Search instead for 
Did you mean: 

ADVISORY - CONFIRMED bug in Magento Paypal API Code

Highlighted

ADVISORY - CONFIRMED bug in Magento Paypal API Code

Team.

 

I have been struggling with a paypal problem for a while. Basically, recurring subscription based purchases are broken. Previous post is here. Re: What timezone is used for paypal recurring transactions? How can I change it?

 

I spoke to Paypal - and was pleasantly surprised to get through to a merchant technical support department. We discussed the issue, and simulated a transaction, and found a Magento -> Paypal API bug that was causing the problem. Paypal provided an email reply, that i have quoted below for reference.

 

Now I could try to hack magento to fix this, but that will not fix the problem for other users, so I thought I would highlight this issue here in the hope that the paypal development team would look into this.

 


 

Thank you for contacting PayPal Merchant Technical Support. It'be been a pleasure to talk to you over the phone.
 
As we have discussed over the phone, it looks like Magento is not passing the Start date with the correct time format in the API request sent to us. Below is the API request received from your end :

TimestampApr 22, 2016 07:10:38 (1461280238)
CreateRecurringPaymentsProfileRequest
token"XX-XXXXXXXXXXXXXXXXX"
profilestartdate"2016-04-21 23:10:36"
profilereference"YY-YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY"
desc"BlueOnyx Professional Edition (BOPE)"
currencycode"AUD"
billingperiod"Month"
billingfrequency1
amt"40.00"
maxfailedpayments1
method"CreateRecurringPaymentsProfile"
version"72.0"
 
As you can see, the profilestartdate is not sent with the correct time format as " 2016-10-21T04:12:25Z" . In this case, kindly refer to Magento and check with them on how to ensure the correct time format is passed in the API request.

I hope I was able to address your inquiry to your satisfaction, should you have further questions relating to this inquiry or any other issue, please do not hesitate to let me know.
Thank you.

Sincerely,
Naginitra
Merchant Technical Support
PayPal, Professional Services
Tags (1)