Paypal payments failing. URGENT PLEASE

  • Posts: 112
  • Thank you received: 1
8 years 17 hours ago #256007

-- url of the page with the problem -- : www.thingsbritish.co.uk
-- HikaShop version -- : 3.7.2
-- Joomla version -- : 3.6.4

Hi,

When a shopper pays with their Paypal account it fails at the end of the process.

"Your payment cannot be completed. Please return to the participating website and try again".

I enabled debug on the Paypal payment option, but a log file wasn't generated. No file exists.

How can I trace why nobody can pay for orders on our website using Paypal?

URGENT PLEASE AS ORDERED CANNOT BE PAID FOR

Thx, Darrell

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 years 17 hours ago #256011

Hi,

I've just done a test on your website and it works just fine:
take.ms/9Zr6j
You should have gotten the order on your end too.
So it might be a problem linked to your PayPal account or to your browser.

Please Log in or Create an account to join the conversation.

  • Posts: 112
  • Thank you received: 1
8 years 17 hours ago #256012

It fails when you try to pay. Have you clicked "Pay"?

..and no, there was no order confirmation email as you hadn't completed the transaction. Click "pay". It will fail, and you and I will receive an order confirmation that is not paid for.

Last edit: 8 years 17 hours ago by darrelluk.

Please Log in or Create an account to join the conversation.

  • Posts: 112
  • Thank you received: 1
8 years 16 hours ago #256013

I want to check the Paypal payment settings. Where on the Paypal website do I find the information to complete the settings in the image?



Thx

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 years 15 hours ago #256016

Hi,

HikaShop only controls the redirection to PayPal and then the order confirmation after the payment is made and the customer is redirected to the website.
In between, it is only handled by PayPal. So when you click on "pay" on that screenshot, HikaShop doesn't have any control and whatever you do in the settings of HikaShop, it won't change anything.
That's why I'm saying that it's probably something linked to your PayPal account or browser.

I see that you're using PayPal Adaptive. This requires that your PayPal account is compatible with PayPal Adaptive. Is that the case ?

In any case, I recommend you to contact the PayPal merchant support as we can't help with that error since it's not something linked to HikaShop and we don't have any useful information we can give you about it.

Please Log in or Create an account to join the conversation.

  • Posts: 112
  • Thank you received: 1
7 years 11 months ago #257387

Hi,

URGENT PLEASE

After weeks of support with Paypal, they are stating the following is the reason that we can't take payments (or orders) on our marketplace. Please can you check if this is the cause of the problem.

Dear Darrell,

The test I did with your Adaptive payments link item www.thingsbritish.co.uk/component/hikash...ct/19021-10082-043-8 returned the error that engineers investigated.

Double checking the logs appears the real error, your integration is passing a field for the IP Address that is too long and cause errors with the payment.

This is the field: <ipAddress>185.97.82.XXX, 185.97.82.XXX</ipAddress> (edit: I have hidden the actual IP address).,
There are 2 values passed as you can see.

Check your integration where the IP address is passed and pass only 1, it will fix the error.

Let me know for anything.

Kind Regards,
Andrea | PayPal Merchant Technical Support

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 11 months ago #257396

Hi,

The HikaMarket Paypal Adaptive plugin do send the client IP to the Paypal Adaptive.
That IP information is provided directly by your server and the function " hikashop_getIP " of the HikaShop core allow the plugin to get that IP address.

So, I recommend you to put a little patch in order to fix the wrong content provided by your web server.
You have to modify the HIkaShop help ( administrator/components/com_hikashop/helpers/helper.php ) and put that new content for the hikashop_getIP function

function hikashop_getIP(){
	$ip = '';
	if( !empty($_SERVER['HTTP_X_FORWARDED_FOR']) && strlen($_SERVER['HTTP_X_FORWARDED_FOR']) > 6){
		$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
	}elseif( !empty($_SERVER['HTTP_CLIENT_IP']) && strlen($_SERVER['HTTP_CLIENT_IP']) > 6){
		$ip = $_SERVER['HTTP_CLIENT_IP'];
	}elseif(!empty($_SERVER['REMOTE_ADDR']) && strlen($_SERVER['REMOTE_ADDR']) > 6){
		$ip = $_SERVER['REMOTE_ADDR'];
	}
	if(strpos($ip,',') !== false) {
		$ips = explode(',', trim($ip,','));
		$ip = trim($ips[0]);
	}
	return strip_tags($ip);
}

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 112
  • Thank you received: 1
7 years 11 months ago #257418

Hi Jerome,

I can confirm that making this code change in your product has fixed this issue. Thank you for the code.

It is now possible to use adaptive payments with Paypal and Hikamarket.

Do you need to make this change permanent, or at least allow for it, for any ISP that report the IP this way, so that nobody else has to go through this?

Thx, Darrell

Last edit: 7 years 11 months ago by darrelluk.

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 11 months ago #257420

Hi,

Even if you're the only one to have some issue of multiple IP address returned by the function ; we will add the patch I gave you in the HikaShop core.
So we will be sure that this problem won't happen again in the future.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Time to create page: 0.065 seconds
Powered by Kunena Forum