#davedeji_unexpected
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1369685682892705843
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- davedeji_unexpected, 17 hours ago, 42 messages
- davedeji_unexpected, 5 days ago, 4 messages
Hi just picking up where i left off yesterday with updating the android sdk and run into this issue
not sure how add the link configuration as that seems to be marked as internal in the stripe android SDK
Hmm that is surprising, our example code shows initializing the configuration in a similar way
paymentIntentClientSecret,
PaymentSheet.Configuration(
merchantDisplayName = "My merchant name",
customer = customerConfig,
// Set `allowsDelayedPaymentMethods` to true if your business handles
// delayed notification payment methods like US bank accounts.
allowsDelayedPaymentMethods = true
)
)```
https://docs.stripe.com/payments/accept-a-payment?platform=android
yeah thats what i started with, updated sdk yesterday if youre able to see the previous chats to try turn of the link parameter using a newly added link configuartion field
Just to test, if you move that code to within the present payment sheet call where it is needed does the error go away? I'll ask a colleague that knows more about Android, but I wonder if there is some language syntax weirdness going on
after adding the link parameter is where there's an issues
this (what i had previously) works fine without the link configuration
Ah gotcha, I missed when you said that earlier. Taking a look
Looking in to this with a colleague. What SDK version are you using here?
It looks like link configuration wasn't added until 21.8.0, are you using a version that is 21.8.0 or later?
https://github.com/stripe/stripe-android/blob/v21.13.0/CHANGELOG.md?plain=1#L55
hi
@cerulean stream got this going and updated sdk on ios and android yesterday thanks. seeing this current issue on android somehow its not letting me configure the link as its marked internal?
Hi hi! Iโm going to be taking over for my colleague here, but another colleague is also still looking into this.
This was working yesterday?
no, i was just referring to getting started on the changes you suggested yesterday to help remove the link button.
Ah cool, awesome. ๐
What IDE / code editor are you using?
android studio
Version?
Can you go through these steps - carefully of course ๐ - and see if any of them help?
Android Studio Koala Feature Drop | 2024.1.2 Patch 1
Build #AI-241.19072.14.2412.12360217, built on September 12, 2024
Runtime version: 17.0.11+0-17.0.11b1207.24-11852314 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
sure i can give that a try
i guess if we could confirm this as well
becasue my understanding is if this is marked as internal i would not be able to access / configure this
is this supposed to be showing up as internal in the source code, or is there something else that i could be missing?
Oh, that's fun.
tried these by the way, didnt help unfortuantely ๐ฆ
Shoot.
hi any updates here?
๐
I'm not an Android dev but we do include the LinkConfiguration in our Android API Ref: https://stripe.dev/stripe-android/paymentsheet/com.stripe.android.paymentsheet/-payment-sheet/-link-configuration/index.html
So it does seem like that should be accessible ๐ค
But yeah I do see what you are saying about it being marked internal
yeah, i have seen that and gone through those. the link configuration class is accessible as shown in the screenshots, the constructor for the payment sheet however does not seem to allow the use of the link parameter as its marked internal in the stripe SDK
this is why i am wondering if theres some error on my part or another way to initialize this i am missing
Hmm it seems you may have to use the Builder method: https://stripe.dev/stripe-android/paymentsheet/com.stripe.android.paymentsheet/-payment-sheet/-configuration/-builder/link.html
Though I'm not sure why you wouldn't be able to pass it straight to the constructor
Thats interesting, and probably something that might need to be updated on the sdk. The builder version worked, but the constructor version above it doesnt
Thanks for the help
Well glad it is working, and yep I'll file some feedback about that!
awesome, thanks again