Sorry about all the posts
I'm another step forward... in experimenting I set the PayPal "Pending Status" to "cancelled" instead of just "created". This meant that the statuses for a fresh order and a pending order were now different.
After completing the payment (PayPal said the payment was successful again) the order status has now changed to "Cancelled" - in other words, PayPal thinks the payment has been successful but the message is getting garbled on its way back to HikeShop because it thinks the order is still pending.
Previously in my order histories I was only seeing the fact that each order had been simply created. In this recent test order I now see this... it looks like PayPal is actually returning a "payment status = pending"
Array ( [option] => com_hikashop [ctrl] => checkout [task] => notify [notif_payment] => paypal [tmpl] => component [lang] => en [Itemid] => 126 [mc_gross] => 0.01 [invoice] => 22 [protection_eligibility] => Eligible [address_status] => confirmed [item_number1] => The Signist's Book of Modern Alphabets [payer_id] => KX95SCHXRPUKY [tax] => 0.00 [address_street] => XXXX [payment_date] => 09:31:08 Nov 07, 2013 PST [payment_status] => Pending [charset] => windows-1252 [address_zip] => HD9 1UA [mc_shipping] => 0.00 [mc_handling] => 0.00 [first_name] => XXXX [address_country_code] => GB [address_name] => XXXX [notify_version] => 3.7 [custom] => [payer_status] => unverified [business] => XXXXXX [address_country] => United Kingdom [num_cart_items] => 1 [mc_handling1] => 0.00 [address_city] => XXXX [verify_sign] => XXXX [payer_email] => XXXX [mc_shipping1] => 0.00 [tax1] => 0.00 [txn_id] => 02G96709Y9585660T [payment_type] => instant [last_name] => XXXX [address_state] => [item_name1] => The Signist's Book of Modern Alphabets [receiver_email] => XXXX [quantity1] => 1 [receiver_id] => UQZCL4ST89MAA [pending_reason] => multi_currency [txn_type] => cart [mc_gross_1] => 0.01 [mc_currency] => USD [residence_country] => GB [receipt_id] => 3958-0847-2121-9590 [transaction_subject] => [payment_gross] => 0.01 [ipn_track_id] => f1aa72b26f14f [hikashop_front_end_main] => 1 [view] => checkout ) stdClass Object ( [order_id] => 22 [order_billing_address_id] => 2 [order_shipping_address_id] => 2 [order_user_id] => 3 [order_status] => created [order_type] => sale [order_number] => Z22 [order_created] => 1383845417 [order_modified] => 1383845417 [order_invoice_id] => 0 [order_invoice_number] => [order_invoice_created] => 0 [order_currency_id] => 2 [order_full_price] => 0.01000 [order_tax_info] => Array ( ) [order_discount_code] => [order_discount_price] => 0.00000 [order_discount_tax] => 0.00000 [order_payment_id] => 1 [order_payment_method] => paypal [order_payment_price] => 0.00000 [order_payment_params] => [order_shipping_id] => [order_shipping_method] => [order_shipping_price] => 0.00000 [order_shipping_tax] => 0.00000 [order_shipping_params] => [order_partner_id] => 0 [order_partner_price] => 0.00000 [order_partner_paid] => 0 [order_partner_currency_id] => 0 [order_ip] => 188.223.237.87 ) Array ( [scheme] => https [host] =>
www.paypal.com
[path] => /cgi-bin/webscr [query] => [port] => 443 [host_socket] => ssl://www.paypal.com ) POST /cgi-bin/webscr HTTP/1.1 User-Agent: PHP/5.3.27 Referer: http://vi_nt_ag_e-_pi_ct_ur_es.com/index.php?option=com_hikashop&ctrl=checkout&task=notify¬if_payment=paypal&tmpl=component&lang=en&Itemid=126 Server: Apache Host:
www.paypal.com
Content-Type: application/x-www-form-urlencoded Content-Length: 1261 Accept: */* Connection: close option=com_hikashop&ctrl=checkout&task=notify¬if_payment=paypal&tmpl=component&lang=en&Itemid=126&mc_gross=0.01&invoice=22&protection_eligibility=Eligible&address_status=confirmed&item_number1=The+Signist%27s+Book+of+Modern+Alphabets&payer_id=KX95SCHXRPUKY&tax=0.00&address_street=XXXX&payment_date=09%3A31%3A08+Nov+07%2C+2013+PST&payment_status=Pending&charset=windows-1252&address_zip=XXXX&mc_shipping=0.00&mc_handling=0.00&first_name=XXXX&address_country_code=GB&address_name=XXXX¬ify_version=3.7&custom=&payer_status=unverified&business=XXXX&address_country=United+Kingdom&num_cart_items=1&mc_handling1=0.00&address_city=XXXX&verify_sign=AYDz3VVi23rWDCvyhP.w27AHO-M8AN3uHjR1aOs3-h5LjwQR.hyA7em1&payer_email=XXXX&mc_shipping1=0.00&tax1=0.00&txn_id=02G96709Y9585660T&payment_type=instant&last_name=XXXX&address_state=&item_name1=The+Signist%27s+Book+of+Modern+Alphabets&receiver_email=XXXXFc&quantity1=1&receiver_id=UQZCL4ST89MAA&pending_reason=multi_currency&txn_type=cart&mc_gross_1=0.01&mc_currency=USD&residence_country=GB&receipt_id=3958-0847-2121-9590&transaction_subject=&payment_gross=0.01&ipn_track_id=f1aa72b26f14f&hikashop_front_end_main=1&view=checkout&cmd=_notify-validate HTTP/1.1 200 OK Server: Apache X-Frame-Options: SAMEORIGIN Strict-Transport-Security: max-age=14400 Strict-Transport-Security: max-age=14400 Content-Type: text/html; charset=UTF-8 DC: slc-b-origin-www-2.paypal.com Date: Thu, 07 Nov 2013 17:31:12 GMT Content-Length: 8 Connection: close Set-Cookie: cwrClyrK4LoCV1fydGbAxiNL6iG=w3snO82bmxdHNInGGm4ujBX6nU_rNCFgDPTLIcXsvsjkSP49hW9gepBs6uAu2tdMRsEiZCqfQwlVmon4PbmV6Eoy8iKV2JBeQtwSLtEZrdItaDYGOWmVzi6WvRps6LWoP5dQbbEsERnPcKGOPQe5lBOme2eIuqzq_CGmuoewGQd5T_pCbeEucVxiJcOqHe3KWlg9Xua5CEIU9bb3K9bd4v0kANBRR8hGpu237uRSeNqWsX8OVDnFYsSseSmiAa3MCzl25lAwK7X2muS7SbdN_jroEav9bHizOeAVHJl1I2AVGiKGwDlUZGbJ53KmrTs6IcQG4_RSR2gPTYN3k4Q35ofCqkpxVGBXw0qqO19vZ-Kls0ZkErunzS-9-9otfNDCjUzFVaVDCaFFOoNzKBToOUYrJjp_80JIdYAAD4gX7j1_YgfA2E_dhxMQ8tO; domain=.paypal.com; path=/; Secure; HttpOnly Set-Cookie: cookie_check=yes; expires=Sun, 05-Nov-2023 17:31:12 GMT; domain=.paypal.com; path=/; Secure; HttpOnly Set-Cookie: navcmd=_notify-validate; domain=.paypal.com; path=/; Secure; HttpOnly Set-Cookie: navlns=0.0; expires=Sat, 07-Nov-2015 17:31:12 GMT; domain=.paypal.com; path=/; Secure; HttpOnly Set-Cookie: Apache=10.74.8.134.1383845471674441; path=/; expires=Sat, 31-Oct-43 17:31:11 GMT Set-Cookie: X-PP-SILOVER=name%3DLIVE6.WEB.1%26silo_version%3D880%26app%3Dslingshot%26TIME%3D1607367506; domain=.paypal.com; path=/; Secure; HttpOnly Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT Set-Cookie: Apache=10.74.8.63.1383845471668542; path=/; expires=Sat, 31-Oct-43 17:31:11 GMT Set-Cookie: DC=slc-b-origin-www-2.paypal.com; secure Set-Cookie: aksession=1383845772~id=cookieZWTqYeagF4NEcWaaiiWvAvqbaoq9z3Vib6azHcOe/BrvvKbzjD++xONgOf1CeBf+OIm6yDcJqWBLNPWvRAd3LcEituX+EQIwjxAwDq7Sb2w0DdTt776ZQDsGfXmmaN8X3dySrHR38as=; expires=Thu, 07-Nov-2013 17:36:12 GMT; path=/; domain=.paypal.com VERIFIED PayPal transaction id: 02G96709Y9585660T