mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Merge pull request #2283 from woocommerce/PCP-3171-several-issues-on-backwpup-com
id_token for guest users (3264)
This commit is contained in:
commit
0f6e7154cf
1 changed files with 4 additions and 0 deletions
|
@ -84,6 +84,10 @@ class SavePaymentMethodsModule implements ModuleInterface {
|
|||
add_filter(
|
||||
'woocommerce_paypal_payments_localized_script_data',
|
||||
function( array $localized_script_data ) use ( $c ) {
|
||||
if ( ! is_user_logged_in() ) {
|
||||
return $localized_script_data;
|
||||
}
|
||||
|
||||
$api = $c->get( 'api.user-id-token' );
|
||||
assert( $api instanceof UserIdToken );
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue