Repository navigation
1.5.0
·
4 commits
to main
since this release
Minor Changes
- a6450aa:
paymentRequestsheets can offer a promo code field: setrequestPromoCode, prefill a code withappliedPromoCodeandappliedPromoDescription, and answeronPromoCodeChange: any answer without anerrorapplies the code, with a newamountwhen it changes the total, and anerrorrefuses it. If your handler throws, rejects, or doesn't answer within 10 seconds, the sheet refuses that code. Callupdate({ amount, lineItems, shippingOptions })to change what the sheet shows; while a sheet is open,update()throws, so answer the change events to change it.canMakePayment({ types })checks only the wallets you list, and its result includes each available wallet's official button art. (#33780) - a6450aa: The
emailandaddresselements takelabelMode: "floating", in both address layouts. Each field shows its label as the placeholder until it has a value, then the text moves down and a small label fades in above it.abovestays the default. (#33780) - prop "labelMode" added (
payments.address.props.labelMode) - prop "labelMode" added (
payments.email.props.labelMode) - resource option "requestPromoCode" added (
payments.paymentRequest.options.requestPromoCode) - resource option "appliedPromoCode" added (
payments.paymentRequest.options.appliedPromoCode) - resource option "appliedPromoDescription" added (
payments.paymentRequest.options.appliedPromoDescription) - resource method "update" added (
payments.paymentRequest.methods.update) - resource event "promoCodeChange" added (
payments.paymentRequest.events.promoCodeChange) - resource event failure answer "promoCodeChange" added (
payments.paymentRequest.replyFail.promoCodeChange) - resource live option "amount" added (
payments.paymentRequest.liveOptions.amount) - resource live option "lineItems" added (
payments.paymentRequest.liveOptions.lineItems) - resource live option "shippingOptions" added (
payments.paymentRequest.liveOptions.shippingOptions)