This repository has been archived by the owner on Nov 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from heidelpay/develop_gitlab
Release 1.5.0
- Loading branch information
Showing
12 changed files
with
197 additions
and
31 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
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
.ui-datepicker { | ||
background: #fff; | ||
font-size:11px; | ||
padding:10px; | ||
border:1px solid #ccc; | ||
} | ||
|
||
.ui-datepicker table { | ||
width:278px; | ||
} | ||
|
||
.ui-datepicker table td { | ||
text-align:center; | ||
} | ||
|
||
.ui-datepicker a { | ||
cursor:pointer; | ||
text-decoration:none; | ||
} | ||
|
||
.ui-datepicker-prev { | ||
} | ||
|
||
.ui-datepicker-next { | ||
float:right; | ||
} | ||
|
||
.ui-datepicker-title { | ||
text-align: center; | ||
font-weight:bold; | ||
} |
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
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
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
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 |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<?php | ||
|
||
/** | ||
* Invoice | ||
* | ||
* WooCommerce payment gateway for Invoice | ||
* | ||
* @license Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. | ||
* @copyright Copyright © 2018-present heidelpay GmbH. All rights reserved. | ||
* | ||
* @link http://dev.heidelpay.com/ | ||
* | ||
* @author Florian Evertz | ||
* | ||
* @package woocommerce-heidelpay | ||
* @category WooCommerce | ||
*/ | ||
|
||
if (!defined('ABSPATH')){ | ||
exit; // Exit if accessed directly | ||
} | ||
|
||
require_once WC_HEIDELPAY_PLUGIN_PATH . DIRECTORY_SEPARATOR . 'includes' . DIRECTORY_SEPARATOR . 'abstracts' . | ||
DIRECTORY_SEPARATOR . 'abstract-wc-heidelpay-payment-gateway.php'; | ||
|
||
use Heidelpay\PhpPaymentApi\PaymentMethods\InvoicePaymentMethod; | ||
|
||
class WC_Gateway_HP_IV extends WC_Heidelpay_Payment_Gateway | ||
{ | ||
public function init_form_fields() | ||
{ | ||
parent::init_form_fields(); | ||
|
||
$this->form_fields['description']['default'] = sprintf( | ||
__('Insert payment data for %s', 'woocommerce-heidelpay'), | ||
$this->name | ||
); | ||
$this->form_fields['instructions']['default'] = __( | ||
'please send the money to IBAN BIC ', | ||
'woocommerce-heidelpay' | ||
); | ||
$this->form_fields['transaction_channel']['default'] = '31HA07BC8142C5A171749A60D979B6E4'; | ||
|
||
$this->form_fields['send_payment_info'] = array( | ||
'title' => __('Payment information mail', 'woocommerce-heidelpay'), | ||
'type' => 'checkbox', | ||
'description' => __( | ||
'Add payment information to e-mail', | ||
'woocommerce-heidelpay' | ||
), | ||
'default' => 'yes', | ||
'desc_tip' => true, | ||
); | ||
} | ||
|
||
/** | ||
* Set the id and PaymentMethod | ||
*/ | ||
protected function setPayMethod() | ||
{ | ||
$this->payMethod = new InvoicePaymentMethod(); | ||
$this->id = 'hp_iv'; | ||
$this->name = __('Invoice', 'woocommerce-heidelpay'); | ||
$this->has_fields = false; | ||
$this->bookingAction = 'authorize'; | ||
} | ||
} |
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
Binary file not shown.
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
Binary file not shown.
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
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