Changeset 2736503
- Timestamp:
- 06/02/2022 03:31:53 PM (4 years ago)
- Location:
- drip-payments/trunk
- Files:
-
- 6 edited
-
drip-payments.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
-
src/DripCacheService.php (modified) (1 diff)
-
src/DripPaymentsCheckoutRequest.php (modified) (1 diff)
-
src/DripUpdateAdminOptions.php (modified) (1 diff)
-
src/DripUtils.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
drip-payments/trunk/drip-payments.php
r2731925 r2736503 4 4 * Description: Forneça a Drip como opção de pagamento para pedidos do WooCommerce. 5 5 * Author: Drip 6 * Version: 1.2. 06 * Version: 1.2.1 7 7 */ 8 8 … … 29 29 public static $instance = false; 30 30 public static $log = false; 31 public DripCacheService $drip_cache_service;32 public DripPaymentsCheckoutRequest $checkout_request;33 31 34 32 public function __construct() … … 191 189 $order_number = $order->get_order_number(); 192 190 $order_products = []; 193 $order_products[] = [ 194 'name' => "shipping", 195 'quantity' => 1, 196 'amount' => $order->get_shipping_total(), 197 'totalAmount' => $order->get_shipping_total() 198 ]; 191 if ($order->get_shipping_total() > 0) { 192 $order_products[] = [ 193 'name' => "Frete", 194 'quantity' => 1, 195 'amount' => $order->get_shipping_total(), 196 'totalAmount' => $order->get_shipping_total() 197 ]; 198 } 199 199 200 foreach ($order->get_items() as $product_id_on_order => $product) { 200 201 $actual_product = $product->get_product(); -
drip-payments/trunk/readme.txt
r2731925 r2736503 5 5 Tested up to: 6.0 6 6 Requires PHP: 7.0 7 Stable tag: 1.2. 07 Stable tag: 1.2.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
drip-payments/trunk/src/DripCacheService.php
r2731925 r2736503 5 5 class DripCacheService 6 6 { 7 private $date_time_service;8 9 7 public function __construct() 10 8 { -
drip-payments/trunk/src/DripPaymentsCheckoutRequest.php
r2731925 r2736503 14 14 const MERCHANT_ORDERS = 'v1/merchant/orders'; 15 15 const ERROR_LOGGER = 'v1/merchants/log_plugin_error'; 16 17 private $drip_cache_service;18 16 19 17 private static function options($testMode): array -
drip-payments/trunk/src/DripUpdateAdminOptions.php
r2731925 r2736503 3 3 class DripUpdateAdminOptions 4 4 { 5 private $drip_cache_service;6 7 5 public function __construct() 8 6 { 9 7 $this->drip_cache_service = new DripCacheService; 10 8 } 9 11 10 public function checkApiKeyIsOkForProduction($production_key) 12 11 { -
drip-payments/trunk/src/DripUtils.php
r2731925 r2736503 11 11 const DRIP_PAYMENTS_BASE_URI_PRODUCTION = 'https://drip-be.usedrip.com.br/api/'; 12 12 13 const DRIP_PAYMENTS_ACTUAL_PLUGIN_VERSION = '1.2. 0';13 const DRIP_PAYMENTS_ACTUAL_PLUGIN_VERSION = '1.2.1'; 14 14 } 15 15
Note: See TracChangeset
for help on using the changeset viewer.