@@ 320-326 (lines=7) @@ | ||
317 | * Don't transfer Stripe customer/token meta to resubscribe orders. |
|
318 | * @param int $resubscribe_order The order created for the customer to resubscribe to the old expired/cancelled subscription |
|
319 | */ |
|
320 | public function delete_resubscribe_meta( $resubscribe_order ) { |
|
321 | delete_post_meta( $resubscribe_order->get_id(), '_stripe_customer_id' ); |
|
322 | delete_post_meta( $resubscribe_order->get_id(), '_stripe_source_id' ); |
|
323 | // For BW compat will remove in future |
|
324 | delete_post_meta( $resubscribe_order->get_id(), '_stripe_card_id' ); |
|
325 | $this->delete_renewal_meta( $resubscribe_order ); |
|
326 | } |
|
327 | ||
328 | /** |
|
329 | * Don't transfer Stripe fee/ID meta to renewal orders. |
@@ 419-427 (lines=9) @@ | ||
416 | * Don't transfer Stripe customer/token meta to resubscribe orders. |
|
417 | * @param int $resubscribe_order The order created for the customer to resubscribe to the old expired/cancelled subscription |
|
418 | */ |
|
419 | public function delete_resubscribe_meta( $resubscribe_order ) { |
|
420 | delete_post_meta( $resubscribe_order->get_id(), '_stripe_customer_id' ); |
|
421 | delete_post_meta( $resubscribe_order->get_id(), '_stripe_source_id' ); |
|
422 | // For BW compat will remove in future |
|
423 | delete_post_meta( $resubscribe_order->get_id(), '_stripe_card_id' ); |
|
424 | // delete payment intent ID |
|
425 | delete_post_meta( $resubscribe_order->get_id(), '_stripe_intent_id' ); |
|
426 | $this->delete_renewal_meta( $resubscribe_order ); |
|
427 | } |
|
428 | ||
429 | /** |
|
430 | * Don't transfer Stripe fee/ID meta to renewal orders. |