Skip to content

Commit

Permalink
Save payment method on subscription when setting amazon pay payment meta
Browse files Browse the repository at this point in the history
  • Loading branch information
mattallan authored May 13, 2024
1 parent 58ebd9e commit 8199f56
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,7 @@ public function copy_meta_to_sub( $order, $response ) {

$subscription->update_meta_data( $key, $value );
}
$subscription->set_payment_method( wc_apa()->get_gateway()->id );
$subscription->save();
}
}
Expand Down

0 comments on commit 8199f56

Please sign in to comment.