Plugin Directory

Changeset 3352725


Ignore:
Timestamp:
08/29/2025 03:35:59 PM (6 months ago)
Author:
flutterwave
Message:

Update to version 3.1.0 from GitHub

Location:
rave-woocommerce-payment-gateway
Files:
4 added
16 edited
1 copied

Legend:

Unmodified
Added
Removed
  • rave-woocommerce-payment-gateway/tags/3.1.0/changelog.txt

    r3220062 r3352725  
    11== Changelog ==
     2= 3.1.0 =
     3* Added: Set Minimum Support to WooCommerce 6.9 or greater.
     4* Added: Flutterwave Logger instance using wc_logger.
    25= 2.3.6 =
    36* Fixed: Dynamic Adjustment to Custom Permalink Set by Merchant.
  • rave-woocommerce-payment-gateway/tags/3.1.0/i18n/languages/rave-woocommerce-payment-gateway.pot

    r3220062 r3352725  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Flutterwave WooCommerce 2.3.6\n"
     5"Project-Id-Version: Flutterwave WooCommerce 3.1.0\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/rave-woocommerce-payment-gateway\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2025-01-10T09:07:15+00:00\n"
     12"POT-Creation-Date: 2025-08-29T15:34:09+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    14 "X-Generator: WP-CLI 2.11.0\n"
     14"X-Generator: WP-CLI 2.12.0\n"
    1515"X-Domain: rave-woocommerce-payment-gateway\n"
    1616
     
    1818#. Translators: %s Plugin name.
    1919#: rave-woocommerce-payment-gateway.php
    20 #: includes/class-flw-wc-payment-gateway.php:227
     20#: includes/class-flw-wc-payment-gateway.php:230
    2121#: includes/views/html-admin-missing-woocommerce.php:15
    2222msgid "Flutterwave WooCommerce"
     
    4343msgstr ""
    4444
    45 #: includes/blocks/class-flutterwave-wc-gateway-blocks-support.php:156
     45#: includes/blocks/class-flutterwave-wc-gateway-blocks-support.php:155
    4646msgid "Visa"
    4747msgstr ""
    4848
    49 #: includes/blocks/class-flutterwave-wc-gateway-blocks-support.php:160
     49#: includes/blocks/class-flutterwave-wc-gateway-blocks-support.php:159
    5050msgid "American Express"
    5151msgstr ""
    5252
    53 #: includes/blocks/class-flutterwave-wc-gateway-blocks-support.php:164
     53#: includes/blocks/class-flutterwave-wc-gateway-blocks-support.php:163
    5454msgid "Mastercard"
    5555msgstr ""
    5656
    57 #: includes/blocks/class-flutterwave-wc-gateway-blocks-support.php:171
     57#: includes/blocks/class-flutterwave-wc-gateway-blocks-support.php:170
    5858msgctxt "Name of credit card"
    5959msgid "Discover"
    6060msgstr ""
    6161
    62 #: includes/blocks/class-flutterwave-wc-gateway-blocks-support.php:175
     62#: includes/blocks/class-flutterwave-wc-gateway-blocks-support.php:174
    6363msgid "JCB"
    6464msgstr ""
    6565
    66 #: includes/blocks/class-flutterwave-wc-gateway-blocks-support.php:179
     66#: includes/blocks/class-flutterwave-wc-gateway-blocks-support.php:178
    6767msgid "Diners"
    6868msgstr ""
     
    138138#. translators: 1: payment reference 2: transaction reference
    139139#: includes/class-flw-wc-payment-gateway-subscriptions.php:163
     140#, php-format
    140141msgid "Payment via Flutterwave successful (Payment Reference: %1$s, Transaction Reference: %2$s)"
    141142msgstr ""
    142143
    143 #: includes/class-flw-wc-payment-gateway.php:152
     144#: includes/class-flw-wc-payment-gateway.php:154
    144145msgid "allows you to accept payment from cards and bank accounts in multiple currencies. You can also accept payment offline via USSD and POS."
    145146msgstr ""
    146147
    147 #: includes/class-flw-wc-payment-gateway.php:231
     148#: includes/class-flw-wc-payment-gateway.php:234
    148149msgid "Webhook Instruction"
    149150msgstr ""
    150151
    151 #: includes/class-flw-wc-payment-gateway.php:235
     152#: includes/class-flw-wc-payment-gateway.php:238
    152153msgid "Please copy this webhook URL and paste on the webhook section on your dashboard"
    153154msgstr ""
    154155
    155 #: includes/class-flw-wc-payment-gateway.php:256
     156#: includes/class-flw-wc-payment-gateway.php:259
    156157msgid "Enable/Disable"
    157158msgstr ""
    158159
    159 #: includes/class-flw-wc-payment-gateway.php:257
     160#: includes/class-flw-wc-payment-gateway.php:260
    160161msgid "Enable Flutterwave"
    161162msgstr ""
    162163
    163 #: includes/class-flw-wc-payment-gateway.php:259
     164#: includes/class-flw-wc-payment-gateway.php:262
    164165msgid "Enable Flutterwave as a payment option on the checkout page"
    165166msgstr ""
    166167
    167 #: includes/class-flw-wc-payment-gateway.php:264
     168#: includes/class-flw-wc-payment-gateway.php:267
    168169msgid "Enter Secret Hash"
    169170msgstr ""
    170171
    171 #: includes/class-flw-wc-payment-gateway.php:266
     172#: includes/class-flw-wc-payment-gateway.php:269
    172173msgid "Please change from default hash and ensure that <b>SECRET HASH</b> is the same with the one on your Flutterwave dashboard"
    173174msgstr ""
    174175
    175 #: includes/class-flw-wc-payment-gateway.php:270
     176#: includes/class-flw-wc-payment-gateway.php:273
    176177msgid "Payment method title"
    177178msgstr ""
    178179
    179 #: includes/class-flw-wc-payment-gateway.php:272
    180 #: includes/class-flw-wc-payment-gateway.php:278
     180#: includes/class-flw-wc-payment-gateway.php:275
     181#: includes/class-flw-wc-payment-gateway.php:281
    181182msgid "Optional"
    182183msgstr ""
    183184
    184 #: includes/class-flw-wc-payment-gateway.php:276
     185#: includes/class-flw-wc-payment-gateway.php:279
    185186msgid "Payment method description"
    186187msgstr ""
    187188
    188 #: includes/class-flw-wc-payment-gateway.php:282
     189#: includes/class-flw-wc-payment-gateway.php:285
    189190msgid "Test Public Key"
    190191msgstr ""
    191192
    192 #: includes/class-flw-wc-payment-gateway.php:284
     193#: includes/class-flw-wc-payment-gateway.php:287
    193194msgid "Required! Enter your Flutterwave test public key here"
    194195msgstr ""
    195196
    196 #: includes/class-flw-wc-payment-gateway.php:288
     197#: includes/class-flw-wc-payment-gateway.php:291
    197198msgid "Test Secret Key"
    198199msgstr ""
    199200
    200 #: includes/class-flw-wc-payment-gateway.php:290
     201#: includes/class-flw-wc-payment-gateway.php:293
    201202msgid "Required! Enter your Flutterwave test secret key here"
    202203msgstr ""
    203204
    204 #: includes/class-flw-wc-payment-gateway.php:294
     205#: includes/class-flw-wc-payment-gateway.php:297
    205206msgid "Live Public Key"
    206207msgstr ""
    207208
    208 #: includes/class-flw-wc-payment-gateway.php:296
     209#: includes/class-flw-wc-payment-gateway.php:299
    209210msgid "Required! Enter your Flutterwave live public key here"
    210211msgstr ""
    211212
    212 #: includes/class-flw-wc-payment-gateway.php:300
     213#: includes/class-flw-wc-payment-gateway.php:303
    213214msgid "Live Secret Key"
    214215msgstr ""
    215216
    216 #: includes/class-flw-wc-payment-gateway.php:302
     217#: includes/class-flw-wc-payment-gateway.php:305
    217218msgid "Required! Enter your Flutterwave live secret key here"
    218219msgstr ""
    219220
    220 #: includes/class-flw-wc-payment-gateway.php:306
     221#: includes/class-flw-wc-payment-gateway.php:309
    221222msgid "Payment Style on checkout"
    222223msgstr ""
    223224
    224 #: includes/class-flw-wc-payment-gateway.php:308
     225#: includes/class-flw-wc-payment-gateway.php:311
    225226msgid "Optional - Choice of payment style to use. Either inline or redirect. (Default: inline)"
    226227msgstr ""
    227228
    228 #: includes/class-flw-wc-payment-gateway.php:310
     229#: includes/class-flw-wc-payment-gateway.php:313
    229230msgctxt "payment_style"
    230231msgid "Popup(Keep payment experience on the website)"
    231232msgstr ""
    232233
    233 #: includes/class-flw-wc-payment-gateway.php:311
     234#: includes/class-flw-wc-payment-gateway.php:314
    234235msgctxt "payment_style"
    235236msgid "Redirect"
    236237msgstr ""
    237238
    238 #: includes/class-flw-wc-payment-gateway.php:316
     239#: includes/class-flw-wc-payment-gateway.php:319
    239240msgid "Autocomplete Order After Payment"
    240241msgstr ""
    241242
    242 #: includes/class-flw-wc-payment-gateway.php:317
     243#: includes/class-flw-wc-payment-gateway.php:320
    243244msgid "Autocomplete Order"
    244245msgstr ""
    245246
    246 #: includes/class-flw-wc-payment-gateway.php:320
     247#: includes/class-flw-wc-payment-gateway.php:323
    247248msgid "If enabled, the order will be marked as complete after successful payment"
    248249msgstr ""
    249250
    250 #: includes/class-flw-wc-payment-gateway.php:325
     251#: includes/class-flw-wc-payment-gateway.php:328
    251252msgid "Payment Options"
    252253msgstr ""
    253254
    254 #: includes/class-flw-wc-payment-gateway.php:327
     255#: includes/class-flw-wc-payment-gateway.php:330
    255256msgid "Optional - Choice of payment method to use. Card, Account etc."
    256257msgstr ""
    257258
    258 #: includes/class-flw-wc-payment-gateway.php:329
     259#: includes/class-flw-wc-payment-gateway.php:332
    259260msgctxt "payment_options"
    260261msgid "All"
    261262msgstr ""
    262263
    263 #: includes/class-flw-wc-payment-gateway.php:330
     264#: includes/class-flw-wc-payment-gateway.php:333
    264265msgctxt "payment_options"
    265266msgid "Card Only"
    266267msgstr ""
    267268
    268 #: includes/class-flw-wc-payment-gateway.php:331
     269#: includes/class-flw-wc-payment-gateway.php:334
    269270msgctxt "payment_options"
    270271msgid "Account Only"
    271272msgstr ""
    272273
    273 #: includes/class-flw-wc-payment-gateway.php:332
     274#: includes/class-flw-wc-payment-gateway.php:335
    274275msgctxt "payment_options"
    275276msgid "USSD Only"
    276277msgstr ""
    277278
    278 #: includes/class-flw-wc-payment-gateway.php:333
     279#: includes/class-flw-wc-payment-gateway.php:336
    279280msgctxt "payment_options"
    280281msgid "QR Only"
    281282msgstr ""
    282283
    283 #: includes/class-flw-wc-payment-gateway.php:334
     284#: includes/class-flw-wc-payment-gateway.php:337
    284285msgctxt "payment_options"
    285286msgid "Mpesa Only"
    286287msgstr ""
    287288
    288 #: includes/class-flw-wc-payment-gateway.php:335
     289#: includes/class-flw-wc-payment-gateway.php:338
    289290msgctxt "payment_options"
    290291msgid "Ghana MM Only"
    291292msgstr ""
    292293
    293 #: includes/class-flw-wc-payment-gateway.php:336
     294#: includes/class-flw-wc-payment-gateway.php:339
    294295msgctxt "payment_options"
    295296msgid "Rwanda MM Only"
    296297msgstr ""
    297298
    298 #: includes/class-flw-wc-payment-gateway.php:337
     299#: includes/class-flw-wc-payment-gateway.php:340
    299300msgctxt "payment_options"
    300301msgid "Zambia MM Only"
    301302msgstr ""
    302303
    303 #: includes/class-flw-wc-payment-gateway.php:338
     304#: includes/class-flw-wc-payment-gateway.php:341
    304305msgctxt "payment_options"
    305306msgid "Tanzania MM Only"
    306307msgstr ""
    307308
    308 #: includes/class-flw-wc-payment-gateway.php:343
     309#: includes/class-flw-wc-payment-gateway.php:346
    309310msgid "Mode"
    310311msgstr ""
    311312
    312 #: includes/class-flw-wc-payment-gateway.php:344
     313#: includes/class-flw-wc-payment-gateway.php:347
    313314msgid "Live mode"
    314315msgstr ""
    315316
    316 #: includes/class-flw-wc-payment-gateway.php:346
     317#: includes/class-flw-wc-payment-gateway.php:349
    317318msgid "Check this box if you're using your live keys."
    318319msgstr ""
    319320
    320 #: includes/class-flw-wc-payment-gateway.php:351
    321 #: includes/class-flw-wc-payment-gateway.php:352
     321#: includes/class-flw-wc-payment-gateway.php:354
     322#: includes/class-flw-wc-payment-gateway.php:355
    322323msgid "Disable Logging"
    323324msgstr ""
    324325
    325 #: includes/class-flw-wc-payment-gateway.php:354
     326#: includes/class-flw-wc-payment-gateway.php:357
    326327msgid "Check this box if you're disabling logging."
    327328msgstr ""
    328329
    329 #: includes/class-flw-wc-payment-gateway.php:359
    330 #: includes/class-flw-wc-payment-gateway.php:360
     330#: includes/class-flw-wc-payment-gateway.php:362
     331#: includes/class-flw-wc-payment-gateway.php:363
    331332msgid "Disable Barter"
    332333msgstr ""
    333334
    334 #: includes/class-flw-wc-payment-gateway.php:362
     335#: includes/class-flw-wc-payment-gateway.php:365
    335336msgid "Check the box if you want to disable barter."
    336337msgstr ""
    337338
    338339#. translators: %s: url
    339 #: includes/class-flw-wc-payment-gateway.php:453
     340#: includes/class-flw-wc-payment-gateway.php:456
     341#, php-format
    340342msgid "Flutterwave is enabled, but the API keys are not set. Please <a href=\"%s\">set your Flutterwave API keys</a> to be able to accept payments."
    341343msgstr ""
    342344
    343345#. translators: %s: shop cart url
    344 #: includes/class-flw-wc-payment-gateway.php:490
     346#: includes/class-flw-wc-payment-gateway.php:493
     347#, php-format
    345348msgid "Sorry, your session has expired. <a href=\"%s\" class=\"wc-backward\">Return to shop</a>"
    346349msgstr ""
    347350
    348 #: includes/class-flw-wc-payment-gateway.php:504
     351#: includes/class-flw-wc-payment-gateway.php:507
    349352msgid "We were unable to process your order, please try again."
    350353msgstr ""
    351354
    352 #: includes/class-flw-wc-payment-gateway.php:579
     355#: includes/class-flw-wc-payment-gateway.php:582
    353356msgid "Order Payment"
    354357msgstr ""
     
    360363#. translators: $1. Minimum WooCommerce version. $2. Current WooCommerce version.
    361364#: includes/notices/class-flw-wc-payment-gateway-notices.php:32
     365#, php-format
    362366msgid "Flutterwave WooCommerce requires WooCommerce %1$s or greater to be installed and active. kindly upgrade to a higher version of WooCommerce or downgrade to a lower version of Flutterwave WooCommerce that supports WooCommerce version %2$s."
    363367msgstr ""
     
    365369#. Translators: %s Plugin name.
    366370#: includes/views/html-admin-missing-woocommerce.php:15
     371#, php-format
    367372msgid "%s requires WooCommerce to be installed and activated in order to serve updates."
    368373msgstr ""
  • rave-woocommerce-payment-gateway/tags/3.1.0/includes/blocks/class-flutterwave-wc-gateway-blocks-support.php

    r3027434 r3352725  
    5151                require_once dirname( FLW_WC_PLUGIN_FILE ) . '/includes/class-flw-wc-payment-gateway.php';
    5252            }
     53        }
    5354
    54             $this->gateway = new FLW_WC_Payment_Gateway();
    55         } else {
    56             $gateways      = WC()->payment_gateways->payment_gateways();
    57             $this->gateway = $gateways[ $this->name ];
    58         }
     55        $this->gateway = new FLW_WC_Payment_Gateway();
    5956    }
    6057
     
    7168                return false;
    7269            }
     70
     71            $this->gateway = $gateways[ $this->name ];
    7372        }
    7473
  • rave-woocommerce-payment-gateway/tags/3.1.0/includes/class-flutterwave.php

    r3220062 r3352725  
    1919     * @var string
    2020     */
    21     public string $version = '2.3.6';
     21    public string $version = '3.1.0';
    2222
    2323    /**
  • rave-woocommerce-payment-gateway/tags/3.1.0/includes/class-flw-wc-payment-gateway.php

    r3220062 r3352725  
    2626require_once __DIR__ . '/client/class-flw-wc-payment-gateway-request.php';
    2727require_once __DIR__ . '/client/class-flw-wc-payment-gateway-sdk.php';
     28require_once __DIR__ . '/util/class-flutterwave-logger.php';
    2829
    2930use Flutterwave\WooCommerce\Client\Flw_WC_Payment_Gateway_Request;
    3031use Flutterwave\WooCommerce\Client\FLW_WC_Payment_Gateway_Sdk as FlwSdk;
    3132use FLW_WC_Payment_Gateway_Event_Handler as FlwEventHandler;
     33use Flutterwave\WooCommerce\Util\Flutterwave_Logger;
    3234
    3335/**
     
    9395     * Logger
    9496     *
    95      * @var WC_Logger the logger
    96      */
    97     private WC_Logger $logger;
     97     * @var Flutterwave_Logger the logger
     98     */
     99    private Flutterwave_Logger $logger;
    98100    /**
    99101     * Flutterwave Sdk
     
    205207        }
    206208
    207         $this->sdk = new FlwSdk( $this->secret_key, self::$log_enabled );
     209        $this->logger = Flutterwave_Logger::instance();
     210        $this->sdk    = new FlwSdk( $this->secret_key, self::$log_enabled );
    208211
    209212        add_action( 'wp_enqueue_scripts', array( $this, 'payment_scripts' ) );
     
    594597     */
    595598    public function flw_verify_payment() {
    596         $public_key     = $this->public_key;
    597         $secret_key     = $this->secret_key;
    598         $logging_option = $this->logging_option;
    599         $sdk            = $this->sdk;
     599        $sdk = $this->sdk;
    600600
    601601        if ( ! isset( $_GET['_wpnonce'] ) && ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_GET['_wpnonce'] ) ) ) ) {
    602602            if ( isset( $_GET['status'] ) && 'cancelled' === $_GET['status'] ) {
     603                $this->logger->info( 'transaction cancelled by the customer.' );
    603604                $sdk->set_event_handler( new FlwEventHandler( $order ) )->cancel_payment( $txn_ref );
    604605                header( 'Location: ' . wc_get_cart_url() );
     
    614615
    615616            if ( isset( $_GET['status'] ) && 'cancelled' === $_GET['status'] ) {
     617                $this->logger->info( 'transaction cancelled by the customer.' );
    616618                $sdk->set_event_handler( new FlwEventHandler( $order ) )->cancel_payment( $txn_ref );
    617619                header( 'Location: ' . wc_get_cart_url() );
     
    631633     */
    632634    public function flutterwave_webhooks() {
    633         $public_key     = $this->public_key;
    634         $secret_key     = $this->secret_key;
    635         $logging_option = $this->logging_option;
    636         $sdk            = $this->sdk;
     635        $sdk = $this->sdk;
    637636
    638637        $event = file_get_contents( 'php://input' );
     
    648647
    649648        if ( ! $signature ) {
     649            $this->logger->info( 'Faudulent Webhook Notification Attempt [Access Redirected]' );
    650650            // redirect to the home page.
    651651            wp_safe_redirect( home_url() );
     
    656656
    657657        if ( $signature !== $local_signature ) {
     658            $this->logger->info( 'Faudulent Webhook Notification Attempt [Access Restricted]' );
    658659            wp_send_json(
    659660                array(
     
    666667
    667668        http_response_code( 200 );
     669        $this->logger->info( 'Webhook recieved: ' . $event );
    668670        $event = json_decode( $event );
    669671
     
    679681
    680682        if ( 'test_assess' === $event->event ) {
     683            $this->logger->info( 'Flutterwave Webhook Testing Successful.' );
    681684            wp_send_json(
    682685                array(
     
    696699            // check if transaction reference starts with WOOC on hpos enabled.
    697700            if ( substr( $event_data->tx_ref, 0, 4 ) !== 'WOOC' ) {
     701                $this->logger->info( 'Attempt to verifiy a transaction not produced by the merchants store.' );
    698702                wp_send_json(
    699703                    array(
  • rave-woocommerce-payment-gateway/tags/3.1.0/includes/client/class-flw-wc-payment-gateway-sdk.php

    r2988222 r3352725  
    2323
    2424require_once __DIR__ . '/class-flw-wc-payment-gateway-client.php';
     25require_once __DIR__ . '/../util/class-flutterwave-logger.php';
    2526
    2627/**
  • rave-woocommerce-payment-gateway/tags/3.1.0/rave-woocommerce-payment-gateway.php

    r3220062 r3352725  
    44 * Plugin URI: https://developer.flutterwave.com/
    55 * Description: Official WooCommerce payment gateway for Flutterwave.
    6  * Version: 2.3.6
     6 * Version: 3.1.0
    77 * Author: Flutterwave Developers
    88 * Author URI: http://flutterwave.com/us
  • rave-woocommerce-payment-gateway/tags/3.1.0/readme.txt

    r3220062 r3352725  
    44Requires at least: 3.1
    55Tested up to: 6.7.1
    6 Stable tag: 2.3.6
     6Stable tag: 3.1.0
    77License: MIT
    88License URI: https://github.com/Flutterwave/Woocommerce/blob/master/LICENSE
     
    1212== Description ==
    1313
    14 Accept Credit card, Debit card and Bank account payment directly on your store with the official Flutterwave Plugin for WooCommerce.
     14Accept Credit card, Debit card and Bank account payment directly on your store with the official Flutterwave Plugin for WooCommerce. This plugin supports WooCommerce Version 6.9 or greater. For WooCommerce Version 6.8 or lower please install Flutterwave WooCommerce Version (2.3.6 or lower) of the plugin [here](https://wordpress.org/plugins/rave-woocommerce-payment-gateway/advanced/) at the section update advanced options.
    1515
    1616= Plugin Features =
     
    2323
    24241. Flutterwave for business [API Keys](https://developer.flutterwave.com/docs/integration-guides/authentication)
    25 2. [WooCommerce](https://woocommerce.com/)
     252. [WooCommerce](https://woocommerce.com/) version: >= 6.9
    26266. Supported PHP version: 7.4.0 - 8.1.0
    2727
  • rave-woocommerce-payment-gateway/trunk/changelog.txt

    r3220062 r3352725  
    11== Changelog ==
     2= 3.1.0 =
     3* Added: Set Minimum Support to WooCommerce 6.9 or greater.
     4* Added: Flutterwave Logger instance using wc_logger.
    25= 2.3.6 =
    36* Fixed: Dynamic Adjustment to Custom Permalink Set by Merchant.
  • rave-woocommerce-payment-gateway/trunk/i18n/languages/rave-woocommerce-payment-gateway.pot

    r3220062 r3352725  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Flutterwave WooCommerce 2.3.6\n"
     5"Project-Id-Version: Flutterwave WooCommerce 3.1.0\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/rave-woocommerce-payment-gateway\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2025-01-10T09:07:15+00:00\n"
     12"POT-Creation-Date: 2025-08-29T15:34:09+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    14 "X-Generator: WP-CLI 2.11.0\n"
     14"X-Generator: WP-CLI 2.12.0\n"
    1515"X-Domain: rave-woocommerce-payment-gateway\n"
    1616
     
    1818#. Translators: %s Plugin name.
    1919#: rave-woocommerce-payment-gateway.php
    20 #: includes/class-flw-wc-payment-gateway.php:227
     20#: includes/class-flw-wc-payment-gateway.php:230
    2121#: includes/views/html-admin-missing-woocommerce.php:15
    2222msgid "Flutterwave WooCommerce"
     
    4343msgstr ""
    4444
    45 #: includes/blocks/class-flutterwave-wc-gateway-blocks-support.php:156
     45#: includes/blocks/class-flutterwave-wc-gateway-blocks-support.php:155
    4646msgid "Visa"
    4747msgstr ""
    4848
    49 #: includes/blocks/class-flutterwave-wc-gateway-blocks-support.php:160
     49#: includes/blocks/class-flutterwave-wc-gateway-blocks-support.php:159
    5050msgid "American Express"
    5151msgstr ""
    5252
    53 #: includes/blocks/class-flutterwave-wc-gateway-blocks-support.php:164
     53#: includes/blocks/class-flutterwave-wc-gateway-blocks-support.php:163
    5454msgid "Mastercard"
    5555msgstr ""
    5656
    57 #: includes/blocks/class-flutterwave-wc-gateway-blocks-support.php:171
     57#: includes/blocks/class-flutterwave-wc-gateway-blocks-support.php:170
    5858msgctxt "Name of credit card"
    5959msgid "Discover"
    6060msgstr ""
    6161
    62 #: includes/blocks/class-flutterwave-wc-gateway-blocks-support.php:175
     62#: includes/blocks/class-flutterwave-wc-gateway-blocks-support.php:174
    6363msgid "JCB"
    6464msgstr ""
    6565
    66 #: includes/blocks/class-flutterwave-wc-gateway-blocks-support.php:179
     66#: includes/blocks/class-flutterwave-wc-gateway-blocks-support.php:178
    6767msgid "Diners"
    6868msgstr ""
     
    138138#. translators: 1: payment reference 2: transaction reference
    139139#: includes/class-flw-wc-payment-gateway-subscriptions.php:163
     140#, php-format
    140141msgid "Payment via Flutterwave successful (Payment Reference: %1$s, Transaction Reference: %2$s)"
    141142msgstr ""
    142143
    143 #: includes/class-flw-wc-payment-gateway.php:152
     144#: includes/class-flw-wc-payment-gateway.php:154
    144145msgid "allows you to accept payment from cards and bank accounts in multiple currencies. You can also accept payment offline via USSD and POS."
    145146msgstr ""
    146147
    147 #: includes/class-flw-wc-payment-gateway.php:231
     148#: includes/class-flw-wc-payment-gateway.php:234
    148149msgid "Webhook Instruction"
    149150msgstr ""
    150151
    151 #: includes/class-flw-wc-payment-gateway.php:235
     152#: includes/class-flw-wc-payment-gateway.php:238
    152153msgid "Please copy this webhook URL and paste on the webhook section on your dashboard"
    153154msgstr ""
    154155
    155 #: includes/class-flw-wc-payment-gateway.php:256
     156#: includes/class-flw-wc-payment-gateway.php:259
    156157msgid "Enable/Disable"
    157158msgstr ""
    158159
    159 #: includes/class-flw-wc-payment-gateway.php:257
     160#: includes/class-flw-wc-payment-gateway.php:260
    160161msgid "Enable Flutterwave"
    161162msgstr ""
    162163
    163 #: includes/class-flw-wc-payment-gateway.php:259
     164#: includes/class-flw-wc-payment-gateway.php:262
    164165msgid "Enable Flutterwave as a payment option on the checkout page"
    165166msgstr ""
    166167
    167 #: includes/class-flw-wc-payment-gateway.php:264
     168#: includes/class-flw-wc-payment-gateway.php:267
    168169msgid "Enter Secret Hash"
    169170msgstr ""
    170171
    171 #: includes/class-flw-wc-payment-gateway.php:266
     172#: includes/class-flw-wc-payment-gateway.php:269
    172173msgid "Please change from default hash and ensure that <b>SECRET HASH</b> is the same with the one on your Flutterwave dashboard"
    173174msgstr ""
    174175
    175 #: includes/class-flw-wc-payment-gateway.php:270
     176#: includes/class-flw-wc-payment-gateway.php:273
    176177msgid "Payment method title"
    177178msgstr ""
    178179
    179 #: includes/class-flw-wc-payment-gateway.php:272
    180 #: includes/class-flw-wc-payment-gateway.php:278
     180#: includes/class-flw-wc-payment-gateway.php:275
     181#: includes/class-flw-wc-payment-gateway.php:281
    181182msgid "Optional"
    182183msgstr ""
    183184
    184 #: includes/class-flw-wc-payment-gateway.php:276
     185#: includes/class-flw-wc-payment-gateway.php:279
    185186msgid "Payment method description"
    186187msgstr ""
    187188
    188 #: includes/class-flw-wc-payment-gateway.php:282
     189#: includes/class-flw-wc-payment-gateway.php:285
    189190msgid "Test Public Key"
    190191msgstr ""
    191192
    192 #: includes/class-flw-wc-payment-gateway.php:284
     193#: includes/class-flw-wc-payment-gateway.php:287
    193194msgid "Required! Enter your Flutterwave test public key here"
    194195msgstr ""
    195196
    196 #: includes/class-flw-wc-payment-gateway.php:288
     197#: includes/class-flw-wc-payment-gateway.php:291
    197198msgid "Test Secret Key"
    198199msgstr ""
    199200
    200 #: includes/class-flw-wc-payment-gateway.php:290
     201#: includes/class-flw-wc-payment-gateway.php:293
    201202msgid "Required! Enter your Flutterwave test secret key here"
    202203msgstr ""
    203204
    204 #: includes/class-flw-wc-payment-gateway.php:294
     205#: includes/class-flw-wc-payment-gateway.php:297
    205206msgid "Live Public Key"
    206207msgstr ""
    207208
    208 #: includes/class-flw-wc-payment-gateway.php:296
     209#: includes/class-flw-wc-payment-gateway.php:299
    209210msgid "Required! Enter your Flutterwave live public key here"
    210211msgstr ""
    211212
    212 #: includes/class-flw-wc-payment-gateway.php:300
     213#: includes/class-flw-wc-payment-gateway.php:303
    213214msgid "Live Secret Key"
    214215msgstr ""
    215216
    216 #: includes/class-flw-wc-payment-gateway.php:302
     217#: includes/class-flw-wc-payment-gateway.php:305
    217218msgid "Required! Enter your Flutterwave live secret key here"
    218219msgstr ""
    219220
    220 #: includes/class-flw-wc-payment-gateway.php:306
     221#: includes/class-flw-wc-payment-gateway.php:309
    221222msgid "Payment Style on checkout"
    222223msgstr ""
    223224
    224 #: includes/class-flw-wc-payment-gateway.php:308
     225#: includes/class-flw-wc-payment-gateway.php:311
    225226msgid "Optional - Choice of payment style to use. Either inline or redirect. (Default: inline)"
    226227msgstr ""
    227228
    228 #: includes/class-flw-wc-payment-gateway.php:310
     229#: includes/class-flw-wc-payment-gateway.php:313
    229230msgctxt "payment_style"
    230231msgid "Popup(Keep payment experience on the website)"
    231232msgstr ""
    232233
    233 #: includes/class-flw-wc-payment-gateway.php:311
     234#: includes/class-flw-wc-payment-gateway.php:314
    234235msgctxt "payment_style"
    235236msgid "Redirect"
    236237msgstr ""
    237238
    238 #: includes/class-flw-wc-payment-gateway.php:316
     239#: includes/class-flw-wc-payment-gateway.php:319
    239240msgid "Autocomplete Order After Payment"
    240241msgstr ""
    241242
    242 #: includes/class-flw-wc-payment-gateway.php:317
     243#: includes/class-flw-wc-payment-gateway.php:320
    243244msgid "Autocomplete Order"
    244245msgstr ""
    245246
    246 #: includes/class-flw-wc-payment-gateway.php:320
     247#: includes/class-flw-wc-payment-gateway.php:323
    247248msgid "If enabled, the order will be marked as complete after successful payment"
    248249msgstr ""
    249250
    250 #: includes/class-flw-wc-payment-gateway.php:325
     251#: includes/class-flw-wc-payment-gateway.php:328
    251252msgid "Payment Options"
    252253msgstr ""
    253254
    254 #: includes/class-flw-wc-payment-gateway.php:327
     255#: includes/class-flw-wc-payment-gateway.php:330
    255256msgid "Optional - Choice of payment method to use. Card, Account etc."
    256257msgstr ""
    257258
    258 #: includes/class-flw-wc-payment-gateway.php:329
     259#: includes/class-flw-wc-payment-gateway.php:332
    259260msgctxt "payment_options"
    260261msgid "All"
    261262msgstr ""
    262263
    263 #: includes/class-flw-wc-payment-gateway.php:330
     264#: includes/class-flw-wc-payment-gateway.php:333
    264265msgctxt "payment_options"
    265266msgid "Card Only"
    266267msgstr ""
    267268
    268 #: includes/class-flw-wc-payment-gateway.php:331
     269#: includes/class-flw-wc-payment-gateway.php:334
    269270msgctxt "payment_options"
    270271msgid "Account Only"
    271272msgstr ""
    272273
    273 #: includes/class-flw-wc-payment-gateway.php:332
     274#: includes/class-flw-wc-payment-gateway.php:335
    274275msgctxt "payment_options"
    275276msgid "USSD Only"
    276277msgstr ""
    277278
    278 #: includes/class-flw-wc-payment-gateway.php:333
     279#: includes/class-flw-wc-payment-gateway.php:336
    279280msgctxt "payment_options"
    280281msgid "QR Only"
    281282msgstr ""
    282283
    283 #: includes/class-flw-wc-payment-gateway.php:334
     284#: includes/class-flw-wc-payment-gateway.php:337
    284285msgctxt "payment_options"
    285286msgid "Mpesa Only"
    286287msgstr ""
    287288
    288 #: includes/class-flw-wc-payment-gateway.php:335
     289#: includes/class-flw-wc-payment-gateway.php:338
    289290msgctxt "payment_options"
    290291msgid "Ghana MM Only"
    291292msgstr ""
    292293
    293 #: includes/class-flw-wc-payment-gateway.php:336
     294#: includes/class-flw-wc-payment-gateway.php:339
    294295msgctxt "payment_options"
    295296msgid "Rwanda MM Only"
    296297msgstr ""
    297298
    298 #: includes/class-flw-wc-payment-gateway.php:337
     299#: includes/class-flw-wc-payment-gateway.php:340
    299300msgctxt "payment_options"
    300301msgid "Zambia MM Only"
    301302msgstr ""
    302303
    303 #: includes/class-flw-wc-payment-gateway.php:338
     304#: includes/class-flw-wc-payment-gateway.php:341
    304305msgctxt "payment_options"
    305306msgid "Tanzania MM Only"
    306307msgstr ""
    307308
    308 #: includes/class-flw-wc-payment-gateway.php:343
     309#: includes/class-flw-wc-payment-gateway.php:346
    309310msgid "Mode"
    310311msgstr ""
    311312
    312 #: includes/class-flw-wc-payment-gateway.php:344
     313#: includes/class-flw-wc-payment-gateway.php:347
    313314msgid "Live mode"
    314315msgstr ""
    315316
    316 #: includes/class-flw-wc-payment-gateway.php:346
     317#: includes/class-flw-wc-payment-gateway.php:349
    317318msgid "Check this box if you're using your live keys."
    318319msgstr ""
    319320
    320 #: includes/class-flw-wc-payment-gateway.php:351
    321 #: includes/class-flw-wc-payment-gateway.php:352
     321#: includes/class-flw-wc-payment-gateway.php:354
     322#: includes/class-flw-wc-payment-gateway.php:355
    322323msgid "Disable Logging"
    323324msgstr ""
    324325
    325 #: includes/class-flw-wc-payment-gateway.php:354
     326#: includes/class-flw-wc-payment-gateway.php:357
    326327msgid "Check this box if you're disabling logging."
    327328msgstr ""
    328329
    329 #: includes/class-flw-wc-payment-gateway.php:359
    330 #: includes/class-flw-wc-payment-gateway.php:360
     330#: includes/class-flw-wc-payment-gateway.php:362
     331#: includes/class-flw-wc-payment-gateway.php:363
    331332msgid "Disable Barter"
    332333msgstr ""
    333334
    334 #: includes/class-flw-wc-payment-gateway.php:362
     335#: includes/class-flw-wc-payment-gateway.php:365
    335336msgid "Check the box if you want to disable barter."
    336337msgstr ""
    337338
    338339#. translators: %s: url
    339 #: includes/class-flw-wc-payment-gateway.php:453
     340#: includes/class-flw-wc-payment-gateway.php:456
     341#, php-format
    340342msgid "Flutterwave is enabled, but the API keys are not set. Please <a href=\"%s\">set your Flutterwave API keys</a> to be able to accept payments."
    341343msgstr ""
    342344
    343345#. translators: %s: shop cart url
    344 #: includes/class-flw-wc-payment-gateway.php:490
     346#: includes/class-flw-wc-payment-gateway.php:493
     347#, php-format
    345348msgid "Sorry, your session has expired. <a href=\"%s\" class=\"wc-backward\">Return to shop</a>"
    346349msgstr ""
    347350
    348 #: includes/class-flw-wc-payment-gateway.php:504
     351#: includes/class-flw-wc-payment-gateway.php:507
    349352msgid "We were unable to process your order, please try again."
    350353msgstr ""
    351354
    352 #: includes/class-flw-wc-payment-gateway.php:579
     355#: includes/class-flw-wc-payment-gateway.php:582
    353356msgid "Order Payment"
    354357msgstr ""
     
    360363#. translators: $1. Minimum WooCommerce version. $2. Current WooCommerce version.
    361364#: includes/notices/class-flw-wc-payment-gateway-notices.php:32
     365#, php-format
    362366msgid "Flutterwave WooCommerce requires WooCommerce %1$s or greater to be installed and active. kindly upgrade to a higher version of WooCommerce or downgrade to a lower version of Flutterwave WooCommerce that supports WooCommerce version %2$s."
    363367msgstr ""
     
    365369#. Translators: %s Plugin name.
    366370#: includes/views/html-admin-missing-woocommerce.php:15
     371#, php-format
    367372msgid "%s requires WooCommerce to be installed and activated in order to serve updates."
    368373msgstr ""
  • rave-woocommerce-payment-gateway/trunk/includes/blocks/class-flutterwave-wc-gateway-blocks-support.php

    r3027434 r3352725  
    5151                require_once dirname( FLW_WC_PLUGIN_FILE ) . '/includes/class-flw-wc-payment-gateway.php';
    5252            }
     53        }
    5354
    54             $this->gateway = new FLW_WC_Payment_Gateway();
    55         } else {
    56             $gateways      = WC()->payment_gateways->payment_gateways();
    57             $this->gateway = $gateways[ $this->name ];
    58         }
     55        $this->gateway = new FLW_WC_Payment_Gateway();
    5956    }
    6057
     
    7168                return false;
    7269            }
     70
     71            $this->gateway = $gateways[ $this->name ];
    7372        }
    7473
  • rave-woocommerce-payment-gateway/trunk/includes/class-flutterwave.php

    r3220062 r3352725  
    1919     * @var string
    2020     */
    21     public string $version = '2.3.6';
     21    public string $version = '3.1.0';
    2222
    2323    /**
  • rave-woocommerce-payment-gateway/trunk/includes/class-flw-wc-payment-gateway.php

    r3220062 r3352725  
    2626require_once __DIR__ . '/client/class-flw-wc-payment-gateway-request.php';
    2727require_once __DIR__ . '/client/class-flw-wc-payment-gateway-sdk.php';
     28require_once __DIR__ . '/util/class-flutterwave-logger.php';
    2829
    2930use Flutterwave\WooCommerce\Client\Flw_WC_Payment_Gateway_Request;
    3031use Flutterwave\WooCommerce\Client\FLW_WC_Payment_Gateway_Sdk as FlwSdk;
    3132use FLW_WC_Payment_Gateway_Event_Handler as FlwEventHandler;
     33use Flutterwave\WooCommerce\Util\Flutterwave_Logger;
    3234
    3335/**
     
    9395     * Logger
    9496     *
    95      * @var WC_Logger the logger
    96      */
    97     private WC_Logger $logger;
     97     * @var Flutterwave_Logger the logger
     98     */
     99    private Flutterwave_Logger $logger;
    98100    /**
    99101     * Flutterwave Sdk
     
    205207        }
    206208
    207         $this->sdk = new FlwSdk( $this->secret_key, self::$log_enabled );
     209        $this->logger = Flutterwave_Logger::instance();
     210        $this->sdk    = new FlwSdk( $this->secret_key, self::$log_enabled );
    208211
    209212        add_action( 'wp_enqueue_scripts', array( $this, 'payment_scripts' ) );
     
    594597     */
    595598    public function flw_verify_payment() {
    596         $public_key     = $this->public_key;
    597         $secret_key     = $this->secret_key;
    598         $logging_option = $this->logging_option;
    599         $sdk            = $this->sdk;
     599        $sdk = $this->sdk;
    600600
    601601        if ( ! isset( $_GET['_wpnonce'] ) && ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_GET['_wpnonce'] ) ) ) ) {
    602602            if ( isset( $_GET['status'] ) && 'cancelled' === $_GET['status'] ) {
     603                $this->logger->info( 'transaction cancelled by the customer.' );
    603604                $sdk->set_event_handler( new FlwEventHandler( $order ) )->cancel_payment( $txn_ref );
    604605                header( 'Location: ' . wc_get_cart_url() );
     
    614615
    615616            if ( isset( $_GET['status'] ) && 'cancelled' === $_GET['status'] ) {
     617                $this->logger->info( 'transaction cancelled by the customer.' );
    616618                $sdk->set_event_handler( new FlwEventHandler( $order ) )->cancel_payment( $txn_ref );
    617619                header( 'Location: ' . wc_get_cart_url() );
     
    631633     */
    632634    public function flutterwave_webhooks() {
    633         $public_key     = $this->public_key;
    634         $secret_key     = $this->secret_key;
    635         $logging_option = $this->logging_option;
    636         $sdk            = $this->sdk;
     635        $sdk = $this->sdk;
    637636
    638637        $event = file_get_contents( 'php://input' );
     
    648647
    649648        if ( ! $signature ) {
     649            $this->logger->info( 'Faudulent Webhook Notification Attempt [Access Redirected]' );
    650650            // redirect to the home page.
    651651            wp_safe_redirect( home_url() );
     
    656656
    657657        if ( $signature !== $local_signature ) {
     658            $this->logger->info( 'Faudulent Webhook Notification Attempt [Access Restricted]' );
    658659            wp_send_json(
    659660                array(
     
    666667
    667668        http_response_code( 200 );
     669        $this->logger->info( 'Webhook recieved: ' . $event );
    668670        $event = json_decode( $event );
    669671
     
    679681
    680682        if ( 'test_assess' === $event->event ) {
     683            $this->logger->info( 'Flutterwave Webhook Testing Successful.' );
    681684            wp_send_json(
    682685                array(
     
    696699            // check if transaction reference starts with WOOC on hpos enabled.
    697700            if ( substr( $event_data->tx_ref, 0, 4 ) !== 'WOOC' ) {
     701                $this->logger->info( 'Attempt to verifiy a transaction not produced by the merchants store.' );
    698702                wp_send_json(
    699703                    array(
  • rave-woocommerce-payment-gateway/trunk/includes/client/class-flw-wc-payment-gateway-sdk.php

    r2988222 r3352725  
    2323
    2424require_once __DIR__ . '/class-flw-wc-payment-gateway-client.php';
     25require_once __DIR__ . '/../util/class-flutterwave-logger.php';
    2526
    2627/**
  • rave-woocommerce-payment-gateway/trunk/rave-woocommerce-payment-gateway.php

    r3220062 r3352725  
    44 * Plugin URI: https://developer.flutterwave.com/
    55 * Description: Official WooCommerce payment gateway for Flutterwave.
    6  * Version: 2.3.6
     6 * Version: 3.1.0
    77 * Author: Flutterwave Developers
    88 * Author URI: http://flutterwave.com/us
  • rave-woocommerce-payment-gateway/trunk/readme.txt

    r3220062 r3352725  
    44Requires at least: 3.1
    55Tested up to: 6.7.1
    6 Stable tag: 2.3.6
     6Stable tag: 3.1.0
    77License: MIT
    88License URI: https://github.com/Flutterwave/Woocommerce/blob/master/LICENSE
     
    1212== Description ==
    1313
    14 Accept Credit card, Debit card and Bank account payment directly on your store with the official Flutterwave Plugin for WooCommerce.
     14Accept Credit card, Debit card and Bank account payment directly on your store with the official Flutterwave Plugin for WooCommerce. This plugin supports WooCommerce Version 6.9 or greater. For WooCommerce Version 6.8 or lower please install Flutterwave WooCommerce Version (2.3.6 or lower) of the plugin [here](https://wordpress.org/plugins/rave-woocommerce-payment-gateway/advanced/) at the section update advanced options.
    1515
    1616= Plugin Features =
     
    2323
    24241. Flutterwave for business [API Keys](https://developer.flutterwave.com/docs/integration-guides/authentication)
    25 2. [WooCommerce](https://woocommerce.com/)
     252. [WooCommerce](https://woocommerce.com/) version: >= 6.9
    26266. Supported PHP version: 7.4.0 - 8.1.0
    2727
Note: See TracChangeset for help on using the changeset viewer.