forked from techjoomla/joomla-payments
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue techjoomla#40 fix: pass name, address, city etc while placing t…
…he order so that the order details are shown prefilled on the 2checkout
- Loading branch information
1 parent
4822244
commit fb72d3c
Showing
4 changed files
with
27 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
<?php | ||
/** | ||
* @package Joomla Payments | ||
* @author TechJoomla <[email protected]> | ||
* @website http://techjoomla.com | ||
* @copyright Copyright (c) 2009-2018 TechJoomla. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
* @package Joomla_Payments | ||
* @subpackage plg_payments_2checkout | ||
* | ||
* @author Techjoomla <[email protected]> | ||
* @copyright Copyright (C) 2009 - 2018 Techjoomla. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
// No direct access | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
<?php | ||
/** | ||
* @copyright Copyright (c) 2009-2013 TechJoomla. All rights reserved. | ||
* @license GNU General Public License version 2, or later | ||
* @package Joomla_Payments | ||
* @subpackage plg_payments_2checkout | ||
* | ||
* @author Techjoomla <[email protected]> | ||
* @copyright Copyright (C) 2009 - 2018 Techjoomla. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
defined('_JEXEC') or die(';)'); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
<?php | ||
/** | ||
* @package Joomla Payments | ||
* @author TechJoomla <[email protected]> | ||
* @website http://techjoomla.com | ||
* @copyright Copyright (c) 2009-2018 TechJoomla. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
* @package Joomla_Payments | ||
* @subpackage plg_payments_2checkout | ||
* | ||
* @author Techjoomla <[email protected]> | ||
* @copyright Copyright (C) 2009 - 2018 Techjoomla. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
defined('_JEXEC') or die('Restricted access'); | ||
?> | ||
|
||
|
@@ -14,7 +16,7 @@ | |
<div> | ||
<input type="hidden" name="sid" value="<?php echo $vars->sid?>" /> | ||
<input type="hidden" name="cart_order_id" value="<?php echo $vars->order_id ?>" /> | ||
<input type="hidden" name="total" value="<?php echo sprintf('%02.2f',$vars->amount) ?>" /> | ||
<input type="hidden" name="total" value="<?php echo sprintf('%02.2f', $vars->amount) ?>" /> | ||
<input type="hidden" name="demo" value="<?php echo $vars->demo; ?>" /> | ||
<input type="hidden" name="merchant_order_id" value="<?php echo $vars->order_id ?>" /> | ||
<input type="hidden" name="fixed" value="Y" /> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
<?php | ||
/** | ||
* @package Joomla Payments | ||
* @author TechJoomla <[email protected]> | ||
* @website http://techjoomla.com | ||
* @copyright Copyright (c) 2009-2018 TechJoomla. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
* @package Joomla_Payments | ||
* @subpackage plg_payments_2checkout | ||
* | ||
* @author Techjoomla <[email protected]> | ||
* @copyright Copyright (C) 2009 - 2018 Techjoomla. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
defined('_JEXEC') or die('Restricted access'); | ||
?> | ||
<div class="tjcpg-wrapper"> | ||
<form action="<?php echo $vars->action_url ?>" class="form-horizontal" method="post" id="paymentForm"> | ||
<input type="hidden" name="sid" value="<?php echo $vars->sid?>" /> | ||
<input type="hidden" name="cart_order_id" value="<?php echo $vars->order_id ?>" /> | ||
<input type="hidden" name="total" value="<?php echo sprintf('%02.2f',$vars->amount) ?>" /> | ||
<input type="hidden" name="total" value="<?php echo sprintf('%02.2f', $vars->amount) ?>" /> | ||
<input type="hidden" name="demo" value="<?php echo $vars->demo; ?>" /> | ||
<input type="hidden" name="merchant_order_id" value="<?php echo $vars->order_id ?>" /> | ||
<input type="hidden" name="fixed" value="Y" /> | ||
|