Hello.


I am getting an error when i send an html form created by a Checkout.JS wich tokenizes a credit/debit card information, and sends it through a Html form, with a Post method to a webscreen, this webscreen has to get the form value.

When I tried it, it gave me an error:

“405 - HTTP verb used to access this page is not allowed.

The page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access.”


Thank you.

Hi Ammet,

So basically the error message tells you, that you cannot use the POST method.

Could you give more context or maybe share (part) of the OutSystems code?

Regards,

Daniel

Hi Ammet ,

I found few posts on google and most of the people solved it with this. Please check below link if you can get any help.

https://forums.iis.net/t/1201030.aspx?405+HTTP+verb+used+to+access+this+page+is+not+allowed+


Regards,

-PJ-

Daniël Kuhlmann wrote:

Hi Ammet,

So basically the error message tells you, that you cannot use the POST method.

Could you give more context or maybe share (part) of the OutSystems code?

Regards,

Daniel

Hi Daniël,

I have 3 buttons.

'Token' Button, calls a REST API, it returns a Token

'Session' Button' uses this Token and the Amount value in the input, to create a Token Session.

...


'Pago' Button contains a javascript. (This)

 It creates a form inside a hidden container under the buttons.



So, when i click 'Pago' button, the js creates 'Paga Aqui' blue button. This blue button opens a form who permforms the Post Method.



But i got this error



Now, all this is done in Reactive. If i change the 'action' attribute to a WebsCreen from another module (Traditional Web), i can successfully get the response of that form, with a GetRequestContent in the preparation of the Webscreen (Traditional Web)



Kind regards.

Ammet.



Hi Ammet,

Another option you may want to explore is to create a rest service that supports post that then redirects to a reactive screen. 

Cheers,

Tiago Simões