Calling api using post method-web component

The body should be in JSON format. Encode the body

After encoding the error is still the same. You can check the aia and update

@gopi shouldit be like this?

Why is this not on the community?

Hello @Peter, How can I add it to the community

Why is it not in the original topic? Put you info there where it should be from the beginning.

Merged this with the existing topic.

Hello @Peter,

Thanks . Kindly assist with the recent query.

Anyone kindly assist

Why not just be patient?

use Do it to debug your blocks


see also tip 4 here App Inventor: How to Learn | Pura Vida Apps
also I’m not sure, if the Web URI block is necessary
Taifun

Hello @Taifun,

When I do it, I get the following:

Do It Result:

Also when I click the button, I get the following error:

The request content was malformed: Expected Map as JsObject but got “”

Kindly advise

probably a spelling error? providerChannel with 2 n
you might want to add a link to the API documentation…

Taifun

@Taifun
Even after correcting chanel to channel, the same error still appears.

Here is the link to the Api documentation:

Payments>Mobile>Checkout
https://build.at-labs.io/docs/payments%2Fmobile%2Fcheckout

The URI block was not needed. Also the do it function also helped.

Thanks @Taifun for always coming through

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.