| @@ 234-240 (lines=7) @@ | ||
| 231 | * Don't transfer Stripe customer/token meta to resubscribe orders. |
|
| 232 | * @param int $resubscribe_order The order created for the customer to resubscribe to the old expired/cancelled subscription |
|
| 233 | */ |
|
| 234 | public function delete_resubscribe_meta( $resubscribe_order ) { |
|
| 235 | delete_post_meta( ( WC_Stripe_Helper::is_pre_30() ? $resubscribe_order->id : $resubscribe_order->get_id() ), '_stripe_customer_id' ); |
|
| 236 | delete_post_meta( ( WC_Stripe_Helper::is_pre_30() ? $resubscribe_order->id : $resubscribe_order->get_id() ), '_stripe_source_id' ); |
|
| 237 | // For BW compat will remove in future |
|
| 238 | delete_post_meta( ( WC_Stripe_Helper::is_pre_30() ? $resubscribe_order->id : $resubscribe_order->get_id() ), '_stripe_card_id' ); |
|
| 239 | $this->delete_renewal_meta( $resubscribe_order ); |
|
| 240 | } |
|
| 241 | ||
| 242 | /** |
|
| 243 | * Don't transfer Stripe fee/ID meta to renewal orders. |
|
| @@ 304-310 (lines=7) @@ | ||
| 301 | * Don't transfer Stripe customer/token meta to resubscribe orders. |
|
| 302 | * @param int $resubscribe_order The order created for the customer to resubscribe to the old expired/cancelled subscription |
|
| 303 | */ |
|
| 304 | public function delete_resubscribe_meta( $resubscribe_order ) { |
|
| 305 | delete_post_meta( ( WC_Stripe_Helper::is_pre_30() ? $resubscribe_order->id : $resubscribe_order->get_id() ), '_stripe_customer_id' ); |
|
| 306 | delete_post_meta( ( WC_Stripe_Helper::is_pre_30() ? $resubscribe_order->id : $resubscribe_order->get_id() ), '_stripe_source_id' ); |
|
| 307 | // For BW compat will remove in future |
|
| 308 | delete_post_meta( ( WC_Stripe_Helper::is_pre_30() ? $resubscribe_order->id : $resubscribe_order->get_id() ), '_stripe_card_id' ); |
|
| 309 | $this->delete_renewal_meta( $resubscribe_order ); |
|
| 310 | } |
|
| 311 | ||
| 312 | /** |
|
| 313 | * Don't transfer Stripe fee/ID meta to renewal orders. |
|