Class WC_Braintree_Subscriptions_Cart
Package: Braintree\Classes\Subscriptions
Since: 3.0.0
Located at subscriptions/class-wc-braintree-subscriptions-cart.php
Since: 3.0.0
Located at subscriptions/class-wc-braintree-subscriptions-cart.php
Methods summary
public
|
|
public
|
#
add_to_cart_validation( boolean $valid, integer $product_id, integer $quantity, number $variation_id = 0, array $variations = array() )
If the item being added is a Braintree subscription, validate that there is a plan configured for the currency. |
public
|
|
public
|
|
public
|
|
public
|
|
private
|
|
private
|
#
get_recurring_cart_key(
Generate a recurring cart key using the product. |
public
|
|
public
|
|
public
|
#
get_discount_amount( integer $discount, integer $price_to_discount, object $item, boolean $bool, WC_Coupon $coupon )
Calculate the discount amount for the recurring payment. |
public
|
#
save_shipping_data( WC_Cart $cart )
Save the shipping data in the session so it can be retrieved later. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
Properties summary
private
boolean
|
$recurring_total_calculation
|
#
false
|
private
|
$current_recurring_cart_key
|
|
private
array
|
$recurring_discounts
|
#
array()
|
private
array
|
$discounts
|
#
array()
|
private
integer
|
$calculation_count
|
#
0
|