includes/class-wc-stripe-apple-pay.php 1 location
|
@@ 554-559 (lines=6) @@
|
| 551 |
|
WC()->customer->set_shipping_to_base(); |
| 552 |
|
} |
| 553 |
|
|
| 554 |
|
if ( version_compare( WC_VERSION, '3.0', '<' ) ) { |
| 555 |
|
WC()->customer->calculated_shipping( true ); |
| 556 |
|
} else { |
| 557 |
|
WC()->customer->set_calculated_shipping( true ); |
| 558 |
|
WC()->customer->save(); |
| 559 |
|
} |
| 560 |
|
|
| 561 |
|
/** |
| 562 |
|
* Set the shipping package. |
includes/class-wc-stripe-payment-request.php 1 location
|
@@ 178-183 (lines=6) @@
|
| 175 |
|
WC()->customer->set_shipping_to_base(); |
| 176 |
|
} |
| 177 |
|
|
| 178 |
|
if ( version_compare( WC_VERSION, '3.0', '<' ) ) { |
| 179 |
|
WC()->customer->calculated_shipping( true ); |
| 180 |
|
} else { |
| 181 |
|
WC()->customer->set_calculated_shipping( true ); |
| 182 |
|
WC()->customer->save(); |
| 183 |
|
} |
| 184 |
|
|
| 185 |
|
$packages = array(); |
| 186 |
|
|