|
@@ 254-260 (lines=7) @@
|
| 251 |
|
'amount' => WC_Stripe_Helper::get_stripe_amount( WC_Stripe_Helper::is_pre_30() ? $product->price : $product->get_price() ), |
| 252 |
|
); |
| 253 |
|
|
| 254 |
|
if ( wc_tax_enabled() ) { |
| 255 |
|
$items[] = array( |
| 256 |
|
'label' => __( 'Tax', 'woocommerce-gateway-stripe' ), |
| 257 |
|
'amount' => 0, |
| 258 |
|
'pending' => true, |
| 259 |
|
); |
| 260 |
|
} |
| 261 |
|
|
| 262 |
|
if ( wc_shipping_enabled() && $product->needs_shipping() ) { |
| 263 |
|
$items[] = array( |
|
@@ 813-819 (lines=7) @@
|
| 810 |
|
'amount' => WC_Stripe_Helper::get_stripe_amount( $total ), |
| 811 |
|
); |
| 812 |
|
|
| 813 |
|
if ( wc_tax_enabled() ) { |
| 814 |
|
$items[] = array( |
| 815 |
|
'label' => __( 'Tax', 'woocommerce-gateway-stripe' ), |
| 816 |
|
'amount' => 0, |
| 817 |
|
'pending' => true, |
| 818 |
|
); |
| 819 |
|
} |
| 820 |
|
|
| 821 |
|
if ( wc_shipping_enabled() && $product->needs_shipping() ) { |
| 822 |
|
$items[] = array( |