| @@ 258-264 (lines=7) @@ | ||
| 255 | * Don't transfer Stripe customer/token meta to resubscribe orders. |
|
| 256 | * @param int $resubscribe_order The order created for the customer to resubscribe to the old expired/cancelled subscription |
|
| 257 | */ |
|
| 258 | public function delete_resubscribe_meta( $resubscribe_order ) { |
|
| 259 | delete_post_meta( ( WC_Stripe_Helper::is_pre_30() ? $resubscribe_order->id : $resubscribe_order->get_id() ), '_stripe_customer_id' ); |
|
| 260 | delete_post_meta( ( WC_Stripe_Helper::is_pre_30() ? $resubscribe_order->id : $resubscribe_order->get_id() ), '_stripe_source_id' ); |
|
| 261 | // For BW compat will remove in future |
|
| 262 | delete_post_meta( ( WC_Stripe_Helper::is_pre_30() ? $resubscribe_order->id : $resubscribe_order->get_id() ), '_stripe_card_id' ); |
|
| 263 | $this->delete_renewal_meta( $resubscribe_order ); |
|
| 264 | } |
|
| 265 | ||
| 266 | /** |
|
| 267 | * Don't transfer Stripe fee/ID meta to renewal orders. |
|
| @@ 300-306 (lines=7) @@ | ||
| 297 | * Don't transfer Stripe customer/token meta to resubscribe orders. |
|
| 298 | * @param int $resubscribe_order The order created for the customer to resubscribe to the old expired/cancelled subscription |
|
| 299 | */ |
|
| 300 | public function delete_resubscribe_meta( $resubscribe_order ) { |
|
| 301 | delete_post_meta( ( WC_Stripe_Helper::is_pre_30() ? $resubscribe_order->id : $resubscribe_order->get_id() ), '_stripe_customer_id' ); |
|
| 302 | delete_post_meta( ( WC_Stripe_Helper::is_pre_30() ? $resubscribe_order->id : $resubscribe_order->get_id() ), '_stripe_source_id' ); |
|
| 303 | // For BW compat will remove in future |
|
| 304 | delete_post_meta( ( WC_Stripe_Helper::is_pre_30() ? $resubscribe_order->id : $resubscribe_order->get_id() ), '_stripe_card_id' ); |
|
| 305 | $this->delete_renewal_meta( $resubscribe_order ); |
|
| 306 | } |
|
| 307 | ||
| 308 | /** |
|
| 309 | * Don't transfer Stripe fee/ID meta to renewal orders. |
|