mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Ensure payment saved with vault v2 works in v3
This commit is contained in:
parent
5b15283834
commit
6b843bc698
1 changed files with 3 additions and 0 deletions
|
@ -357,6 +357,9 @@ class SavePaymentMethodsModule implements ModuleInterface {
|
|||
$target_customer_id = '';
|
||||
if ( is_user_logged_in() ) {
|
||||
$target_customer_id = get_user_meta( get_current_user_id(), '_ppcp_target_customer_id', true );
|
||||
if ( ! $target_customer_id ) {
|
||||
$target_customer_id = get_user_meta( get_current_user_id(), 'ppcp_customer_id', true );
|
||||
}
|
||||
}
|
||||
|
||||
$id_token = $api->id_token( $target_customer_id );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue