Skip to content

Commit

Permalink
Merge pull request #311 from Adyen/readme-android
Browse files Browse the repository at this point in the history
Improve README.md
  • Loading branch information
descorp authored Nov 14, 2023
2 parents d12b281 + b97657f commit ecff8d9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,16 +99,20 @@ defaultConfig {
</intent-filter>
```

3. To enable standalone redirect components, return URL handler to your Checkout activity `onNewIntent`:
3. To enable standalone redirect components, return URL handler to your Checkout activity `onNewIntent` in `MainActivity.java`:
```java
import android.content.Intent;

...

@Override
public void onNewIntent(Intent intent) {
super.onNewIntent(intent);
AdyenCheckout.handleIntent(intent);
}
```

4. To enable GooglePay, pass state to your Checkout activity `onActivityResult`:
4. To enable GooglePay, pass state to your Checkout activity `onActivityResult` in `MainActivity.java`:
```java
@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
Expand Down

0 comments on commit ecff8d9

Please sign in to comment.