update API keys and clean up
-
Hi there,
We’ve updated Stripe’s API keys but according to https://docs.woocommerce.com/document/stripe-fixing-customer-errors/, we need to clean up the database cleanup.
Where shall we add the snippet? Thanks.
DELETE FROMwp_usermeta`
WHERE meta_key IN ( ‘_stripe_customer_id’, ‘_stripe_source_id’, ‘_stripe_card_id’ );
DELETE tokenmeta FROMwp_woocommerce_payment_tokenmetatokenmeta
INNER JOINwp_woocommerce_payment_tokensONwp_woocommerce_payment_tokens.token_id= tokenmeta.payment_token_id
WHEREwp_woocommerce_payment_tokens.gateway_id= ‘stripe’;
DELETE FROMwp_woocommerce_payment_tokensWHERE gateway_id=’stripe’;`BR,
Tom
The topic ‘update API keys and clean up’ is closed to new replies.