Merge pull request #3031 from woocommerce/PCP-4118-apm-trustly-can-not-pay-with-trustly-error-message-a-required-field-parameter-is-missing-is-showing-on-frontend

APM - Trustly - Can not pay with Trustly - Error message "A required field / parameter is missing." is showing on frontend (4118)
This commit is contained in:
Emili Castells 2025-02-04 13:05:50 +01:00 committed by GitHub
commit 50726c8d7c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -141,6 +141,7 @@ class TrustlyGateway extends WC_Payment_Gateway {
'trustly' => array(
'country_code' => $wc_order->get_billing_country(),
'name' => $wc_order->get_billing_first_name() . ' ' . $wc_order->get_billing_last_name(),
'email' => $wc_order->get_billing_email(),
),
),
'processing_instruction' => 'ORDER_COMPLETE_ON_PAYMENT_APPROVAL',