|
@ -38,9 +38,6 @@ export class SubscriptionService { |
|
|
quantity: 1 |
|
|
quantity: 1 |
|
|
} |
|
|
} |
|
|
], |
|
|
], |
|
|
metadata: { |
|
|
|
|
|
user_id: userId |
|
|
|
|
|
}, |
|
|
|
|
|
mode: 'payment', |
|
|
mode: 'payment', |
|
|
payment_method_types: ['card'], |
|
|
payment_method_types: ['card'], |
|
|
success_url: `${this.configurationService.get( |
|
|
success_url: `${this.configurationService.get( |
|
@ -81,6 +78,10 @@ export class SubscriptionService { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
await this.stripe.customers.update(session.customer as string, { |
|
|
|
|
|
description: session.client_reference_id |
|
|
|
|
|
}); |
|
|
} catch (error) { |
|
|
} catch (error) { |
|
|
console.error(error); |
|
|
console.error(error); |
|
|
} |
|
|
} |
|
|