Paypal SDK, "Something went wrong" using CC in Production

TheLaGmAn
Contributor
Contributor

Hi, we are using the paypal JS SDK to process purchases, the implementation is quite simple:

script: https://www.paypal.com/sdk/js?client-id=<token_here>&currency=USD

      paypal.Buttons({

        createOrder: function(data, actions) {

          return actions.order.create({

            purchase_units: [{

              'description' => 'A purchase',

              amount: { value: 100 },

            }],

           application_context: {shipping_preference: 'NO_SHIPPING'}
      });
    }, onApprove: function(data, actions) {
            return actions.order.capture().then(function(details) {console.log(details);});
    }}).render('.pay_by_pp');

 

When choosing paypal as the payment method, it works.

When choosing CC, after entering the details and hitting pay, we get "Something went wrong. We'll take you back to checkout so you can try again"

 

this is on PRODUCTION, how come paying with CC isnt working?

Login to Me Too
2 REPLIES 2

MTS_Chiranjeevi
Moderator
Moderator

Hi @TheLaGmAn,

 

Thank you for contacting PayPal community.

 

We apologize for any inconvenience.

 

Can you please try to process a test payment via card which is not linked to your PayPal account. You shouldn't be facing

 

Sincerely,

Chiranjeevi

PayPal, Inc.

 

If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.

Login to Me Too

TheLaGmAn
Contributor
Contributor

This is in PRODUCTION, not testing.

But before moving into PROD, on testing, was having this issue randomly using the credit card generator.

Sometimes the card didnt work, generated a new card, didnt work, generated a new one and worked, sometimes off the bat worked, but this issue was there, now on PROD with 3 cards tested, no luck.

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.