fix: react-doctor modal/dialog/dropzone a11y — 18 files to role+tabIndex+onKeyDown or dialog
This commit is contained in:
+6
-4
@@ -66,13 +66,15 @@ await getSession(); // 1. If not collecting tax, return zero
|
||||
const stripe = new Stripe(stripeKey);
|
||||
|
||||
// Build Stripe line items for tax calculation — only taxable items
|
||||
const lineItems: Stripe.Tax.CalculationCreateParams.LineItem[] = params.items
|
||||
.filter((item) => item.is_taxable !== false)
|
||||
.map((item) => ({
|
||||
const lineItems: Stripe.Tax.CalculationCreateParams.LineItem[] = [];
|
||||
for (const item of params.items) {
|
||||
if (item.is_taxable === false) continue;
|
||||
lineItems.push({
|
||||
amount: Math.round(item.price * item.quantity * 100), // cents
|
||||
reference: item.id,
|
||||
tax_behavior: "exclusive",
|
||||
}));
|
||||
});
|
||||
}
|
||||
|
||||
// If no taxable items, return zero tax
|
||||
if (lineItems.length === 0) {
|
||||
|
||||
Reference in New Issue
Block a user