refactor to fully support Stripe.js API in service