• Hello Team,

    kindly note that I have created the html page below

    <form id="redirectForm" action="https://pay.mytmoney.mu/Mt/web/payments" method="post">
    		<input  name="appId" value="<?php echo $_GET[ 'appID' ]; ?>"/>
    		<input  name="merTradeNo" value="<?php echo $_GET[ 'merTradeNo' ]; ?>"/>
    		<input  name="payload" value="<?php echo $_GET[ 'encryptedPayload' ]; ?>"/> 
    		<input  name="paymentType" value="<?php echo $_GET[ 'paymentType' ]; ?>"/>
    		<input  name="sign" value="<?php echo $_GET[ 'sign' ]; ?>"/>
    		<p><input type="submit" value="Pay By my.t money"/></p>
    		</form>

    However, code is being displayed as shown below.
    https://snipboard.io/nKmZ5o.jpg

    On clicking ‘Pay by mytmoney’, I am getting authentication error. Seems the values are not passed correctly.

    https://snipboard.io/ycCku3.jpg

    Kindly advise.

    Thanks,
    Roshan

    • This topic was modified 2 years, 4 months ago by Steven Stern (sterndata). Reason: made title somewhat useful
    • This topic was modified 2 years, 4 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    It looks like you added <?php ?> blocks directly into page content. When you do that, the < > signs are escaped and treated like plain text instead of executable code delimiters. Any desired PHP code can be incorporated into a shortcode or custom block which is then properly processed on output.
    https://developer.www.ads-software.com/plugins/shortcodes/

    Alternately, use a code snippets or form builder plugin to accomplish what you need.

Viewing 1 replies (of 1 total)
  • The topic ‘mytmoney form problem’ is closed to new replies.