Changeset 3115658
- Timestamp:
- 07/10/2024 02:09:21 PM (2 weeks ago)
- Location:
- wc-belluno/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
wc-belluno/trunk/includes/class-wc-belluno-card.php
r3108946 r3115658 621 621 $args = array( 622 622 'body' => json_encode(array( 623 "document" => $document,624 "postal_code" => 623 "document" => $document, 624 "postal_code" => str_replace('-', '', sanitize_text_field($_POST['billing_postcode'])), 625 625 )), 626 626 'headers' => array( … … 641 641 if ($body->valid) { 642 642 wc_add_notice('A transação não pode ser concluída no momento! Tente novamente mais tarde.', 'error'); 643 643 644 return false; 644 645 } … … 892 893 $order = wc_get_order($order_id); 893 894 if ($order->has_status('failed')) { 895 896 897 898 894 899 $this->belluno_add_notice('Ocorreu um erro ao processar seu pagamento: ' . $response->transaction->reason); 895 900 return; … … 902 907 } 903 908 } 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 904 941 } 905 942 … … 1236 1273 protected function belluno_add_notice($message, $type = 'error') 1237 1274 { 1275 1276 1277 1278 1238 1279 return wc_add_notice($message, $type); 1239 1280 } -
wc-belluno/trunk/includes/functions-belluno.php
r3098762 r3115658 249 249 { 250 250 $chosen_payment_method = WC()->session->get('chosen_payment_method'); 251 $installment_number = WC()->session->get('installment_number'); 251 252 if (!is_null(WC()->session->get('installment_number'))) { 253 $installment_number = WC()->session->get('installment_number'); 254 } else { 255 $installment_number = 1; 256 } 257 258 if (!is_null(WC()->session->get('chosen_payment_method'))) { 259 $chosen_payment_method = WC()->session->get('chosen_payment_method'); 260 } else { 261 $chosen_payment_method = ''; 262 } 263 252 264 253 265 if ( … … 291 303 // Add fee with updated amount 292 304 $cart->add_fee($fee_name, $fee_amount, false); 293 } 305 } 294 306 } 295 307 -
wc-belluno/trunk/readme.txt
r3108946 r3115658 100 100 == Changelog == 101 101 102 103 104 105 106 107 108 109 102 110 = v5.0.5 (24/06/2024) = 103 111 * Fix -
wc-belluno/trunk/woocommerce-belluno.php
r3108946 r3115658 4 4 * Plugin Name: Gateway de pagamento Belluno 5 5 * Description: Gateway de pagamento Belluno para WooCommerce. 6 * Version: 5.0. 56 * Version: 5.0. 7 7 * Author: Belluno Digital Bank 8 8 * Author URI: https://belluno.digital/ … … 132 132 include_once 'includes/class-wc-belluno-bankslip.php'; 133 133 include_once 'includes/class-wc-belluno-pix.php'; 134 134 135 } 135 136 /**
Note: See TracChangeset
for help on using the changeset viewer.