-
Our app uses the Android Drop-In integration and supports the PayPal payment method which redirects back from the PayPal website presented by the Drop-In sheet to the app. The payment works (i.e. I see PayPal payments in the Adyen console) but the SDK never returns a result to our own activity, so that the client cannot proceed and notify the shopper. Credit card payments, for example, work from start to finish, so the basic setup seems to be OK. We use a custom URL scheme such as myapp://app/shop/pay which is returned from the /sessions endpoint and works for iOS. The adyen-android sample integration (in this repo) does not register an IntentFilter for their redirect URL scheme in the sample app but rather seems to pick up the redirect in the DropInActivity. How do we tell the DropInActivity to expect and handle (PayPal) redirects to myapp://app/shop/pay? There does not seem to be documentation for that? I'll gladly try and get you further information about our particular use case if needed. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi @raginmari, thanks for reaching out to us. You're correct, when you're using Drop-in it handles the return from redirect itself and handles it in |
Beta Was this translation helpful? Give feedback.
-
Thanks. Is there any way to override this if I'm unable to use the adencheckout:// URI? For example, my client might not want to accept this limitation or there might be technical reasons because the merchant server is not under my control. |
Beta Was this translation helpful? Give feedback.
-
Hi again @raginmari. Unfortunately it is not possible to override this while using Drop-in because intent filter is defined internally. You can use a standalone component integration to achieve this, for that you would define your intent filter and catch the return from redirect yourself, then call |
Beta Was this translation helpful? Give feedback.
Hi @raginmari, thanks for reaching out to us. You're correct, when you're using Drop-in it handles the return from redirect itself and handles it in
DropInActivity
. In order for Drop-in to successfully handle the return,returnUrl
needs to start with a certain checkout scheme (adyencheckout
), and in order to generate the correct return url you need to useRedirectComponent.getReturnUrl(context)
.