Skip to content

Commit

Permalink
Tidy up formatting, comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterwilsoncc committed Oct 8, 2024
1 parent 8b24407 commit d0e1d49
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions includes/class-wc-gateway-dummy.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ public function __construct() {
// Actions.
add_action( 'woocommerce_update_options_payment_gateways_' . $this->id, array( $this, 'process_admin_options' ) );
add_action( 'woocommerce_scheduled_subscription_payment_dummy', array( $this, 'process_subscription_payment' ), 10, 2 );

add_action ( 'wc_pre_orders_process_pre_order_completion_payment_' . $this->id, array( $this, 'process_pre_order_release_payment' ), 10 );
}

Expand Down Expand Up @@ -144,7 +143,7 @@ class_exists( 'WC_Pre_Orders_Order' )
&& WC_Pre_Orders_Order::order_contains_pre_order( $order )
&& WC_Pre_Orders_Order::order_will_be_charged_upon_release( $order )
) {
// Mark order as tokenized.
// Mark order as tokenized (no token is saved for the dummy gateway).
$order->update_meta_data( '_wc_pre_orders_has_payment_token', '1' );
$order->save_meta_data();
WC_Pre_Orders_Order::mark_order_as_pre_ordered( $order );
Expand Down

0 comments on commit d0e1d49

Please sign in to comment.