Changeset 1514115
- Timestamp:
- 10/13/2016 06:18:53 PM (9 years ago)
- Location:
- woocommerce-gateway-paypal-powered-by-braintree/trunk
- Files:
-
- 4 edited
-
classes/class-wc-gateway-paypal-braintree-subscription.php (modified) (2 diffs)
-
classes/class-wc-gateway-paypal-braintree.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
-
woocommerce-gateway-paypal-powered-by-braintree.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
woocommerce-gateway-paypal-powered-by-braintree/trunk/classes/class-wc-gateway-paypal-braintree-subscription.php
r1498313 r1514115 267 267 ); 268 268 269 return $sale_args;269 return apply_filters( 'wc_gateway_paypal_braintree_sale_args', $sale_args ); 270 270 } 271 271 … … 304 304 305 305 // Process the sale with the stored token and customer 306 $sale_args = a rray(307 'amount' => $amount_to_charge,306 $sale_args = apply_filters( 'wc_gateway_paypal_braintree_sale_args', array( 307 'amount' => $amount_to_charge, 308 308 'paymentMethodToken' => $payment_method_token, 309 'recurring' => true,310 'customerId' => $braintree_customer_id,311 'channel' => 'WooThemes_BT', // aka BN tracking code312 'orderId' => $order->id,313 'options' => array(314 'submitForSettlement' => true,315 'storeInVaultOnSuccess' => true 316 ) 317 ) ;309 'recurring' => true, 310 'customerId' => $braintree_customer_id, 311 'channel' => 'WooThemes_BT', // aka BN tracking code 312 'orderId' => $order->id, 313 'options' => array( 314 'submitForSettlement' => true, 315 'storeInVaultOnSuccess' => true, 316 ), 317 ) ); 318 318 319 319 try { -
woocommerce-gateway-paypal-powered-by-braintree/trunk/classes/class-wc-gateway-paypal-braintree.php
r1498313 r1514115 825 825 ); 826 826 827 $sale_args = a rray(827 $sale_args = apply_filters( 'wc_gateway_paypal_braintree_sale_args', array( 828 828 'amount' => $order->order_total, 829 829 'billing' => $billing, … … 833 833 'orderId' => $order_id, 834 834 'options' => array( 835 'submitForSettlement' => $this->capture ? 'true' : 'false'836 ) 837 ) ;835 'submitForSettlement' => $this->capture ? 'true' : 'false', 836 ), 837 ) ); 838 838 839 839 require_once( dirname( __FILE__ ) . '/../braintree_sdk/lib/Braintree.php' ); … … 1001 1001 $this->log( __FUNCTION__, "Error: The transaction cannot be voided nor refunded in its current state: state = {$transaction->status}" ); 1002 1002 return false; 1003 } 1004 1005 // Only void transaction when refund amount equals to order's total. 1006 if ( 'void' === $action_to_take && $refund_amount != $order->get_total() ) { 1007 return new WP_Error( 'unable_to_void', __( 'Unable to void unsettled transaction when refunding partially.', 'woocommerce-gateway-paypal-braintree' ) ); 1003 1008 } 1004 1009 -
woocommerce-gateway-paypal-powered-by-braintree/trunk/readme.txt
r1498313 r1514115 1 1 === WooCommerce PayPal Powered by Braintree Payment Gateway === 2 Contributors: automattic, akeda, allendav, royho, slash1andy, woosteve, spraveenitpro, mikedmoore, fernashes, shellbeezy, danieldudzic, dsmithweb 2 Contributors: automattic, akeda, allendav, royho, slash1andy, woosteve, spraveenitpro, mikedmoore, fernashes, shellbeezy, danieldudzic, dsmithweb, fullysupportedphil, corsonr 3 3 Tags: ecommerce, e-commerce, commerce, woothemes, wordpress ecommerce, store, sales, sell, shop, shopping, cart, checkout, configurable, paypal, braintree 4 4 Requires at least: 4.4 5 5 Tested up to: 4.6.1 6 Stable tag: 1.2. 46 Stable tag: 1.2.5 7 7 License: GPLv3 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 111 111 == Changelog == 112 112 113 = 1.2.5 = 114 * Fix - Prevent void on unsettled transaction when refunding partially. 115 * Tweak - Add filter wc_gateway_paypal_braintree_sale_args to filter arguments passed to sale call. 116 113 117 = 1.2.4 = 114 118 * Fix - Free subscription trails not allowed. -
woocommerce-gateway-paypal-powered-by-braintree/trunk/woocommerce-gateway-paypal-powered-by-braintree.php
r1498313 r1514115 6 6 * Author: WooThemes 7 7 * Author URI: http://woothemes.com/ 8 * Version: 1.2. 48 * Version: 1.2.5 9 9 * 10 10 * Copyright (c) 2016 WooThemes
Note: See TracChangeset
for help on using the changeset viewer.