Paypal SDK, "Something went wrong" using CC in Production
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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>¤cy=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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- I need to integrate a recurring payment with a variable for a pay-as-you-go product in REST APIs
- Change the button from Sandbox to Production in PayPal Payments Standard
- Webhook notifications are not being sent to my server in REST APIs
- Re: Enable the return of billing address in Sandbox Environment
- Refunding an order via HATEOAS URL failing with NOT_AUTHORIZED error in Sandbox Environment