Skip to content

Commit

Permalink
closes #38
Browse files Browse the repository at this point in the history
  • Loading branch information
angel cruz committed Dec 8, 2020
1 parent a92cd9d commit a1f86f4
Show file tree
Hide file tree
Showing 16 changed files with 6 additions and 8 deletions.
9 changes: 3 additions & 6 deletions Instapago.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Plugin URI: https://www.behance.net/gallery/37073215/Instapago-Payment-Gateway-for-WooCommerce
* Description: Instapago is a technological solution designed for the market of electronic commerce (eCommerce) in Venezuela and Latin America, with the intention of offering a premium product category, which allows people and companies leverage their expansion capabilities, facilitating payment mechanisms for customers with a friendly integration into systems currently used.
* Text Domain: instapago
* Version: 6.0.1
* Version: 6.0.2
* Author: Angel Cruz
* Author URI: http://angelcruz.dev
* Requires at least: 5.5
Expand Down Expand Up @@ -182,13 +182,13 @@ public function process_payment($order_id)
'CVC' => $cvc, //required
'ExpirationDate' => $expirationDate, //required
'StatusId' => 2, //required
'IP' => $_SERVER[ 'REMOTE_ADDR' ], //required
'IP' => $_SERVER['REMOTE_ADDR'], //required
];

$obj = $this->curlTransaccion($url, $fields);
$result = $this->checkResponseCode($obj);

if ($result[ 'code' ] == 201) {
if ($result['code'] == 201) {
// Payment received and stock has been reduced

$order->payment_complete();
Expand All @@ -212,9 +212,6 @@ public function process_payment($order_id)
update_post_meta($order_id, 'instapago_approval', $result[ 'approval' ]);
update_post_meta($order_id, 'instapago_lote', $result[ 'lote' ]);

// Mark as complete
$order->update_status('completed');

// Reduce stock levels
wc_reduce_stock_levels($order_id);

Expand Down
3 changes: 2 additions & 1 deletion README.md
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
Instapago is a technological solution designed for the market of electronic commerce (eCommerce) in Venezuela and Latin America, with the intention of offering a premium product category, which allows people and companies leverage their expansion capabilities, facilitating payment mechanisms for customers with a friendly integration into systems currently used.


[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/abr4xas/instapago/badges/quality-score.png?b=dev)](https://scrutinizer-ci.com/g/abr4xas/instapago/?branch=dev)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/464890a00bc04d3daec660efdcfc9e9f)](https://www.codacy.com/app/ElBlogDeAbr4xas/instapago?utm_source=github.com&utm_medium=referral&utm_content=abr4xas/instapago&utm_campaign=badger)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/abr4xas/instapago/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/abr4xas/instapago/?branch=master)

---

Expand Down
Empty file modified assets/css/style-dist.css
100755 → 100644
Empty file.
Empty file modified assets/css/style-dist.css.map
100755 → 100644
Empty file.
Empty file modified assets/css/style.css
100755 → 100644
Empty file.
Empty file modified assets/css/style.css.map
100755 → 100644
Empty file.
Empty file modified assets/images/instapago-gateway.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/images/instapago-visa-mastercard.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/js/main-dist.js
100755 → 100644
Empty file.
Empty file modified assets/js/main.js
100755 → 100644
Empty file.
Empty file modified assets/prepros-6.config
100755 → 100644
Empty file.
Empty file modified assets/scss/style.scss
100755 → 100644
Empty file.
Empty file modified includes/admin-options.php
100755 → 100644
Empty file.
Empty file modified includes/payment-fields.php
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Donate link: https://patreon.com/angelcruzdev
Tags: ecommerce, e-commerce, store, sales, sell, shop, cart, checkout, venezuela, instapago, banesco
Requires at least: 5.5
Tested up to: 5.5
Stable tag:6.0.1
Stable tag:6.0.2
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Expand Down
Empty file modified svnignore.txt
100755 → 100644
Empty file.

0 comments on commit a1f86f4

Please sign in to comment.