New
- New: In the sessions flow, the Donation component now cancels the donation token when the shopper declines, and calls
onDonationSuccess({ didDonate: false })once that request completes. (#4325)
Improvements
-
Improved: Detecting a new configuration failure from SecuredFields and generating an analytics error events for it (code: 503) (#4339)
-
Improved: Null-safety in Drop-in and hide the deducted balance of a partial payment when its amount is missing. (#4318)
-
Improved: UIElement.onComplete is renamed to UIElement.onActionComplete (#4289)
Bug fixes
-
Fixed: Google Pay now handles a missing wallet SDK safely and reports missing required configuration as an
IMPLEMENTATION_ERROR. (#4310) -
Fixed: Calling
actions.reject()inbeforeSubmitno longer triggersonPaymentFailedfor Apple Pay, Google Pay, Amazon Pay and ANCV. (thanks to @24tiy) (#4331) -
Fixed: Missing keyboard focus indicator on the amount radio buttons of the Donation component. (#4350)
-
Fixed: Types were made more strict within the Apple Pay component. (#4314)
-
Fixed: ANCV no longer makes the payments call when the order could not be created, and its pay button is re-enabled so the shopper can try again. (thanks to @24tiy) (#4331)
-
Fixed: Calling
checkout.update({ secondaryAmount }, { shouldReinitializeCheckout: false })without anamountnow falls back to the current amount instead of cancelling the update with an "Invalid amount object" warning. (#4306) -
Fixed: Keyboard users can now navigate back to a single stored card (or single regular payment method) in Drop-in after selecting another payment method (#4343)
-
Fixed: copying to the clipboard no longer raises an unhandled error when the fallback copy input cannot be created (#4319)
-
Fixed: Null-safety in the SDK core, analytics and payment-methods processing, and
onAdditionalDetailsnow typescomponentas possiblyundefinedsince it is not passed when called viacheckout.submitDetails(). (#4306) -
Fixed: Strict nul checks, and improved unit test coverage in the Securedfields dir (#4307)
-
Fixed: iOS keypadFix no longer steals focus from unrelated elements when no SecuredField has focus (#4296)
-
Fixed: Setting
risk.onComplete,risk.onErrororsrConfig.nodetoundefinedno longer throws. (#4321)