-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Apple Pay): allow for customization of event updates
Adds the ability for listeners on the various Apple Pay emitters to accept a `complete` callback as the second argument. If the callback names this argument, then the SDK will defer the execution to that callback instead of resolving itself. The interface for each callback depends on the triggering event, but this opens up the ability to fetch custom taxes on payment method selection, update shipping costs on shipping contact/method selection and validate email/phone addresses on authorization. This also enhances the `token` event to include the raw payment event as the second argument.
- Loading branch information
Showing
2 changed files
with
174 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.