- Changelog
Tips and surcharges, from the card field to the payment
Elements can quote a tip before the charge, and payments now return the amount broken into base, surcharge, tax, and tip.
August 11, 2026
Release · @myela/payments@0.2.1 · @myela/elements@0.1.0
@myela/payments 0.2.1
Section titled “@myela/payments 0.2.1”- Added the modifier breakdown:
amountBase,amountSurcharge,amountTax,amountTip. - Added
error.detailCode. - Breaking, types only: removed fields the API never returns, including the
succeededandpartially_authorizedstatuses,declineReason, and paymentdescriptionandmetadata.
@myela/elements 0.1.0
Section titled “@myela/elements 0.1.0”- Added
card.quote({ tip }),card.chargeModifiers, and theChargeModifierandQuotetypes. - Changed: the frame refuses rather than degrades.
- Fixed the undeclared
ElementsOptionstype.