We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 121a7f5 + bca45ce commit 09ec1f9Copy full SHA for 09ec1f9
src/services/ProductStripeService.js
@@ -91,7 +91,7 @@ export class ProductStripeService {
91
}
92
93
// Create Stripe prices for each combination
94
- for (const combo of combinations) {
+ await Promise.all(combinations.map(async (combo) => {
95
const stripePrice = await this.stripe.createPrice({
96
amount: combo.price,
97
currency: productData.currency,
@@ -118,7 +118,7 @@ export class ProductStripeService {
118
} else if (combo.variant2) {
119
variantPrices[combo.variant2.id] = stripePrice.id
120
121
- }
+ }))
122
123
// Also create base price for fallback
124
basePrice = await this.stripe.createPrice({
0 commit comments