Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Credit card icons return error #596

Closed
melindahelt opened this issue Jul 31, 2019 · 49 comments
Closed

Credit card icons return error #596

melindahelt opened this issue Jul 31, 2019 · 49 comments
Labels
priority: high The issue/PR is high priority—it affects lots of customers substantially, but not critically. type: bug The issue is a confirmed bug.

Comments

@melindahelt
Copy link

melindahelt commented Jul 31, 2019

2200569-zen

What I expected:

  • I expected clickable items at checkout to work and not create an error.

What happened:

  • When clicking on the credit card icons, as if to select payment method, an error happens. In reality, I believe those icons should not be clickable as the credit card type is auto identified when entering in the credit card number on the next screen.

See error with Storefront, WooCommerce 3.6.5 and PayPal Checkout 1.6.16

Confirmed that this happens on both cart and checkout pages.

Clicking the yellow PayPal button works as expected, but clicking the credit card icons result in an error.

Image Link: https://cld.wthms.co/AXpiaF

@melindahelt melindahelt added priority: high The issue/PR is high priority—it affects lots of customers substantially, but not critically. type: bug The issue is a confirmed bug. labels Jul 31, 2019
@dechov
Copy link
Contributor

dechov commented Aug 1, 2019

Unable to reproduce:

paypal-checkout-card-click

Any idea as to what could be different between the setups? Also reported in https://wordpress.org/support/topic/error-when-clicking-the-credit-card-button/#post-11787704

@syllie
Copy link

syllie commented Aug 1, 2019

Hi, I arrived here because we also experience issues with the credit card icons, though my situation may be slightly different. On click on any of the credit card images we get a non descriptive error message
image.

Hitting the 'Try Again' button opens the paypal form as expected (but how many customers leave instead). We have 4 commercial sites that are suddenly all affected. Only other information I can provide is that I am in Australia, and the console shows a "You have not loaded metadata for "AU" country" javascript error. I am trying to confirm if something similar happens to US customers too.

image

It seems that more users are experiencing similar issues, besides the link you referenced above also this one was posted on the support forum: https://wordpress.org/support/topic/express-button-error/

@dechov
Copy link
Contributor

dechov commented Aug 1, 2019

Thanks for reporting – I was able to reproduce the latter issue just by changing the customer country to anything other than US (on the Checkout page, or on the Cart page under Shipping).

Not sure why this would be happening, but I see that PayPal has recently made changes to the credit card form – having it render inline instead of in a modal, as shown in the screenshot – and the breakage may well be related, especially if the "Try again" button shows the modal and it works. Will keep looking into what the cause may be.

The 10002 error reported in the original issue may be unrelated (though possibly also a result of changes on PayPal's side to the way the credit card form is displayed).

@dechov
Copy link
Contributor

dechov commented Aug 2, 2019

PayPal has confirmed they are looking at an issue on their end related to country codes and credit card checkout – we're expecting an update next week and will continue to track both the country issue and the 10002 code reported in the original post.

@fhaps
Copy link

fhaps commented Aug 5, 2019

For the record, I was able to reproduce the same error (Something went wrong. We'll take you back to checkout so you can try again), even when I used the United States as the billing country (and the shop base address country).

See screencast here: https://cld.wthms.co/ZAqzU6

As mentioned before, clicking on Try again opens up the modal window, which works correctly.

2188081-zen

@card1concepts
Copy link

Our client is also experiencing this issue. And I went through the same thing where I could not reproduce the issue by simply clicking on the buttons as they would work fine as shown in the screenshot sequence above. However, the client pointed out to me that the error message appears for them only after entering credit card information and clicking the "PayNow" button. This occurs with a valid US address.

@card1concepts
Copy link

Has there been any progress finding a solution to this issue?

@laidlow73
Copy link

Have the same issue as dechov .

Thanks for reporting – I was able to reproduce the latter issue just by changing the customer country to anything other than US (on the Checkout page, or on the Cart page under Shipping).

Not sure why this would be happening, but I see that PayPal has recently made changes to the credit card form – having it render inline instead of in a modal, as shown in the screenshot – and the breakage may well be related, especially if the "Try again" button shows the modal and it works. Will keep looking into what the cause may be.

The 10002 error reported in the original issue may be unrelated (though possibly also a result of changes on PayPal's side to the way the credit card form is displayed).

Any updates on this?

@LeRobert
Copy link

Same issue here. If I select PayPal for the payment, it opens the modal login window of PayPal correctly. But if I click on a credit card, it processes for a sec and says: "Something went wrong. We'll take you back to checkout so you can try again". If I then click on "Try Again", it opens the modal login window and works fine.

My locale is "SI".

I did some web traffic analysis and here are errors that are reported, if it helps. With some requests I also saw that although my locale is 'SI', there is 'US' sent as a country in communication with the PayPal API.

VM59 vendor.059a2357d9a678cb63bd91ee0b185f6c.js:1
Error: You have not loaded metadata for "SI" country
at s (VM61 app.059a2357d9a678cb63bd91ee0b185f6c.js:1)
at r.value [as validateAddress] (VM61 app.059a2357d9a678cb63bd91ee0b185f6c.js:1)
at Function.mapToProps (VM61 app.059a2357d9a678cb63bd91ee0b185f6c.js:1)
at r (VM61 app.059a2357d9a678cb63bd91ee0b185f6c.js:1)
at Function.r.mapToProps (VM61 app.059a2357d9a678cb63bd91ee0b185f6c.js:1)
at r (VM61 app.059a2357d9a678cb63bd91ee0b185f6c.js:1)
at s (VM61 app.059a2357d9a678cb63bd91ee0b185f6c.js:1)
at VM61 app.059a2357d9a678cb63bd91ee0b185f6c.js:1
at Object.run (VM61 app.059a2357d9a678cb63bd91ee0b185f6c.js:1)
at d.c.initSelector (VM61 app.059a2357d9a678cb63bd91ee0b185f6c.js:1)

VM54 checkout.js:2234
ppxo_inline_guest_window_onerror {timestamp: 1566475803664, message: "Script error.", details: undefined, file: "", line: 0, …}

VM59 vendor.059a2357d9a678cb63bd91ee0b185f6c.js:1
Uncaught Error: You have not loaded metadata for "SI" country
at s (VM61 app.059a2357d9a678cb63bd91ee0b185f6c.js:1)
at r.value [as validateAddress] (VM61 app.059a2357d9a678cb63bd91ee0b185f6c.js:1)
at Function.mapToProps (VM61 app.059a2357d9a678cb63bd91ee0b185f6c.js:1)
at r (VM61 app.059a2357d9a678cb63bd91ee0b185f6c.js:1)
at Function.r.mapToProps (VM61 app.059a2357d9a678cb63bd91ee0b185f6c.js:1)
at r (VM61 app.059a2357d9a678cb63bd91ee0b185f6c.js:1)
at s (VM61 app.059a2357d9a678cb63bd91ee0b185f6c.js:1)
at VM61 app.059a2357d9a678cb63bd91ee0b185f6c.js:1
at Object.run (VM61 app.059a2357d9a678cb63bd91ee0b185f6c.js:1)
at d.c.initSelector (VM61 app.059a2357d9a678cb63bd91ee0b185f6c.js:1)

@card1concepts
Copy link

Hello, has there been any developments on this bug? The plugin is useless without this getting fixed. Thank you for your time.

@Kingdingbat
Copy link

I am also having this issue.

  1. Click credit card logo
  2. Enter credit card information into form
  3. Click "Pay Now"
  4. "Something went wrong..." error
  5. Click "Try again", Paypal modal loads
  6. Enter credit card again
  7. Payment processes fine.

@bmccotter
Copy link

@EktaPayPal any chance you can help us resolve?

@1975bigmac1975
Copy link

I'm having exactly the same issue, any news on a fix?

@allendav allendav added this to the 1.6.18 milestone Sep 17, 2019
@dechov
Copy link
Contributor

dechov commented Sep 23, 2019

Thank you @yukikatayama

The "You have not loaded metadata" error was fixed on PayPal's end a few weeks ago.

I have run into some other issues – including the "Something went wrong" message after completing the credit card form – and reported to PayPal but currently cannot reproduce them in production so they may be specific to the sandbox environment. Has this been seen in production, and if so is it still occurring? @fhaps @card1concepts @Kingdingbat @1975bigmac1975

I still have yet to run into the original error reported in this issue (error code 10002).

@EktaPayPal
Copy link

EktaPayPal commented Sep 23, 2019 via email

@khanghoang
Copy link

@EktaPayPal thanks for adding me.

Folks, we've released the fix for the missing metadata issue early this month. Please double-check if you can still reproduce it on sandbox or production.

@onlysli
Copy link

onlysli commented Sep 24, 2019

Hello,
I still get the error "An error occurred while calling the PayPal API" using latest versions of the plugins.

@1975bigmac1975
Copy link

Thank you @yukikatayama

The "You have not loaded metadata" error was fixed on PayPal's end a few weeks ago.

I have run into some other issues – including the "Something went wrong" message after completing the credit card form – and reported to PayPal but currently cannot reproduce them in production so they may be specific to the sandbox environment. Has this been seen in production, and if so is it still occurring? @fhaps @card1concepts @Kingdingbat @1975bigmac1975

I still have yet to run into the original error reported in this issue (error code 10002).

Still happening in a live situation, it does however work from a mobile phone so I have no idea what this means.

@card1concepts
Copy link

card1concepts commented Oct 7, 2019

So this issue thread seems to be all over the place. Has this issue been resolved yet?

@bmccotter
Copy link

@card1concepts we're working on getting direction from PayPal on this.

@khanghoang @EktaPayPal please see above ^^ any updates on your side?

@EktaPayPal
Copy link

EktaPayPal commented Oct 7, 2019 via email

@EktaPayPal
Copy link

EktaPayPal commented Oct 7, 2019 via email

@khanghoang
Copy link

khanghoang commented Oct 7, 2019

Hi folks, sorry for the late reply. There is a couple of things I want to clarify:

  • The original issue was the error message showed up immediately right after the buyers click on the credit card icons (Credit card icons return error #596 (comment) and Credit card icons return error #596 (comment)). The root cause was we've loaded the wrong locale data (as pointed out by Credit card icons return error #596 (comment)) (TL'DR: It was because of the locale the JS SDK used to init Inline Guest doesn't match with the buyer's shipping/billing country). We addressed this issue last month, and I couldn't reproduce it on both sandbox and production.

  • Folks also reported about the same error message showed up after buyers submit the form (which is entirely different and should be another issue). The reason for this error is mainly because of the wrong credit number, invalid billing information, invalid CVV number, etc... FYI we're also working on the error message to make it less generic.

cc @melindahelt

@cerecerorodrigo
Copy link

Hi there

Still having this issue whit the live account. Leaving a photo of my particular case and console log.

image

@khanghoang
Copy link

@cerecerorodrigo it's not the same with the original issue. Would you please create an issue on paypal-checkout https://github.com/paypal/paypal-checkout-components and tag me in. I'm happy to answer there.

@cerecerorodrigo
Copy link

cerecerorodrigo commented Oct 7, 2019 via email

@allendav
Copy link
Contributor

Sounds like things are now fixed on PayPal's end and this issue can be closed?

@EktaPayPal
Copy link

EktaPayPal commented Nov 12, 2019 via email

@v18
Copy link
Contributor

v18 commented Nov 13, 2019

There were a few issues mentioned in this ticket. I'm going to outline them all to make sure no one's issue was missed. I will also close this ticket because the two original issues discussed here were resolved.

Thank you very much @EktaPayPal and @khanghoang for responding, fixing the problems, and reporting back 🙌

Issue 1: Clicking credit card icons in cart and checkout resulted in an error

(Seeing a red "Error 10002" after page reload)

Reported: #596 (comment) by melindahelt on behalf of a user

This was reported in 2200569-zen. It was resolved by PayPal and we got confirmation that it has since been resolved.

Issue 2: Click a credit card icon results in an inline message

Reported originally here: #596 (comment)

There were multiple reports of this:

  1. Reported by @syllie here:
    Credit card icons return error #596 (comment)

  2. Reported by @fhaps on behalf of a user here:
    Credit card icons return error #596 (comment)

  3. Reported by @card1concepts here (this seems like it could be a different issue, though):
    Credit card icons return error #596 (comment)

  4. Reported by @laidlow73 here:
    Credit card icons return error #596 (comment)

  5. Reported by @LeRobert here (could be a different issue though):
    Credit card icons return error #596 (comment)

  6. Reported by @Kingdingbat here:
    Credit card icons return error #596 (comment)

  7. Reported by @1975bigmac1975 here:
    Credit card icons return error #596 (comment)
    @1975bigmac1975 mentioned that "this is happening in a live situation, it does however work from a mobile phone so I have no idea what this means."

The issue was reported as resolved by PayPal. Some of the issues above, however, may not be the same, and some may be error messages reporting credit card processing errors correctly (e.g. invalid CVV numbers) as mentioned here:
#596 (comment)

However, if it's still happening for anyone, please do open a new issue on this repo with a description of your issue and these details:

  • the steps you took right before seeeing this error message
  • a screenshot showing the error message on your screen
  • a screenshot showing any javascript errors in your console

You can open a new issue here:
https://github.com/woocommerce/woocommerce-gateway-paypal-express-checkout/issues/new/choose

Issue 3: Inline issue by cerecerorodrigo

Uncaught error: inline_guest_window_onerror_payment_sdk

Reported here: https://github.com/paypal/paypal-checkout-components/issues/1224

Issue 4: "An error occurred while calling the PayPal API"

Reported by onlysli here:
#596 (comment)

Follow up:

For @1975bigmac1975

For @1975bigmac1975: are you still getting an error using PayPal? If yes, could you please create a new issue here and post with these details:

  • What version of WooCommerce and the PayPal plugin you are using
  • a screenshot showing the error message on your screen
  • a screenshot showing any javascript errors in your console

You can create a new issue here:
https://github.com/woocommerce/woocommerce-gateway-paypal-express-checkout/issues/new/choose

For @onlysli

For @onlysli - the error message you saw ("An error occurred while calling the PayPal API") indicates a different problem. Could you please open a new issue here with these details:

  • the steps you took right before seeeing this error message
  • a screenshot showing the error message on your screen
  • a screenshot showing any javascript errors in your console

You can create a new issue here:
https://github.com/woocommerce/woocommerce-gateway-paypal-express-checkout/issues/new/choose

Thank you all!

@v18 v18 closed this as completed Nov 13, 2019
@v18 v18 removed this from the 1.6.18 milestone Nov 13, 2019
@VinodSoftcripts
Copy link

VinodSoftcripts commented Jun 11, 2020

Hi Everyone, @EktaPayPal

We are currently facing an issue with Woocommerce PayPal express checkout plugin,

When we are trying to do the payment with PayPal credit or debit card option is showing the following error “something went wrong. We’ll take you back to checkout so you can try again.”

Any help would be appreciated.

Thank you

@EktaPayPal
Copy link

EktaPayPal commented Jun 11, 2020 via email

@Johanarh80
Copy link

Johanarh80 commented Jun 18, 2020

@EktaPayPal , I am also presenting the same error as @cerecerorodrigo and @VinodSoftcripts, this occurs when making the payment on the checkout, mini cart and product page. Woocommerce is being used

http://prnt.sc/t1snbv
http://prnt.sc/t1sngg

Thank you

@jorgeatorres
Copy link
Member

Hi @VinodSoftcripts @Johanarh80!

Sorry to hear you're having trouble with PayPal Checkout. In order to help us find the cause, we need to know more about your environment and what you were doing before you got the error message.
In order for us to communicate better and keep things tidy, it'd be great if you could create a new issue here making sure to include the following information:

  • Environment details such as the mode PayPal Checkout is in (sandbox or live), whether you were logged-in to PayPal before initiating the purchase (and, if so, the nature of this account: developer account, sandbox?).
  • Steps you took right before seeing the error message.
    This includes the page you were on, which type of product(s) you had in the cart, whether you saw the message right after clicking the credit card button or after completing the credit card form, and any other info that might be relevant.
  • A screenshot showing the Javascript console errors (if any).
    Do this after seeing the error message. Depending on your browser, you can get to the Javascript console this way: Chrome (View > Developer > Javascript Console), Firefox (Tools > Web Developer > Web Console), Safari (Develop > Show JavaScript Console).

@EktaPayPal
Copy link

This looks like an issue on PP side, and my team is looking into the same. Please stay tuned as I get back to you on the same shortly.

@naya2sangyun
Copy link

naya2sangyun commented Jun 24, 2020

I have same issue with credit card issued in government states in US. 'something went wrong' message appears to my client and to me as well. Anybody fixed this problem?

I've checked console message as followings:

DevTools failed to load SourceMap: Could not load content for https://www.paypal.com/smart/smart-payment-buttons.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

I'm not developer, so I don't know if above message can help anyone to figure out my problem..

@EktaPayPal
Copy link

Hi Guys I have a way forward here.
Screen Shot 2020-07-10 at 12 33 07 PM

@EktaPayPal
Copy link

Please let me know if you continue to see a problem after applying the same

@jorgeatorres jorgeatorres reopened this Jul 13, 2020
@jorgeatorres jorgeatorres self-assigned this Jul 13, 2020
@sitelet
Copy link

sitelet commented Aug 5, 2020

Ekta,
Tried out your suggestion and used upgradeLSAT:true in the paypal.rendering function. But I am still seeing the issue. Would luv to hear any other solution, if there is any?
Thanks

@givicha
Copy link

givicha commented Aug 21, 2020

The same problem - Something went wrong. We'll take you back to checkout so you can try again.

Someone has way out?

@davidboon78
Copy link

davidboon78 commented Aug 29, 2020

I'm experiencing the same issue. This bug more or less renders woocommerce entirely useless it seems. Here's my details.
Environment: Live, using default PayPal payment, but had the same error with the paypal express plugin, also shipping from Canada

Steps taken: Entered paypal from checkout page, clicked "Proceed to Paypal" button, from paypal.com/webapps/hermes I clicked the "pay with a credit or Visa Debit Card", filled out information, received "things don't appear to be working at the moment" error

Screenshot
https://boomtechgear.com/wp-content/uploads/2020/08/PayPal-Checkout-Please-try-again.-Personal-Microsoft%E2%80%8B-Edge-8_29_2020-12_03_57-PM-768x419.png

@bmccotter
Copy link

@EktaPayPal any insight as to why this is still happening?

@dboon1978
Copy link

FIXED: I solved this issue by starting a new paypal account. The paypal account I was using was converted from a standard account.

@strarsis
Copy link

@dboon1978: So a PayPal account that has been upgraded from a standard account will have this subtle (API?) issue?
So this is an issue with PayPal, that PayPal has to fix?

@davidboon78
Copy link

@strarsis I can't speak to the exact reason for other peoples' issues, but rather than waste time trying to track down the problem,, it seems a lot easier to just make a new account and setup my banking info on the new account.

@givicha
Copy link

givicha commented Sep 11, 2020

It is better to register a new account If this will definitely solve the problem.
Someone else tried to do that and no longer has this problem?

@jorgeatorres jorgeatorres removed their assignment Sep 11, 2020
@akumar8k
Copy link

akumar8k commented Oct 5, 2020

I am able to do with Credit/Debit card, but only in private browser. before this, I tried with PayPal login that's why maybe not working with debit card in normal browser.

@jorgeatorres
Copy link
Member

Hi everyone,

Please refer to comments #596 (comment) and #596 (comment) for details on what might be happening and how to address.

The credit card fields are directly rendered and handled by PayPal's scripts, which means the error is frequently the result of a validation error or just a temporary glitch. Because of this and to keep things tidy, I'm going to close this issue now but if anyone is still having trouble and can consistently reproduce the problem, please open a new issue with all the details as described here and we'll be happy to take a look.

@Ivajkin
Copy link

Ivajkin commented Jul 7, 2022

The issue persists. Example: PayHip product pages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: high The issue/PR is high priority—it affects lots of customers substantially, but not critically. type: bug The issue is a confirmed bug.
Projects
None yet
Development

No branches or pull requests