The server decides what the customer pays
The browser never sets the final amount. The server re-reads the card’s funding type from Stripe, adds the card fee only for credit cards (capped at 3%, never on debit), and computes the total itself, so a tampered request or a false “debit” claim is ignored.


