Error: No ack for postMessage createOrder()

GnosisDev2
Contributor
Contributor

Hello,

 

I am trying to "set up standard payments" in Blazor webassembly application, 

I've added the payment button as described here: 

Add-payment-buttons 

 

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?

Login to Me Too
9 REPLIES 9

mkirlin
Contributor
Contributor

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.

Login to Me Too

GnosisDev2
Contributor
Contributor

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

Login to Me Too

mkirlin
Contributor
Contributor

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.

Login to Me Too

GnosisDev2
Contributor
Contributor

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

Login to Me Too

awestermann
Contributor
Contributor

I'm having the same issue and I use the VSCode debugger.

Any updates on this?

Login to Me Too

MikeOtown
Contributor
Contributor

I'm getting the same error.

Login to Me Too

PatrickHume
Contributor
Contributor

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 code.PNG

 

i hope this helps others 

Login to Me Too

Jorge_cauich
Contributor
Contributor

I am using vscode debugger, I get error message Error: No ack for postMessage get() in https://www.sandbox.paypal.com in 10000ms @mkirlin 

Login to Me Too

PeanutsCloset
Contributor
Contributor

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

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.