@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/index.js +4 -4
- package/index.mjs +4 -4
- package/package.json +1 -1
- package/payrails.d.ts +5 -1
- package/payrails.js +4 -4
package/package.json
CHANGED
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;
|