Changeset 3056684
- Timestamp:
- 03/22/2024 09:57:09 AM (22 months ago)
- Location:
- geidea-online-payments/trunk
- Files:
-
- 4 edited
-
class.geidea.php (modified) (1 diff)
-
functions/ReturnHandler.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
wc-geidea.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
geidea-online-payments/trunk/class.geidea.php
r3040351 r3056684 8 8 * @class WC_Geidea 9 9 * @extends WC_Payment_Gateway 10 * @version 3.0. 010 * @version 3.0.1 11 11 * @author Geidea 12 12 */ -
geidea-online-payments/trunk/functions/ReturnHandler.php
r3040351 r3056684 60 60 echo esc_html("Order with id " . $order["merchantReferenceId"] . " not found!"); 61 61 http_response_code(404); 62 die();63 }64 65 //get the order amount66 global $wpdb;67 $order_total = 0;68 $orders_fields = $wpdb->get_results($wpdb->prepare("SELECT * FROM $wpdb->postmeta WHERE post_id = %d", $wc_order->id));69 foreach ($orders_fields as $value) {70 if ($value->meta_key != '_order_total') {71 continue;72 }73 $order_total = $value->meta_value;74 }75 76 // checking on the order amount77 // FIX in case of BNPL amount will have added fee78 $transactions = $order['transactions'];79 foreach ($transactions as $transaction) {80 if (isset($transaction['bnplDetails'])) {81 $amount = $transaction['bnplDetails']['totalAmount'];82 }83 }84 if (85 number_format($order_total, 2, '.', '') != $amount &&86 (empty($wc_order->get_status()) || $wc_order->get_status() != 'failed')87 ) {88 echo esc_html("Invalid order amount!");89 http_response_code(400);90 62 die(); 91 63 } -
geidea-online-payments/trunk/readme.txt
r3040351 r3056684 2 2 3 3 Contributors: geideapg123 4 Version: 3.0. 04 Version: 3.0.1 5 5 Tags: credit card, geidea, Apple Pay, payment, payment for WordPress, payment for woocommerce, payment request, woocommerce 6 6 Requires at least: 6.0.2 7 7 Tested up to: 6.4.2 8 8 Requires PHP: 7.4 9 Stable tag: 3.0. 09 Stable tag: 3.0.1 10 10 License: GPLv3 11 11 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 200 200 = 3.0.0 - 2024-02-24 = 201 201 * Security Fix 202 203 = 3.0.1 - 2024-03-21 = 204 * Order Status updation fix -
geidea-online-payments/trunk/wc-geidea.php
r3040351 r3056684 4 4 Plugin Name: Geidea Online Payments 5 5 Description: Geidea Online Payments. 6 Version: 3.0. 06 Version: 3.0.1 7 7 Author: Geidea 8 8 Author URI: https://geidea.net
Note: See TracChangeset
for help on using the changeset viewer.