Error: No ack for postMessage createOrder()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I am trying to "set up standard payments" in Blazor webassembly application,
I've added the payment button as described here:
but when I press it(using a sandbox env) most of the time I get the following error in the console:
Error: No ack for postMessage createOrder()
"Error: No ack for postMessage createOrder() in
https://www.sandbox.paypal.com in 10000ms at https://www.paypal.com/sdk/js?client-id=xxx-DB:2:87496 at https://www.paypal.com/sdk/js?client-id=xxx-DB:2:30105"
Can you please help me?
- Labels:
-
PayPal HTML Buttons
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hey @GnosisDev2! Sorry for the delay on a response here. I'm a Developer Advocate on a new DevRel team here at PayPal, and we are looking into this based on your post here and a Github issue we saw. Quick question - are you using VS Code's debugger when you're running this locally? That seems to be where other people are running into issues, and I just want to confirm that the set-up is the same so we know that we're working towards solving the same issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @mkirlin
Thank you for the replay. The issue was observed while using Visual Studio 2019. According to PayPal support the issue I encounter was due to blazor having a big page load time during development which caused the PayPal component to timeout.
Hope this helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It might! Do you happen to have a support ticket number for this? If it's no longer a big issue, I won't bug you about it anymore, but we'll keep digging around under the hood and try to figure out how we can help you and others avoid this in the future.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
For now we don't consider it a huge issue, since the checkout functions well after the app gets published.
But for future use/reference any update or improvement would be appreciated
Case number: 09458420
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yes I get the same issue, i found this fix works: https://stackoverflow.com/questions/66456892/failed-to-launch-debug-adapter-vs-tries-to-connect-to-a... you have to do everything in the accepted answer though, mainly not auto launching your app in the browser from VS but rather running it and then connecting to it by navigating to the link (see pic below) in your browser
i hope this helps others
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am using vscode debugger, I get error message Error: No ack for postMessage get() in https://www.sandbox.paypal.com in 10000ms @mkirlin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am using VS 2022 Community edition and I am having the same issue. I will try connecting to the server in a new browser window to see if that helps.
Update: Normally, I launch my solution by running the Blazor Server project from Visual Studio using F5. But I just tried running the server project from a Powershell script and then I had no problems with the Paypal buttons. Not sure what difference that makes.
Sample Code
$host.ui.RawUI.WindowTitle="Whatever You Want to show on the Powershell window title"
cd C:\path to your server project file
dotnet watch run

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Are there any restrictions to charge using only html, vanilla javascript and php with rest api? in REST APIs
- PayPal integration with Next, Lambda and API Gateway - 400 Invalid Request in Sandbox Environment
- paypal angular sandbox, receiving not approved order ,when Capture even OnApprove is triggered in Sandbox Environment
- Prevent changing shipping address via SET_PROVIDED_ADDRESS not working. Orders V2 Advanced Checkout in REST APIs
- multiparty vendor in REST APIs