Post by jmj011 » Sat Sep 13, 2014 9:04 pm

I think that I am pretty adept using Open Cart but I can't fgigure this one out.
Any help is appreciated.

I am using Ver 1.5.6.4
What should the Paypal Standard settings be in order for an order to be marked complete after payment?
Seems that no matter what I do orders are always received as "Pending".
I want to intergrate my cart with a fulfillment service and also sell downloads. The order status must be marked "Complete" in order for this to work.

If I manually go to orders and change the history to "Complete" all is fine.

Thanks

Newbie

Posts

Joined
Sat Mar 16, 2013 7:23 pm

Post by imdevlper18 » Sat Sep 13, 2014 9:16 pm

What setting have you set in extensions - payment - paypal - edit

For complete order make the order status as complete.

Opencart Extensions | Professional opencart support | Support Ticket | support@cartbinder.com


User avatar
Active Member

Posts

Joined
Sun May 11, 2014 2:04 pm

Post by labeshops » Sat Sep 13, 2014 9:44 pm

Paypal's IPN is spotty in 1.5x though supposedly paypal is more tightly integrated in 2.0. In 1.5x the status sometimes changes to "processed" for example, days after I actually processed and shipped it so I have to go back and manually reset the status back to "shipped".

Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by jmj011 » Sat Sep 13, 2014 9:56 pm

These are my current settings:
Canceled Reversal Status: Cancelled
Completed Status: Complete
Denied Status: Denied
Expired Status: Expired
Failed Status: Failed
Pending Status: Pending
Processed Status: Complete
Refunded Status: Refunded
Reversed Status: Reversed
Voided Status: Voided
Geo Zone: All Zones
Status: Enabled

Newbie

Posts

Joined
Sat Mar 16, 2013 7:23 pm

Post by imdevlper18 » Sun Sep 14, 2014 2:44 pm

jmj011 wrote:These are my current settings:
Canceled Reversal Status: Cancelled
Completed Status: Complete
Denied Status: Denied
Expired Status: Expired
Failed Status: Failed
Pending Status: Pending
Processed Status: Complete
Refunded Status: Refunded
Reversed Status: Reversed
Voided Status: Voided
Geo Zone: All Zones
Status: Enabled

In that case, paypal is sending back pending status back to your store and hence it showing you pending.
May be paypal requires further processing so it must be sending you pending status.
You can add a code at place of return and see what status is returned from paypal.
So you will know it has nothing to do with your code or store.

Opencart Extensions | Professional opencart support | Support Ticket | support@cartbinder.com


User avatar
Active Member

Posts

Joined
Sun May 11, 2014 2:04 pm

Post by jmj011 » Sun Sep 14, 2014 5:55 pm

I will try that.
Thanks

Newbie

Posts

Joined
Sat Mar 16, 2013 7:23 pm

Post by amanhayer » Mon Sep 15, 2014 3:30 am

oho thats a really a great post

Newbie

Posts

Joined
Mon Sep 15, 2014 3:24 am


Post by mior111 » Fri Sep 19, 2014 12:34 pm

I have same problem .... it happening recently only.
No matter what status I put, it always fall back to pending (as per system status)

Please let share with us if you found any solution

Newbie

Posts

Joined
Fri Sep 19, 2014 12:33 pm

Post by mior111 » Fri Sep 19, 2014 12:36 pm

jmj011 wrote:I will try that.
Thanks
I have same problem ... kindly please share any solution if you found one. Really appreciate it

Newbie

Posts

Joined
Fri Sep 19, 2014 12:33 pm

Post by mior111 » Fri Sep 19, 2014 12:48 pm

Here is my paypal debug log

Code: Select all

2014-09-18 16:06:19 - PP_STANDARD :: IPN REQUEST: cmd=_notify-validate&mc_gross=659.00&invoice=1842%2B-%2BWinnie%2B%2BChong&protection_eligibility=Ineligible&address_status=unconfirmed&item_number1=70_702_7070_0045&payer_id=ZT8DHSGYE8LSS&tax=0.00&address_street=29-3%2CJalan+Puteri+2%2F3%2CBandar+Puteri&payment_date=09%3A06%3A00+Sep+18%2C+2014+PDT&payment_status=Completed&charset=windows-1252&address_zip=47100&mc_shipping=0.00&mc_handling=0.00&first_name=Winnie&mc_fee=27.70&address_country_code=MY&address_name=Winnie+Chong¬ify_version=3.8&custom=1842&payer_status=unverified&business=onlinepayment%40delimahome.com.my&address_country=Malaysia&num_cart_items=1&mc_handling1=0.00&address_city=Puchong&verify_sign=A65DlSFz2kWRjC7FxH93D1SmnlVNA-xluzTFlDDcmZmtoveROF9lDpBt&payer_email=winnie%40idw.com.my&mc_shipping1=0.00&tax1=0.00&txn_id=11J598798Y564312T&payment_type=instant&last_name=Chong&address_state=Selangor&item_name1=Philips%2BSpeaker%2BBar%2C%2BHTL2160W%2F12&receiver_email=onlinepayment%40delimahome.com.my&payment_fee=&quantity1=1&receiver_id=HMVD232LYFZ42&txn_type=cart&mc_gross_1=659.00&mc_currency=MYR&residence_country=MY&receipt_id=3595-2801-0467-1196&transaction_subject=1842&payment_gross=&ipn_track_id=34a3936bab672
2014-09-18 16:06:19 - PP_STANDARD :: IPN RESPONSE: <HTML><HEAD>
<TITLE>Access Denied</TITLE>
</HEAD><BODY>
<H1>Access Denied</H1>
 
You don't have permission to access "http://www.paypal.com/cgi-bin/webscr" on this server.<P>
Reference #18.afb41160.1411056379.1c2e462c
</BODY>
</HTML>
As can see "payment_status=Completed" but in admin site showing pending

Newbie

Posts

Joined
Fri Sep 19, 2014 12:33 pm

Post by mior111 » Fri Sep 19, 2014 2:28 pm

Problem solved (for me) .... here's paypal replied
Dear Sir
Thanks for contact PayPal merchant technical support team.
First , Sorry for the error, The error is due to you're sending a blank User-Agent with your post request to PayPal URL http://www.paypal.com/cgi-bin/webscr
In the past, sending a blank user-agent header didn't cause any issues but it's not being accepted by PayPal at present. And right now PayPal do aware this IPN issue and Engineer team is working on the fix now. However I would suggest keeping the User-Agent header in your requests to prevent similar issues in future.


Integration Change:
• Add User-Agent HTTP header that is greater than 5 characters, the recommendation is for the value to be representative of the merchant’s business name.

Please add a User-Agent header to your request and make sure that you're passing at least 5 characters with the User-Agent header (ideally your company name).

You can find more information about User-Agent header on: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html

"The User-Agent request-header field contains information about the user agent originating the request. This is for statistical purposes, the tracing of protocol violations, and automated recognition of user agents for the sake of tailoring responses to avoid particular user agent limitations. User agents SHOULD include this field with requests."

Workaround if above is not possible:
• Update merchants’ IP Address(es) being used during IPN verification.
https://ppmts.custhelp.com/app/answers/detail/a_id/92


We do apologize for your lost.
Wish those information can solve your problem, if you still have any technical question; please do not hesitate to contact us again.


Sincerely,

Merchant Technical Support
PayPal, an eBay Company
So i look into this suggestion
Please add a User-Agent header to your request and make sure that you're passing at least 5 characters with the User-Agent header (ideally your company name).
Edit /catalog/controller/payment/pp_standard.php somewhere near line 257

Right before this

Code: Select all

			curl_setopt($curl, CURLOPT_POST, true);
Add this

Code: Select all

			$val = 'putfirst5charactercompanyname';

			        curl_setopt($curl, CURLOPT_USERAGENT, $val);

Newbie

Posts

Joined
Fri Sep 19, 2014 12:33 pm
Who is online

Users browsing this forum: Amazon [Bot] and 35 guests