-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dc86872
commit b0533d4
Showing
18 changed files
with
1,593 additions
and
1,051 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 |
---|---|---|
@@ -1,19 +1,19 @@ | ||
[![Build Status](https://travis-ci.org/wallee-payment/woocommerce-subscription.svg?branch=master)](https://travis-ci.org/wallee-payment/woocommerce-subscription) | ||
|
||
# wallee Woocommerce Subscriptions | ||
This repository contains the wallee WooCommerce Subscriptions addon that enables WooCommerce Subscriptions to be processed with [wallee](https://www.wallee.com). | ||
# wallee Subscriptions | ||
This repository contains the wallee Subscriptions addon that enables WooCommerce Subscriptions to be processed with [wallee](https://www.wallee.com). | ||
|
||
##### To use this extension, a [wallee](https://app-wallee.com/user/signup) account is required. | ||
|
||
## Requirements | ||
|
||
* [Wordpress](https://wordpress.org/) 4.4 or later. | ||
* [Woocommerce](https://woocommerce.com/) 3.0 or later | ||
* [wallee Woocommerce Plugin](../../../woocommerce/) 1.2 or later | ||
* [wallee Plugin](../../../woocommerce/) 1.2 or later | ||
* [Woocommerce Subscriptions Plugin](https://woocommerce.com/products/woocommerce-subscriptions/) 2.2 or later | ||
* [PHP](http://php.net/) 5.6 or later | ||
|
||
## License | ||
|
||
Please see the [license file](https://github.com/wallee-payment/woocommerce-subscription/blob/1.0.14/LICENSE) for more information. | ||
Please see the [license file](https://github.com/wallee-payment/woocommerce-subscription/blob/1.1.1/LICENSE) for more information. | ||
|
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
42 changes: 29 additions & 13 deletions
42
includes/admin/class-wc-wallee-subscription-admin-notices.php
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,25 +1,41 @@ | ||
<?php | ||
if (!defined('ABSPATH')) { | ||
exit(); | ||
} | ||
/** | ||
* wallee WooCommerce | ||
* | ||
* This WooCommerce plugin enables to process payments with wallee (https://www.wallee.com). | ||
* WC_Wallee_Subscription_Admin_Notices Class | ||
* | ||
* Wallee | ||
* This plugin will add support for process WooCommerce Subscriptions with wallee | ||
* | ||
* @author customweb GmbH (http://www.customweb.com/) | ||
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Software License (ASL 2.0) | ||
* @category Class | ||
* @package Wallee | ||
* @author wallee AG (http://www.wallee.com/) | ||
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Software License (ASL 2.0) | ||
*/ | ||
|
||
if ( ! defined( 'ABSPATH' ) ) { | ||
exit(); | ||
} | ||
|
||
/** | ||
* WC Wallee Subscription Admin Notices class | ||
*/ | ||
class WC_Wallee_Subscription_Admin_Notices { | ||
|
||
public static function migration_failed_notices(){ | ||
require_once WC_WALLEE_SUBSCRIPTION_ABSPATH.'views/admin-notices/migration-failed.php'; | ||
/** | ||
* Migration failed notices. | ||
* | ||
* @return void | ||
*/ | ||
public static function migration_failed_notices() { | ||
require_once WC_WALLEE_SUBSCRIPTION_ABSPATH . 'views/admin-notices/migration-failed.php'; | ||
} | ||
|
||
public static function plugin_deactivated(){ | ||
require_once WC_WALLEE_SUBSCRIPTION_ABSPATH.'views/admin-notices/plugin-deactivated.php'; | ||
|
||
/** | ||
* Plugin deactivated. | ||
* | ||
* @return void | ||
*/ | ||
public static function plugin_deactivated() { | ||
require_once WC_WALLEE_SUBSCRIPTION_ABSPATH . 'views/admin-notices/plugin-deactivated.php'; | ||
} | ||
} | ||
} |
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
Oops, something went wrong.