question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error message for card payments - Something went wrong. We'll take you back to the checkout so you can try again

See original GitHub issue

Description

Some of our customers are receiving an error message saying Error message for card payments - Something went wrong. We'll take you back to the checkout so you can try again

This happens when they try to pay using Debit or Credit card button. Please note that we have successfully processed other transactions through the Paypal checkout buttons and our customer has already contacted their bank to check that the transaction is not being blocked from their side.

  • Screenshots or videos that show the issue

Screen Shot 2020-05-23 at 3 57 24 PM copy

  • Your code

        createOrder: function(data, actions) {
          return actions.order.create({
            purchase_units: [{
              amount: {
                value: context.get('transactionAmount').toString(),
              }
            }],
            application_context: {
              shipping_preference: 'NO_SHIPPING'
            }
          });
        },
        onApprove: function(data, actions) {
          context.ui.set('showProcessingModal', true);
          run.later(() => {
            //Basically stop showing that modal after 5 seconds.. as there is a lot of auto magic with Paypal
            context.ui.set('showProcessingModal', false);
          }, 5000);
          return actions.order.capture().then(function(details) {
            context.handleSuccesfulPayment(details)
          });
        },
        onError: function (err) {
          context.handleFailedPayment(stripeResponse).then().finally(()=> {
            context.ui.set('showProcessingModal', false);
            context.ui.showGeneralMessage('Oops', 'We were unable to process your payment. Please get in touch.');
          });
        }
      }).render('#paypal-button-container-'+context.elementId);```
    
    
  • The paypal.version from your browser console

5.0.126

  • The exact browser version
  • A link to your page with the issue, if possible

I’ve created a similar trip in our staging environment here: https://staging.timbuktutravel.com/trip/-ad3787f5-4a38-425c-bc09-a9fe35765f12/pay

you can log in with: email: paypal@test.com password: paypal123

  • All console logs during the time of the issue, especially error messages
  • Does the issue also occur at developer.paypal.com/demo/checkout?
  • Does the issue occur consistently, or intermittently? Intermittently

Steps to reproduce

Go to the pay page of one of the trips that we sell Click the black “Debit or Credit card” button. Fill in the card details. See error message Some customers are able to pay. Some customers are not able to pay. Seeing this error message. We have two different customers that are experiencing this with different cards

Affected browsers

  • Chrome
  • Safari
  • Firefox
  • Edge
  • IE
  • Chrome Mobile/Tablet
  • Safari Mobile/Tablet
  • Web View / Safari ViewController
  • Other

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:38 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Ivajkincommented, Jul 7, 2022

Experiencing this issue with my PayHip product pages.

0reactions
nosiborcommented, Jun 30, 2022

Experiencing the same issue now, just discovered as of a few days ago.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Debit credit card problem – Sorry something went wrong…
... specific product with Credit / debit card it gets an error message: “Sorry, something went wrong. We'll take you back to checkout...
Read more >
How to FIX PayPal Error Something Went Wrong ... - YouTube
You will learn how to solve paypal error something went wrong. We'll take you back to checkout so you can try again. PayPal...
Read more >
PayPal Smart payment Button: Something went wrong. We' ...
In the end of the it shows "Something went wrong. We'll take you back to checkout so you can try again" error. I...
Read more >
Paypal Checkout - "Something went wrong error" when ...
Please allow some time for them to get back to you. Again, we do apologize for the trouble caused to you, and we...
Read more >
I received an error message when trying to pay, what can I ...
First, check if your connected card has expired or if it has been blocked or frozen. Log in to the app to update...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found