Skip to content

Commit

Permalink
Merge pull request #59 from wirecard/TPWDCEE-1060
Browse files Browse the repository at this point in the history
Improved deposit operation at invoice payment method
  • Loading branch information
rinnhofer authored Mar 28, 2018
2 parents 59d4af1 + 509b8fa commit b1bde03
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -396,15 +396,21 @@ public function print_transaction_details( $data ) {

asort( $operations_allowed );

$brand = $data->order_details['brand'];

foreach ( $operations_allowed as $operation ) {
if ( empty( $operation ) ) {
continue;
}

echo "<div class='wcs-op-group'>";
if ( $operation == 'DEPOSIT' or $operation == 'REFUND' ) {

if ( $brand == 'Invoice' ) {
echo "<input type='hidden' value='$data->amount' name='amount'>";
} elseif ( $operation == 'DEPOSIT' or $operation == 'REFUND' ) {
echo "<input type='text' autocomplete='off' value='' name='amount'>";
}

echo "<button class='button-primary' type='submit' name='submitWcsBackendOperation' value='$operation'>" . __( $operation,
'woocommerce-wirecard-checkout-seamless' ) . "</button>";
echo "</div>";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
*/

define( 'WOOCOMMERCE_GATEWAY_WCS_NAME', 'WirecardCheckoutSeamless' );
define( 'WOOCOMMERCE_GATEWAY_WCS_VERSION', '1.0.11' );
define( 'WOOCOMMERCE_GATEWAY_WCS_VERSION', '1.0.12' );

/**
* Config class
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Wirecard Checkout Seamless
* Plugin URI: https://github.com/wirecard/woocommerce-wcs
* Description: Wirecard Checkout Seamless plugin for WooCommerce
* Version: 1.0.11
* Version: 1.0.12
* Author: Wirecard
* Author URI: https://www.wirecard.at/
* License: GPL2
Expand Down

0 comments on commit b1bde03

Please sign in to comment.