From 9391961420a45cdbda7feea7d375442b4d71446f Mon Sep 17 00:00:00 2001 From: barboris3 Date: Tue, 21 Mar 2023 14:25:27 +0000 Subject: [PATCH] fix paypal payment method by adding invoice number --- includes/api/class-wc-checkoutcom-api-request.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/api/class-wc-checkoutcom-api-request.php b/includes/api/class-wc-checkoutcom-api-request.php index 3b43bd9c..f6be4145 100644 --- a/includes/api/class-wc-checkoutcom-api-request.php +++ b/includes/api/class-wc-checkoutcom-api-request.php @@ -224,6 +224,7 @@ private static function get_request_param( WC_Order $order, $arg, $subscription $payment_option = 'PayPal'; $method = new RequestPayPalSource(); + $method->invoice_number = $order->get_id(); } elseif ( in_array( $arg, $apms_selected, true ) ) { // Alternative payment method selected.