-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
COAND-863
- Loading branch information
Showing
2 changed files
with
50 additions
and
43 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
## Enabling Address Lookup Functionality | ||
- You can enable this feature by setting your address configuration to lookup while building your card configuration as follows: | ||
```kotlin | ||
CheckoutConfiguration(environment = environment, clientKey = clientKey) { | ||
card { | ||
setAddressConfiguration(AddressConfiguration.Lookup()) | ||
} | ||
} | ||
``` | ||
## Integrating with Address Lookup Functionality | ||
- If you're integrating with Drop-in: | ||
- Implement the mandatory `onAddressLookupQueryChanged(query: String)` callback and optional `onAddressLookupCompletion(lookupAddress: LookupAddress)` callback. | ||
- Pass the result of these actions by using `AddressLookupDropInServiceResult` class. | ||
- If you're integrating with standalone `CardComponent`: | ||
- Set `AddressLookupCallback` via `CardComponent.setAddressLookupCallback(AddressLookupCallback)` function to receive the related events. | ||
- Pass the result of these actions by calling `CardComponent.setAddressLookupResult(addressLookupResult: AddressLookupResult)`. | ||
- Delegate back pressed event to `CardComponent` by calling `CardComponent.handleBackPress()` which returns true if the back press is handled by Adyen SDK and false otherwise. |