Skip to content

Commit

Permalink
Method takes more specific data types
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffplays2005 committed Apr 1, 2024
1 parent cd1c20e commit 20d60bb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions server/src/business-layer/services/StripeService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@ export default class StripeService {
public async createCheckoutSession(
client_reference_id: string,
return_url: string,
line_item: any,
metadata: any
line_item: {
price: string
quantity: number
},
metadata: Record<string, string>
) {
const session = await stripe.checkout.sessions.create({
// consumer changeable
Expand Down

0 comments on commit 20d60bb

Please sign in to comment.