woocommerce / woocommerce-paypal-payments

https://wordpress.org/plugins/woocommerce-paypal-payments/
GNU General Public License v2.0
62 stars 48 forks source link

Only last payment token is available because a new customer is returned each time (PCP-3860) #2820

Closed Dinamiko closed 1 day ago

Dinamiko commented 1 day ago

We need to send customer_id when saving payment token so PayPal will return the same customer_id in the response.

Steps To Reproduce

This PR ensures customer_id is sent if it exist when saving the payment, so the same customer_id will be returned and therefore multiple payments will be available under the same customer id.