Skip to content

Commit

Permalink
Merge pull request #2930 from 0verscore/trunk
Browse files Browse the repository at this point in the history
Use get_id instead of get_order_number on setting custom_id
  • Loading branch information
InpsydeNiklas authored Dec 27, 2024
2 parents 38e268c + 8fe000b commit 4c625e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/ppcp-wc-gateway/src/Gateway/CreditCardGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ public function process_payment( $order_id ) {
continue;
}

$custom_id = $wc_order->get_order_number();
$custom_id = (string) $wc_order->get_id();
$invoice_id = $this->prefix . $wc_order->get_order_number();
$create_order = $this->capture_card_payment->create_order( $token->get_token(), $custom_id, $invoice_id, $wc_order );

Expand Down

0 comments on commit 4c625e7

Please sign in to comment.