Hoping to move house and I think I've f'ked up...
We were first time buyers last time but bought a new build so buying an actual real house this time we're not really sure what we're doing and I think I've messed up
When we first started sorting our house for sale I went on current mortgage providers website to see how much we could borrow - results came back good, meant we could look in our preferred area
Put ours on market, house sold, back on website to check amount to borrow and start looking for house - found one we like, called mortgage company to ask about porting mortgage. They said you need to have offer accepted before going any further, so we went and viewed house then put offer in
Offer accepted yesterday lunchtime 
Need to speak to mortgage co. but they're closed til 2moro morning, went back on their website found different calculator - now only saying we can have half of what we'd need!!!
Turns out the one I'd done originally was 'mortgage checker' not 'affordability calculator' but I've already put offer on house 

We have some credit card debt - if I put it in as credit card debt they'll loan half, I've worked out if I put the equivalent in monthly loan payments (ie get 5yr loan to pay off credit cards) they'd loan us the mortgage amount we need
My question is - does anyone know if the mortgage lender would let us do that or would it feck up our credit rating so bad that they won't lend us money???
As it's the first time we've bought a house properly (not through new build) I'm panicking that we're now not gonna get mortgage - I've worked everything out and we can defo afford mortgage repayments and the credit card loan repayments (we're already paying off the equivalent monthly anyway)
Anyone able to offer advice and help me sleep tonight before I ring mortgage company in morning??
Thanks