Stripe | Financial Infrastructure to Grow Your Revenue

Stripe | Financial Infrastructure to Grow Your Revenue

4466 articles

Update Details


The UpdateDetails object This object is passed to the updateWith callback on a PaymentRequest's shippingaddresschange and shippingoptionchange events. - status The browser uses this value to show an error message to the customer if they‘ve taken an action that invalidates the payment request. The value must be one of the following: - 'success' Let the customer proceed. - 'fail' Prevent the customer from making the change they just made. - 'invalid_shipping_address' Equivalent to fail, except we show a more specific error message. Can only be used in a shippingaddresschange handler. - total The new total amount, if applicable, as a PaymentItem object. - displayItems An array of PaymentItem objects. These PaymentItems are shown as line items in the browser‘s payment interface. Note that the sum of the line item amounts does not need to add up to the total amount above. - shippingOptions An array of ShippingOption objects. The first shipping option listed appears in the browser payment interface as the default option. - applePay Specify Apple Pay specific options. These are passed through to the Apple Pay API. - recurringPaymentRequest Specify a request to set up a recurring payment. See the Apple Pay documentation for more details. - paymentDescription - managementURL - regularBilling - amount - label - recurringPaymentStartDate - recurringPaymentEndDate - recurringPaymentIntervalUnit - recurringPaymentIntervalCount - trialBilling - amount - label - recurringPaymentStartDate - recurringPaymentEndDate - recurringPaymentIntervalUnit - recurringPaymentIntervalCount - automaticReloadPaymentRequest Specify a request to set up an automatic reload payment. See the Apple Pay documentation for more details. - paymentDescription - managementURL - automaticReloadBilling - amount - label - automaticReloadPaymentThresholdAmount

Last verified 2026-09-24

Is this helpful?