mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Fix typo getting user id
This commit is contained in:
parent
5afbfb0e3b
commit
a8dcef1326
1 changed files with 1 additions and 1 deletions
|
@ -221,7 +221,7 @@ class SmartButton implements SmartButtonInterface {
|
|||
esc_html__( 'Save your Credit Card', 'woocommerce-paypal-payments' )
|
||||
);
|
||||
|
||||
$tokens = $payment_token_repository->all_for_user_id( 1 );
|
||||
$tokens = $payment_token_repository->all_for_user_id( get_current_user_id() );
|
||||
if ( $tokens && $this->tokens_contains_card( $tokens ) ) {
|
||||
$output = sprintf(
|
||||
'<p class="form-row form-row-wide"><label>Or select a saved Credit Card payment</label><select id="saved-credit-card" name="saved_credit_card"><option value="">%s</option>',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue