Plugin Directory

Changeset 2703694


Ignore:
Timestamp:
04/02/2022 12:26:57 PM (4 years ago)
Author:
usedrip
Message:

update to 0.1.2

  • fix error log strings
Location:
drip-payments/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • drip-payments/trunk/drip-payments.php

    r2703451 r2703694  
    44 * Description: Forneça a Drip como opção de pagamento para pedidos do WooCommerce.
    55 * Author: Drip
    6  * Version: 0.1.1
     6 * Version: 0.1.2
    77 */
    88
    99function drip_payments_show_plugin_version() {
    10     return '0.1.1';
     10    return '0.1.2';
    1111}
    1212
  • drip-payments/trunk/readme.txt

    r2703451 r2703694  
    55Tested up to: 5.9.2
    66Requires PHP: 7.0
    7 Stable tag: 0.1.1
     7Stable tag: 0.1.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • drip-payments/trunk/src/DripPaymentsCheckoutRequest.php

    r2703451 r2703694  
    4444        } catch (RuntimeException $e) {
    4545            $this->deactivatePlugin();
    46             $this->logError($e->getMessage());
     46            $this->logError(json_encode([
     47                'url' => self::IS_DISABLED_PATH,
     48                'error' => $e->getMessage()
     49            ]));
    4750            return true;
    4851        }
     
    5861            ]);
    5962        } catch (RequestException $e) {
    60             $this->logError($e->getResponse());
     63            $this->logError(json_encode([
     64                'url' => self::CHECKOUTS_PATH,
     65                'error' => $e->getResponse()->getBody()
     66            ]));
    6167            return $e->getResponse();
    6268        } catch (RuntimeException $e) {
    63             $this->logError($e->getMessage());
     69            $this->logError(json_encode([
     70                'url' => self::CHECKOUTS_PATH,
     71                'error' => $e->getMessage()
     72            ]));
    6473            return NULL;
    6574        }
     
    7786            return json_decode($response->getBody());
    7887        } catch (RuntimeException $e) {
    79             $this->logError($e->getMessage());
     88            $this->logError(json_encode([
     89                'url' => self::CHECKOUTS_PATH . '/' . $checkoutId,
     90                'error' => $e->getMessage()
     91            ]));
    8092            return false;
    8193        }
     
    94106        } catch (RuntimeException $e) {
    95107            $this->deactivatePlugin();
    96             $this->logError($e->getMessage());
     108            $this->logError(json_encode([
     109                'url' => self::SIMULATOR_PATH,
     110                'error' => $e->getMessage()
     111            ]));
    97112            return '2';
    98113        }
     
    110125            return $resp_body['cnpj'];
    111126        } catch (RuntimeException $e) {
    112             $this->logError($e->getMessage());
     127            $this->logError(json_encode([
     128                'url' => self::MERCHANT_CNPJ,
     129                'error' => $e->getMessage()
     130            ]));
    113131            return null;
    114132        }
Note: See TracChangeset for help on using the changeset viewer.