@payrails/web-sdk 5.45.0-RC.2 → 5.45.0-RC.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@payrails/web-sdk",
3
- "version": "5.45.0-RC.2",
3
+ "version": "5.45.0-RC.3",
4
4
  "description": "SDK providing tokenization options on the client for merchants",
5
5
  "main": "index.js",
6
6
  "types": "payrails.d.ts",
package/payrails.d.ts CHANGED
@@ -725,7 +725,7 @@ interface ApplePayButtonOptions extends StoreInstrumentElementOptions {
725
725
  paymentScreenLabel?: string;
726
726
  };
727
727
  };
728
- events?: PaymentEvents & UIEvents & {
728
+ events?: PaymentEvents & Pick<UIEvents, 'onDeliveryAddressChanged'> & {
729
729
  onApplePayAvailable?: () => void;
730
730
  };
731
731
  styles?: {
@@ -758,6 +758,10 @@ declare class ApplePayButton extends PayrailsElementWithStoreInstrumentCheckbox
758
758
  * The session must be answered with `completeShippingContactSelection`
759
759
  * within ~30s or Apple aborts the sheet — so the merchant's
760
760
  * `onDeliveryAddressChanged` callback must be fast.
761
+ *
762
+ * `amount` is passed in (rather than read from `getSDKConfig()`) so the
763
+ * response carries the same total the session was created with, even if
764
+ * the SDK config is mutated mid-flow.
761
765
  */
762
766
  private onApplePayShippingContactSelected;
763
767
  private onApplePayAuthorized;