mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Use get_id instead of get_order_number on setting custom_id
This commit is contained in:
parent
ba7fbb0943
commit
400f71be5d
1 changed files with 1 additions and 1 deletions
|
@ -466,7 +466,7 @@ class CreditCardGateway extends \WC_Payment_Gateway_CC {
|
|||
continue;
|
||||
}
|
||||
|
||||
$custom_id = $wc_order->get_order_number();
|
||||
$custom_id = $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 );
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue