Refactor: Generic payments to checkout

indentation is too deep