Jump to content

Changing a package's payment method?


Troy

Recommended Posts

I've just recently converted from AWBS. Because we have a mix of payment methods (CC, Paypal and Check/Money Order), and you have to chose a payment gateway for ALL data imported from AWBS, I went with mailin payment for the conversion.

 

I assumed that our customers that use a credit card could simply log in to their accounts and enter card information, to switch to automatic credit card payment.

 

However, even after entering their card info, hosting packages still bear the mailin payment type. Is there not any way to automate this somehow? Must I manually change payment method for every hosting package after a customer enters his credit card info?

 

If so, I suppose I can regularly run these queries (figure this is a safe place to put it for future reference, and may help someone else):

 

update tblhosting h, tblclients c

set h.paymentmethod = 'authorize'

where h.userid = c.id

and length(c.cardnum) > 0

and c.status = 'Active'

 

(The above query sets hosting package payment method to 'authorize' if the client has a card on file and is active.)

 

update tblclients c, tblinvoices i

set i.paymentmethod = 'authorize'

where i.userid = c.id

and length(c.cardnum) > 0

and c.status = 'Active'

and i.status = 'Unpaid'

 

(The above query sets the payment method for any unpaid invoices for active customers with a card on file to 'authorize'.)

 

It seems there should be some way for a customer to switch to credit card payment and have all future invoices generated with credit card payment method, without admin intervention, especially on a conversion like we did.

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