Forum Replies Created

Viewing 1 replies (of 1 total)
  • Hello @vapekisol,
    You should edit plugin file: woo-halkbank-payment-gateway/classes/class-wc-halk-payment-gateway.php

    You will go down and will find this code where we see the FORM,

    <form name="form" id="<?php echo $this->id ; ?>-3d-secure-form" action="<?php echo $this->payment_url; ?>"
    			         method="POST">
    				   <div>
    					   <input type="hidden" name="clientid" value="<?php echo $clientId; ?>" />
    					   <input type="hidden" name="amount" value="<?php echo $amount; ?>" />
    					   <input type="hidden" name="islemtipi" value="<?php echo $transactionType; ?>" />
    					   <input type="hidden" name="taksit" value="<?php echo $instalment; ?>" />
    					   <input type="hidden" name="oid" value="<?php echo $oid; ?>" />
    					   <input type="hidden" name="okUrl" value="<?php echo $okUrl; ?>" />
    					   <input type="hidden" name="failUrl" value="<?php echo $failUrl; ?>" />
    					   <input type="hidden" name="rnd" value="<?php echo $rnd; ?>" />
    					   <input type="hidden" name="hash" value="<?php echo $hash; ?>" />
    					   <input type="hidden" name="storetype" value="<?php echo $storetype; ?>" />
    					   <input type="hidden" name="lang" value="<?php echo $lang; ?>" />
    					   <input type="hidden" name="currency" value="<?php echo $currencyVal; ?>" />
    					   <input type="hidden" name="refreshtime" value="10" />
    					   
    				   </div>
    				   <script>
    					   jQuery('#<?php echo $this->id ; ?>-3d-secure-form').submit();
    				   </script>
    			   </form>

    Inside the FORM where we see <input type="hidden" name="refreshtime" value="10" />
    before or after that input, add it in a new line and paste your code <input type=”hidden” name=”encoding” value=”UTF-8″>

    EDITED CODE WILL BE LIKE this :

    <form name="form" id="<?php echo $this->id ; ?>-3d-secure-form" action="<?php echo $this->payment_url; ?>"
    			         method="POST">
    				   <div>
    					   <input type="hidden" name="clientid" value="<?php echo $clientId; ?>" />
    					   <input type="hidden" name="amount" value="<?php echo $amount; ?>" />
    					   <input type="hidden" name="islemtipi" value="<?php echo $transactionType; ?>" />
    					   <input type="hidden" name="taksit" value="<?php echo $instalment; ?>" />
    					   <input type="hidden" name="oid" value="<?php echo $oid; ?>" />
    					   <input type="hidden" name="okUrl" value="<?php echo $okUrl; ?>" />
    					   <input type="hidden" name="failUrl" value="<?php echo $failUrl; ?>" />
    					   <input type="hidden" name="rnd" value="<?php echo $rnd; ?>" />
    					   <input type="hidden" name="hash" value="<?php echo $hash; ?>" />
    					   <input type="hidden" name="storetype" value="<?php echo $storetype; ?>" />
    					   <input type="hidden" name="lang" value="<?php echo $lang; ?>" />
    					   <input type="hidden" name="currency" value="<?php echo $currencyVal; ?>" />
    					   <input type="hidden" name="refreshtime" value="10" />
    					   <input type=”hidden” name=”encoding” value=”UTF-8″>
    				   </div>
    				   <script>
    					   jQuery('#<?php echo $this->id ; ?>-3d-secure-form').submit();
    				   </script>
    			   </form>
    • This reply was modified 5 years, 2 months ago by arbreshu.
    • This reply was modified 5 years, 2 months ago by arbreshu.
Viewing 1 replies (of 1 total)