Closed philkz closed 1 year ago
+1
We're facing the same issue with regards to the error notification, also seeing Something went wrong. Please try again or choose another payment source.
upon clicking on the PayPal-button in checkout.
Downgrading to v1.9.5
resolves the issue.
This is the console output I am seeing:
create_order_error
Object
{
err: "JSON.parse: unexpected character at line 1 column 1 of the JSON data\n\n\nB.error@https://www.paypal.com/sdk/js?client-id=redacted¤cy=EUR&integration-date=2022-04-13&components=buttons,funding-eligibility,messages,hosted-fields&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:2:218829\nde/<@https://www.paypal.com/sdk/js?client-id=redacted¤cy=EUR&integration-date=2022-04-13&components=buttons,funding-eligibility,messages,hosted-fields&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:2:231866\nde/<@https://www.paypal.com/sdk/js?client-id=redacted¤cy=EUR&integration-date=2022-04-13&components=buttons,funding-eligibility,messages,hosted-fields&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:2:231729\nde@https://www.paypal.com/sdk/js?client-id=redacted¤cy=EUR&integration-date=2022-04-13&components=buttons,funding-eligibility,messages,hosted-fields&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:2:231878\nwe/u<@https://www.paypal.com/sdk/js?client-id=redacted¤cy=EUR&integration-date=2022-04-13&components=buttons,funding-eligibility,messages,hosted-fields&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:2:236538\nwe@https://www.paypal.com/sdk/js?client-id=redacted¤cy=EUR&integration-date=2022-04-13&components=buttons,funding-eligibility,messages,hosted-fields&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:2:236657\nLe/</</<@https://www.paypal.com/sdk/js?client-id=redacted¤cy=EUR&integration-date=2022-04-13&components=buttons,funding-eligibility,messages,hosted-fields&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:2:243363\ne.try@https://www.paypal.com/sdk/js?client-id=redacted¤cy=EUR&integration-date=2022-04-13&components=buttons,funding-eligibility,messages,hosted-fields&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:2:51318\nLe/</</<@https://www.paypal.com/sdk/js?client-id=redacted¤cy=EUR&integration-date=2022-04-13&components=buttons,funding-eligibility,messages,hosted-fields&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:2:243108\nLe/</<@https://www.paypal.com/sdk/js?client-id=redacted¤cy=EUR&integration-date=2022-04-13&components=buttons,funding-eligibility,messages,hosted-fields&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:2:243410\n",
timestamp: "1670057281551",
referer: "www.paypal.com",
sdkCorrelationID: "redacted",
sessionID: "redacted",
clientID: "redacted",
env: "production",
buttonSessionID: "redacted",
buttonCorrelationID: "redacted",
time: "1670057281551",
…
}
buttons: 1492: 133092
click_initiate_payment_reject
Object
{
err: "JSON.parse: unexpected character at line 1 column 1 of the JSON data\n\n\nB.error@https://www.paypal.com/sdk/js?client-id=redacted¤cy=EUR&integration-date=2022-04-13&components=buttons,funding-eligibility,messages,hosted-fields&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:2:218829\nde/<@https://www.paypal.com/sdk/js?client-id=redacted¤cy=EUR&integration-date=2022-04-13&components=buttons,funding-eligibility,messages,hosted-fields&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:2:231866\nde/<@https://www.paypal.com/sdk/js?client-id=redacted¤cy=EUR&integration-date=2022-04-13&components=buttons,funding-eligibility,messages,hosted-fields&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:2:231729\nde@https://www.paypal.com/sdk/js?client-id=redacted¤cy=EUR&integration-date=2022-04-13&components=buttons,funding-eligibility,messages,hosted-fields&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:2:231878\nwe/u<@https://www.paypal.com/sdk/js?client-id=redacted¤cy=EUR&integration-date=2022-04-13&components=buttons,funding-eligibility,messages,hosted-fields&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:2:236538\nwe@https://www.paypal.com/sdk/js?client-id=redacted¤cy=EUR&integration-date=2022-04-13&components=buttons,funding-eligibility,messages,hosted-fields&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:2:236657\nLe/</</<@https://www.paypal.com/sdk/js?client-id=redacted¤cy=EUR&integration-date=2022-04-13&components=buttons,funding-eligibility,messages,hosted-fields&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:2:243363\ne.try@https://www.paypal.com/sdk/js?client-id=redacted¤cy=EUR&integration-date=2022-04-13&components=buttons,funding-eligibility,messages,hosted-fields&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:2:51318\nLe/</</<@https://www.paypal.com/sdk/js?client-id=redacted¤cy=EUR&integration-date=2022-04-13&components=buttons,funding-eligibility,messages,hosted-fields&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:2:243108\nLe/</<@https://www.paypal.com/sdk/js?client-id=redacted¤cy=EUR&integration-date=2022-04-13&components=buttons,funding-eligibility,messages,hosted-fields&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:2:243410\n",
timestamp: "1670057281558",
referer: "www.paypal.com",
sdkCorrelationID: "redacted",
sessionID: "redacted",
clientID: "redacted",
env: "production",
buttonSessionID: "redacted",
buttonCorrelationID: "redacted",
time: "1670057281558",
…
}
buttons: 1492: 133092
Error: JSON.parse: unexpected character at line 1 column 1 of the JSON data
error https: //www.paypal.com/sdk/js?client-id=redacted¤cy=EUR&integration-date=2022-04-13&components=buttons,funding-eligibility,messages,hosted-fields&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:2
de https: //www.paypal.com/sdk/js?client-id=redacted¤cy=EUR&integration-date=2022-04-13&components=buttons,funding-eligibility,messages,hosted-fields&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:2
de https: //www.paypal.com/sdk/js?client-id=redacted¤cy=EUR&integration-date=2022-04-13&components=buttons,funding-eligibility,messages,hosted-fields&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:2
de https: //www.paypal.com/sdk/js?client-id=redacted¤cy=EUR&integration-date=2022-04-13&components=buttons,funding-eligibility,messages,hosted-fields&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:2
u https: //www.paypal.com/sdk/js?client-id=redacted¤cy=EUR&integration-date=2022-04-13&components=buttons,funding-eligibility,messages,hosted-fields&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:2
we https: //www.paypal.com/sdk/js?client-id=redacted¤cy=EUR&integration-date=2022-04-13&components=buttons,funding-eligibility,messages,hosted-fields&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:2
Le https: //www.paypal.com/sdk/js?client-id=redacted¤cy=EUR&integration-date=2022-04-13&components=buttons,funding-eligibility,messages,hosted-fields&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:2
try https: //www.paypal.com/sdk/js?client-id=redacted¤cy=EUR&integration-date=2022-04-13&components=buttons,funding-eligibility,messages,hosted-fields&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:2
Le https: //www.paypal.com/sdk/js?client-id=redacted¤cy=EUR&integration-date=2022-04-13&components=buttons,funding-eligibility,messages,hosted-fields&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:2
Le https: //www.paypal.com/sdk/js?client-id=redacted¤cy=EUR&integration-date=2022-04-13&components=buttons,funding-eligibility,messages,hosted-fields&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:2
error https: //www.paypal.com/sdk/js?client-id=redacted¤cy=EUR&integration-date=2022-04-13&components=buttons,funding-eligibility,messages,hosted-fields&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:2
de https: //www.paypal.com/sdk/js?client-id=redacted¤cy=EUR&integration-date=2022-04-13&components=buttons,funding-eligibility,messages,hosted-fields&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:2
de https: //www.paypal.com/sdk/js?client-id=redacted¤cy=EUR&integration-date=2022-04-13&components=buttons,funding-eligibility,messages,hosted-fields&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:2
de https: //www.paypal.com/sdk/js?client-id=redacted¤cy=EUR&integration-date=2022-04-13&components=buttons,funding-eligibility,messages,hosted-fields&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:2
u https: //www.paypal.com/sdk/js?client-id=redacted¤cy=EUR&integration-date=2022-04-13&components=buttons,funding-eligibility,messages,hosted-fields&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:2
we https: //www.paypal.com/sdk/js?client-id=redacted¤cy=EUR&integration-date=2022-04-13&components=buttons,funding-eligibility,messages,hosted-fields&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:2
Le https: //www.paypal.com/sdk/js?client-id=redacted¤cy=EUR&integration-date=2022-04-13&components=buttons,funding-eligibility,messages,hosted-fields&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:2
try https: //www.paypal.com/sdk/js?client-id=redacted¤cy=EUR&integration-date=2022-04-13&components=buttons,funding-eligibility,messages,hosted-fields&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:2
Le https: //www.paypal.com/sdk/js?client-id=redacted¤cy=EUR&integration-date=2022-04-13&components=buttons,funding-eligibility,messages,hosted-fields&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:2
Le https: //www.paypal.com/sdk/js?client-id=redacted¤cy=EUR&integration-date=2022-04-13&components=buttons,funding-eligibility,messages,hosted-fields&vault=false&commit=true&intent=capture&enable-funding=venmo,paylater:2
button.js: 1: 94176
Hello @philkz and @E-VANCE
Please reach out to the support team here directly for assistance with this issue. Thanks!
@femiyb I have opened a ticket via the WC support form – feels very redundant though as all the technical details have already been provided here...
See also –> #1014
Describe the Bug
I enabled PayPal via the
WooCommerce PayPal Payments
plugin. I connected my account and did a webhook simulation, in which it was reported ✔️ The webhook was received successfully.However, upon trying to use it on WooCommerce checkout, I get the following error: Something went wrong. Please try again or choose another payment source.
What am I missing?
To Reproduce
Screenshots
Expected Behavior
Successful Payment
Actual Behavior
Error
Environment
Additional Details
System status
``` ```