So this is the part that i changed, i used some functions to get Joomla and hikashop info into the iframe.
You can elso check it out here:
https://www.4u2.co.il/index.php/en/?ctrl=checkout
.
By clicking the Credit card the iFrame opens, now i need to pass (for now) those parameters:
TerminalNumber - Const.
languages - $lang.
Description - cart description.
DealIdentityCode - This is a problem, it is getting the order ID which is not set by now, so i might need to move it to the end or something like that..
Sum - cart sum.
currency - $cur.
UserName - $user.
invCreateInvoice - Const.
<table width="100%">
<?php if(!empty($method->ask_owner)){ ?>
<tr>
<?php
$user =& JFactory::getUser();
$user = $user->username;
$cur = 2;
$lang = & JFactory::getLanguage();
$lang = substr($lang->getTag(), 0, -3);
if(hikashop_getCurrency() == 78){
$cur = 1;}
?>
<td style="text-align:right">
<label for="hikashop_credit_card_owner_<?php echo $method->payment_type.'_'.$method->payment_id;?>"><iframe src="
secure.cardcom.co.il/External/ExternalCl...mber=1000&languages=
<?php echo $lang; ?>&Description=try
&DealIdentityCode=12345&Sum=5¤cy=<?php echo $cur; ?>&UserName=<?php echo $user; ?>&invCreateInvoice=1" width="100%" height="1000">
<p>ERROR: Your browser does not support iframes.</p>
</iframe>
</label>
</td>
</tr>
....
I need to know how do i get the cart info to this page
EDIT: Ok so i found a better solution (hopefully simpler):
use the exist credit card and use the form action to submit the url to the pretty much the same as the iframe (getting same params plus credit card number owner etc..), now i noticed the step form is at checkout/step and is generated automatically so i need to say if it is the first step and credit card is checked then action to my URL i think i can manage to redirect after the transition is over to step 2 URL.
Problem is i dont know how to modify it to action my url when the conditions are true, any ideas?
Thanks