Skip to content

Commit

Permalink
removing .git in distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
edavism committed May 25, 2015
1 parent 2a354cb commit 4e04f25
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions class-wc-khipu.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* Plugin Name: WooCommerce khipu
* Plugin URI: https://khipu.com
* Description: khipu payment gateway for woocommerce
* Version: 2.0
* Version: 2.1
* Author: khipu
* Author URI: https://khipu.com
*/
Expand Down Expand Up @@ -188,7 +188,7 @@ function get_available_banks()
{
$Khipu = new Khipu();
$Khipu->authenticate($this->receiver_id, $this->secret);
$Khipu->setAgent('woocommerce-khipu-2.0;;'.site_url().';;'.bloginfo('name'));
$Khipu->setAgent('woocommerce-khipu-2.1;;'.site_url().';;'.bloginfo('name'));
$service = $Khipu->loadService('ReceiverBanks');
return $service->consult();
}
Expand Down Expand Up @@ -332,7 +332,7 @@ function generate_khipu_generate_payment($order_id)

$Khipu = new Khipu();
$Khipu->authenticate($this->receiver_id, $this->secret);
$Khipu->setAgent('woocommerce-khipu-2.0;;'.site_url().';;'.bloginfo('name'));
$Khipu->setAgent('woocommerce-khipu-2.1;;'.site_url().';;'.bloginfo('name'));
$create_page_service = $Khipu->loadService('CreatePaymentURL');

$item_names = array();
Expand Down Expand Up @@ -424,7 +424,7 @@ function get_order_from_ipn()
function get_order_from_ipn_1_2() {
$Khipu = new Khipu();
$Khipu->authenticate($this->receiver_id, $this->secret);
$Khipu->setAgent('woocommerce-khipu-2.0;;'.site_url().';;'.bloginfo('name'));
$Khipu->setAgent('woocommerce-khipu-2.1;;'.site_url().';;'.bloginfo('name'));
$service = $Khipu->loadService('VerifyPaymentNotification');
$service->setDataFromPost();
if ($_POST['receiver_id'] != $this->receiver_id) {
Expand All @@ -444,7 +444,7 @@ function get_order_from_ipn_1_2() {
function get_order_from_ipn_1_3() {
$Khipu = new Khipu();
$Khipu->authenticate($this->receiver_id, $this->secret);
$Khipu->setAgent('woocommerce-khipu-2.0;;'.site_url().';;'.bloginfo('name'));
$Khipu->setAgent('woocommerce-khipu-2.1;;'.site_url().';;'.bloginfo('name'));
$service = $Khipu->loadService('GetPaymentNotification');
$service->setDataFromPost();
$response = json_decode($service->consult());
Expand Down
8 changes: 4 additions & 4 deletions class-wc-khipubacs.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* Plugin Name: WooCommerce khipubacs
* Plugin URI: https://khipu.com
* Description: khipu powered direct transfer payment gateway for woocommerce
* Version: 2.0
* Version: 2.1
* Author: khipu
* Author URI: https://khipu.com
*/
Expand Down Expand Up @@ -199,7 +199,7 @@ function generate_khipubacs_submit_button($order_id)

$Khipu = new Khipu();
$Khipu->authenticate($this->receiver_id, $this->secret);
$Khipu->setAgent('woocommerce-khipubacs-2.0;;'.site_url().';;'.bloginfo('name'));
$Khipu->setAgent('woocommerce-khipubacs-2.1;;'.site_url().';;'.bloginfo('name'));
$create_page_service = $Khipu->loadService('CreatePaymentURL');

$item_names = array();
Expand Down Expand Up @@ -278,7 +278,7 @@ function get_order_from_ipn()
function get_order_from_ipn_1_2() {
$Khipu = new Khipu();
$Khipu->authenticate($this->receiver_id, $this->secret);
$Khipu->setAgent('woocommerce-khipubacs-2.0;;'.site_url().';;'.bloginfo('name'));
$Khipu->setAgent('woocommerce-khipubacs-2.1;;'.site_url().';;'.bloginfo('name'));
$service = $Khipu->loadService('VerifyPaymentNotification');
$service->setDataFromPost();
if ($_POST['receiver_id'] != $this->receiver_id) {
Expand All @@ -298,7 +298,7 @@ function get_order_from_ipn_1_2() {
function get_order_from_ipn_1_3() {
$Khipu = new Khipu();
$Khipu->authenticate($this->receiver_id, $this->secret);
$Khipu->setAgent('woocommerce-khipubacs-2.0;;'.site_url().';;'.bloginfo('name'));
$Khipu->setAgent('woocommerce-khipubacs-2.1;;'.site_url().';;'.bloginfo('name'));
$service = $Khipu->loadService('GetPaymentNotification');
$service->setDataFromPost();
$response = json_decode($service->consult());
Expand Down
2 changes: 1 addition & 1 deletion package.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cd ..
rm -rf woocommerce-khipu-gateway woocommerce-khipu-gateway.zip
cp -R woocommerce-khipu woocommerce-khipu-gateway
rm -rf woocommerce-khipu-gateway/.git woocommerce-khipu-gateway/.gitignore woocommerce-khipu-gateway/.gitmodules woocommerce-khipu-gateway/.idea woocommerce-khipu-gateway/.DS_Store woocommerce-khipu-gateway/package.sh
rm -rf woocommerce-khipu-gateway/.git woocommerce-khipu-gateway/.gitignore woocommerce-khipu-gateway/.gitmodules woocommerce-khipu-gateway/.idea woocommerce-khipu-gateway/.DS_Store woocommerce-khipu-gateway/package.sh woocommerce-khipu-gateway/lib/lib-khipu/.git woocommerce-khipu-gateway/lib/lib-khipu/.gitignore woocommerce-khipu-gateway/lib/lib-khipu/.gitattributes
zip -r woocommerce-khipu-gateway.zip woocommerce-khipu-gateway
rm -rf woocommerce-khipu-gateway
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link:
Tags: payment gateway, khipu, woocommerce, chile
Requires at least: 3.3
Tested up to: 4.1
Stable tag: 2.0
Stable tag: 2.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down

0 comments on commit 4e04f25

Please sign in to comment.