What are you trying to do?
To call that API end point. Its a Mobile Checkout, with postman its working but here at Kodular not working.
What response code and error you get?
The followinfg error:
The request content was malformed: Unexpected character “u” at input index 1 (line 1, position 2) expected JSON
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
Why is this not on 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.
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.