Skip to content

Commit

Permalink
fixup! Passed currency to stripe checkout setup session
Browse files Browse the repository at this point in the history
  • Loading branch information
allouis committed May 9, 2024
1 parent ed50db3 commit c5f18b1
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ghost/members-api/lib/controllers/RouterController.js
Expand Up @@ -137,9 +137,6 @@ module.exports = class RouterController {
customer = await this._stripeAPIService.getCustomer(subscription.get('customer_id'));
}

const defaultTier = await this._tiersService.api.readDefaultTier();
const currency = defaultTier?.currency?.toLowerCase() || 'usd';

const session = await this._stripeAPIService.createCheckoutSetupSession(customer, {
successUrl: req.body.successUrl,
cancelUrl: req.body.cancelUrl,
Expand Down

0 comments on commit c5f18b1

Please sign in to comment.