Get customer name and email from Paypal.
-
Is there any way to get payer first_name and last_name from paypal and save as meta data in the woocommerce order?
I need these data right after the paypal popup closes, in checkout page, before order-received page.
Printing globals I’ve found this in class-wc-gateway-ppec-checkout-handler.php
WC_Gateway_PPEC_Checkout_Handler::do_payment()PayPal_Checkout_Payer_Details::__set_state(array( 'phone_number' => false, 'email' => '[email protected]', 'payer_id' => 'XDXC1ZWHHQN23', 'payer_status' => 'verified', 'country' => 'US', 'business_name' => false, 'first_name' => 'Alejandro', 'last_name' => 'Buyer', 'middle_name' => false, 'suffix' => false, 'billing_address' => false, )
if I can access to this data from a hook would be great.
php7, WooCommerce 3.6.5, WooCommerce PayPal Checkout Gateway 1.6.16, test enviroment with sandbox.
Excuse me if the question is very silly, I’m a beginner in wordpress.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Get customer name and email from Paypal.’ is closed to new replies.