Jump to content

Mass update PaymentMethod (paymentmethod)


Colin N.

Recommended Posts

Hello,

I currently use banktransfer, paypal and paypalexpress payment methods and have done for some years without issue.

Recently i've signed up to Stripe and now I want to change all domains/hosting service to use Stripe in cases where there is no paypal subscription.

Would the following SQL statements do the trick?

# update all active domains
UPDATE tbldomains SET paymentmethod = 'stripe' where status = 'Active' and ( paymentmethod = 'paypal' or paymentmethod = 'paypalexpress' );

# update all active services without a subscriptionid
UPDATE tblhosting SET paymentmethod = 'stripe' where domainstatus = 'Active' and ( paymentmethod = 'paypal' or paymentmethod = 'paypalexpress' ) and subscriptionid = '';

Thanks in advance for your support,

Colin.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated