Open mikkoville opened 2 weeks ago
Hey @mikkoville - Can you double-check that your App Link is a web link that uses the HTTP and HTTPS schemes?
https://developer.android.com/training/app-links#android-app-links
Note that this is different than the deep link URIs used in the previous deep link implementation.
@tdchow yes we are using HTTPS scheme for the app link.
I also specified the intent filter with autoVerify like in the demo app.
Do you have any insights which url is the error pointing to? Is it about our app link we pass to the PayPalClient?
@mikkoville I believe the error is related to the appLinkReturnUrl
passed into the PayPalClient
constructor. This error is not defined in the SDK but is an API error response.
Braintree SDK Version
5.0.0
Environment
Sandbox
Android Version & Device
Pixel 8 pro
Braintree dependencies
com.braintreepayments.api:paypal
Describe the bug
I tried to migrate to v5 following the migration guide.
We are only using the PayPal payment method.
After I call
payPalClient.createPaymentAuthRequest()
it returns me an error "Invalid URL". I can see this error coming from:BraintreeClient#sendpost()
statusCode=422
&errorResponse="{"error":{"message":"Invalid URL"},"fieldErrors":[]}"
Which url is this error pointing to?
I have setup app links following the APP_LINK_SETUP.md
I am setting same url in PayPal control panel & when I init
PayPalClient
like in the migration guide.Here is my vaultRequest:
To reproduce
val vaultRequest = PayPalVaultRequest(false) vaultRequest.billingAgreementDescription = "test" payPalClient.createPaymentAuthRequest(this, vaultRequest)
And create the request following v5 migration guide
Expected behavior
I should be shown the PayPal web view
Screenshots
No response