mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
Add payment method to renewal order
This commit is contained in:
parent
2571d31ad8
commit
fe73de45ad
1 changed files with 1 additions and 0 deletions
|
@ -98,6 +98,7 @@ class PaymentSaleCompleted implements RequestHandler {
|
|||
if ( $is_renewal ) {
|
||||
$renewal_order = wcs_create_renewal_order( $subscription );
|
||||
if ( is_a( $renewal_order, WC_Order::class ) ) {
|
||||
$renewal_order->set_payment_method( $subscription->get_payment_method() );
|
||||
$renewal_order->payment_complete();
|
||||
$this->update_transaction_id( $transaction_id, $renewal_order, $this->logger );
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue