Jump to content
Sign in to follow this  
Robgratt

PayPal only works once!

Recommended Posts

Hi,

I've brought this up with PayPal and while I'm waiting for them to get back to me, I thought I might see if anyone has any ideas to help me.

I can pay for an item using PayPal, and it works perfectly.  I get all the notifications, emails and the money goes out of my credit card and into PayPal.

Perfect!  However, if I try to do another purchase immediately, the process hangs waiting for the PayPal screen to enter CC details..

It just hangs with the circulating thingy.

I am using the black 'Debit or Credit Card' button.

I've just tried it now and it has worked perfectly again.  It has been around 12 hours since I tried it last.

Tried it again, and the same thing happens.  No PayPal screen to enter credit card details.

I'm flummoxed.

Anyone any ideas why this might be happening?

Share this post


Link to post
Share on other sites

Hi,

I have been trying to resolve this problem for some time now.

I have paid for a support contract but support seems to have given up me.

Is there anyone out there who can give me some help with this please?  I am prepared to pay cash money to get it resolved.  The ad for this extension says: 

Easy-onboarding

Use your PayPal account or create one directly via your CubeCart store. No technical experince is needed.

Well, I have some technical experience, but I cannot get it to work.  I am trying to work with PayPal support but they take days to respond - and usually just with another question!

I have never had this much grief over a web site implementation.

Surely someone can help me...

Share this post


Link to post
Share on other sites

Well, still slogging on with this....

I got a reply from PayPal:

"There is only one scenario where the implementation works in sandbox and not in live. 

The integrated service is not enabled on the LIVE PayPal account. Would you please provide the details of which PayPal service you have integrated and when this issue is coming?

We are still seeing the successful API calls from your account."

So - can anyone tell me which PayPal service has been integrated?

Please?

Share this post


Link to post
Share on other sites

I would suggest documenting the steps with screen shots so they can try to replicate this. I am not having any issues with paypal payments on my store, using the new commerce plugin. 

Share this post


Link to post
Share on other sites

Hi,

Have done as Christopher suggested and am still waiting for PayPal to reply...

However, noticed the following in the error_log file:

"[04-May-2020 17:22:46 Australia/Queensland] PHP Warning:  Invalid argument supplied for foreach() in /home/inkbr013/public_html/modules/plugins/paypal_commerce/paypal.class.php on line 50
[04-May-2020 17:24:09 Australia/Queensland] PHP Warning:  Security Warning: Illegal array key "{"authCode":"C21AAFz26txg2EFTYnIg75E8bz2k9-R6ayPZyIJ3C3MTIDWp01ZzqGoGOAL2dKjOVeOmKNYdnOyw8NSV07L-MVx8PR2ixohDA","sharedId":"ATV0ZcFYb-9ry8vM4fOtPQsM7zNPpaxoR8qj4mO58-hsMSnWOf2zHtid6hKMFlsKFeVx62VR9tbF2aGZ","seller_nonce":"b910d21ca761434359df3f91df48bb2c50651121813c147a92978e0ec1df7a2ffab44859c27b3a05a5a1a6fadead70a6df25b0be99fec5bc8f6d9537695b7c3d"}" was detected and was removed. in /home/inkbr013/public_html/classes/sanitize.class.php on line 114
[04-May-2020 17:24:23 Australia/Queensland] PHP Warning:  Invalid argument supplied for foreach() in /home/inkbr013/public_html/modules/plugins/paypal_commerce/paypal.class.php on line 50
[04-May-2020 17:24:25 Australia/Queensland] PHP Warning:  Invalid argument supplied for foreach() in /home/inkbr013/public_html/modules/plugins/paypal_commerce/paypal.class.php on line 50
[04-May-2020 17:37:52 Australia/Queensland] PHP Warning:  Invalid argument supplied for foreach() in /home/inkbr013/public_html/modules/plugins/paypal_commerce/paypal.class.php on line 50
[05-May-2020 13:16:02 Australia/Queensland] PHP Warning:  Shipping not setup or allow no shipping not enabled in /home/inkbr013/public_html/classes/cubecart.class.php on line 1808
[05-May-2020 13:16:08 Australia/Queensland] PHP Warning:  Shipping not setup or allow no shipping not enabled in /home/inkbr013/public_html/classes/cubecart.class.php on line 1808
[05-May-2020 13:29:22 Australia/Queensland] PHP Warning:  Invalid argument supplied for foreach() in /home/inkbr013/public_html/modules/plugins/paypal_commerce/paypal.class.php on line 50
[05-May-2020 13:29:35 Australia/Queensland] PHP Warning:  Invalid argument supplied for foreach() in /home/inkbr013/public_html/modules/plugins/paypal_commerce/paypal.class.php on line 50
[05-May-2020 13:30:06 Australia/Queensland] PHP Warning:  Shipping not setup or allow no shipping not enabled in /home/inkbr013/public_html/classes/cubecart.class.php on line 1808
[05-May-2020 13:30:11 Australia/Queensland] PHP Warning:  Shipping not setup or allow no shipping not enabled in /home/inkbr013/public_html/classes/cubecart.class.php on line 1808"

Some of this all looks very PayPaly so I was wondering if anyone has come across this before?

BTW - I've enabled the "Allow physical orders even if no shipping options are available" option and the "Shipping not setup or allow no shipping not enabled" errors have gone.

Share this post


Link to post
Share on other sites

The Illegal Array Key looks like it has some PayPal stuff ini it, but it's all improperly encoded.

This:
{"authCode":"C21AAFz26txg2EFTYnIg75E8bz2k9-R6ayPZyIJ3C3MTIDWp01ZzqGoGOAL2dKjOVeOmKNYdnOyw8NSV07L-MVx8PR2ixohDA","sharedId":"ATV0ZcFYb-9ry8vM4fOtPQsM7zNPpaxoR8qj4mO58-hsMSnWOf2zHtid6hKMFlsKFeVx62VR9tbF2aGZ","seller_nonce":"b910d21ca761434359df3f91df48bb2c50651121813c147a92978e0ec1df7a2ffab44859c27b3a05a5a1a6fadead70a6df25b0be99fec5bc8f6d9537695b7c3d"}

Should look like this:
{"authCode":"C21AAFz26txg2EFTYnIg75E8bz2k9-R6ayPZyIJ3C3MTIDWp01ZzqGoGOAL2dKjOVeOmKNYdnOyw8NSV07L-MVx8PR2ixohDA","sharedId":"ATV0ZcFYb-9ry8vM4fOtPQsM7zNPpaxoR8qj4mO58-hsMSnWOf2zHtid6hKMFlsKFeVx62VR9tbF2aGZ","seller_nonce":"b910d21ca761434359df3f91df48bb2c50651121813c147a92978e0ec1df7a2ffab44859c27b3a05a5a1a6fadead70a6df25b0be99fec5bc8f6d9537695b7c3d"}

That is, the quote marks are getting encoded to " strings.

Now, this whole thing is a JSON array, arriving via a POST payload, which shouldn't be the key in any kind of response. (such as key => value) Keys are simple words - nothing complex.

The errors mentioning line 50 seems to be the case that PayPal was invoked with en empty shopping basket.

I wonder if any of this is javascript-powered, and if you updated from a prior version of this module, maybe your browser is using an internally cached copy of the older javascript.

Share this post


Link to post
Share on other sites

Hi, Al,

Thanks for the response.

I enabled the "Allow physical orders even if no shipping options are available" and the error "Shipping not setup or allow no shipping not enabled in etc. etc." errors disappear, but then the "By Price Shipping Module" doesn't work. 

I've disabled the "Allow physical orders even if no shipping options are available" and I've got back my shipping rules...  Maybe something to sort out another day.

However, if I clear my browser cache (I'm using Edge) between each purchase, then it works perfectly!

This is the log now:

[05-May-2020 18:59:36 Australia/Queensland] PHP Warning:  sizeof() [<a href='http://docs.php.net/manual/en/function.sizeof.php'>function.sizeof.php</a>]: Parameter must be an array or an object that implements Countable in /home/inkbr013/public_html/classes/db/mysqli.class.php on line 209
[05-May-2020 19:00:39 Australia/Queensland] PHP Warning:  Invalid argument supplied for foreach() in /home/inkbr013/public_html/modules/plugins/paypal_commerce/paypal.class.php on line 50
[05-May-2020 19:00:45 Australia/Queensland] PHP Warning:  Invalid argument supplied for foreach() in /home/inkbr013/public_html/modules/plugins/paypal_commerce/paypal.class.php on line 50
[05-May-2020 19:02:35 Australia/Queensland] PHP Warning:  sizeof() [<a href='http://docs.php.net/manual/en/function.sizeof.php'>function.sizeof.php</a>]: Parameter must be an array or an object that implements Countable in /home/inkbr013/public_html/classes/db/mysqli.class.php on line 209
[05-May-2020 19:03:32 Australia/Queensland] PHP Warning:  Invalid argument supplied for foreach() in /home/inkbr013/public_html/modules/plugins/paypal_commerce/paypal.class.php on line 50
[05-May-2020 19:03:52 Australia/Queensland] PHP Warning:  Invalid argument supplied for foreach() in /home/inkbr013/public_html/modules/plugins/paypal_commerce/paypal.class.php on line 50

(Disabled the "Allow physical orders even if no shipping options are available" here)

[05-May-2020 19:05:04 Australia/Queensland] PHP Warning:  sizeof() [<a href='http://docs.php.net/manual/en/function.sizeof.php'>function.sizeof.php</a>]: Parameter must be an array or an object that implements Countable in /home/inkbr013/public_html/classes/db/mysqli.class.php on line 209
[05-May-2020 19:05:57 Australia/Queensland] PHP Warning:  Invalid argument supplied for foreach() in /home/inkbr013/public_html/modules/plugins/paypal_commerce/paypal.class.php on line 50
[05-May-2020 19:06:14 Australia/Queensland] PHP Warning:  Invalid argument supplied for foreach() in /home/inkbr013/public_html/modules/plugins/paypal_commerce/paypal.class.php on line 50
[05-May-2020 19:08:08 Australia/Queensland] PHP Warning:  Shipping not setup or allow no shipping not enabled in /home/inkbr013/public_html/classes/cubecart.class.php on line 1808
[05-May-2020 19:08:12 Australia/Queensland] PHP Warning:  Shipping not setup or allow no shipping not enabled in /home/inkbr013/public_html/classes/cubecart.class.php on line 1808
[05-May-2020 19:09:35 Australia/Queensland] PHP Warning:  Invalid argument supplied for foreach() in /home/inkbr013/public_html/modules/plugins/paypal_commerce/paypal.class.php on line 50
[05-May-2020 19:09:37 Australia/Queensland] PHP Warning:  Invalid argument supplied for foreach() in /home/inkbr013/public_html/modules/plugins/paypal_commerce/paypal.class.php on line 50
[05-May-2020 19:09:47 Australia/Queensland] PHP Warning:  Shipping not setup or allow no shipping not enabled in /home/inkbr013/public_html/classes/cubecart.class.php on line 1808
[05-May-2020 19:09:51 Australia/Queensland] PHP Warning:  Shipping not setup or allow no shipping not enabled in /home/inkbr013/public_html/classes/cubecart.class.php on line 1808
[05-May-2020 19:10:12 Australia/Queensland] PHP Warning:  sizeof() [<a href='http://docs.php.net/manual/en/function.sizeof.php'>function.sizeof.php</a>]: Parameter must be an array or an object that implements Countable in /home/inkbr013/public_html/classes/db/mysqli.class.php on line 209

 

So it's some sort of browser cache problem? I've tried other browsers - without clearing the cache each time - and they do the same.  Fine first time, but fail the next.

I just can't seem to find the common denominator here.  I've even set it on a Hostgator site and it's the same.
 

Really got me stumped!

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...