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
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
What setting have you set in extensions - payment - paypal - edit
For complete order make the order status as complete.
For complete order make the order status as complete.
Opencart Extensions | Professional opencart support | Support Ticket | support@cartbinder.com
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.
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
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
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
Here is my paypal debug log
As can see "payment_status=Completed" but in admin site showing pending
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>
Problem solved (for me) .... here's paypal replied
Right before this
Add this
So i look into this suggestionDear 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
Edit /catalog/controller/payment/pp_standard.php somewhere near line 257Please 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).
Right before this
Code: Select all
curl_setopt($curl, CURLOPT_POST, true);
Code: Select all
$val = 'putfirst5charactercompanyname';
curl_setopt($curl, CURLOPT_USERAGENT, $val);
Who is online
Users browsing this forum: No registered users and 44 guests