mirror of
https://gh.wpcy.net/https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2026-04-27 01:22:18 +08:00
For manually created orders without a payment method selected during creation, `$order->get_payment_method()` returns empty string, causing Level 2/3 payment data to be excluded from PayPal API requests. Solution: Accept optional payment_method parameter in `from_wc_order()` that can be passed from request data (pay-now context), with fallback to order's payment method. |
||
|---|---|---|
| .. | ||
| resources | ||
| src | ||
| composer.json | ||
| extensions.php | ||
| module.php | ||
| services.php | ||