Saving credit card details

is it safe to save credit card details on adalos database and if not what is the solution

No it isn’t. Let stripe or a third party payment processor handle the storage.