Skip to content

Commit

Permalink
Merge pull request #234 from checkout/Fix/subscription-conflicts
Browse files Browse the repository at this point in the history
fix callback handler
  • Loading branch information
avish-bisbeehurry-cko authored Jul 29, 2021
2 parents ab10682 + 4c062f5 commit e87b1aa
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,9 @@ public function callback_handler()
}

// save source id for subscription
WC_Checkoutcom_Subscription::save_source_id($order_id, $subscription_object, $result['source']['id']);
if (class_exists(WC_Subscriptions_Order)) {
WC_Checkoutcom_Subscription::save_source_id($order_id, $subscription_object, $result['source']['id']);
}

$order_status = $order->get_status();

Expand Down

0 comments on commit e87b1aa

Please sign in to comment.