#aditya_10116

1 messages · Page 1 of 1 (latest)

modest pineBOT
#

Hello aditya_10116, we'll be with you shortly! 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.
https://discord.com/channels/841573134531821608/1164170555910529024, 0 days ago, 12 messages
https://discord.com/channels/841573134531821608/1164159303146549278, 0 days ago, 15 messages
https://discord.com/channels/841573134531821608/1164117629141794856, 0 days ago, 26 messages

twin thunder
#

hi! I'm a bit confused, what code is this? What is setBrandChangeCallback and what class is PaymentBsBinding? I'm not familiar with these being part of the Stripe SDKs.

digital birch
#

This code is from Android studio written in Java.
I am creating an custom UI to receive user's card details
Sharing screenshot.

#

While in the code I am trying to listen to the brand changes as soon as user enters card number into the card number edit text with the function setCompletionCallback$payments_core_release

twin thunder
#

ah hmm, ok.

#

I haven't used Java for an Android app in years and don't have a project using CardNumberEditText set up right now but I can try see what I find. Were their particular docs you were looking at that told you to write that code or that it's even possible to listen to that event?

digital birch
#

No, I am trying it myself.

digital birch
#

Yes, I tried using that. But that is not customizable.

twin thunder
#

I'm pretty sure CardNumberEditText is an internal class, not something you use directly

#

what customisation specifically do you need?

digital birch
#

I am not able to set the background color or borders or text or hint colors.

twin thunder
#

I think it's possible somehow, but I haven't looked at these components in multiple years now, we really suggest using the PaymentSheet instead and that's where all our ongoing work and knowledge goes. But let me see what I can find.

digital birch
#

I tried using Payment sheet. However, the flow I am trying to establish needs to create a payment method out of the card details entered by user within PaymentSheet. But, Payment sheet does not have any way to do that.

twin thunder
#

what exact flow is it that you need?

#

as for customising the CardForm component I think it's possible since I was able to do things with it in our React Native wrapper SDK , not sure right now how to do it using Android directly. I think you edit the layout XML and pass style the same as any other Android component but sorry, I haven't looked at this stuff in a while so my brain is still warming up.

digital birch
#

Oh yes! It took my whole day on that.. I tried ..idk every way to customize it .. with styles and what not..
It does not respond to any of the code...

#

Basically, I am facing problem related to creating a subscription on stripe.

twin thunder
#

not surprising since we still don't have docs for how to do that with our mobile SDKs, unfortantely

digital birch
#

YES!.. I almost crawled through every documentations of yours..

twin thunder
#

my colleague Tarzan explained earlier today though how to do it, you create a Subscription on the backend using default_incomplete and then you can use the latest_invoice.payment_intent on the app with PaymentSheet.

digital birch
#

OK? That is new.

twin thunder
#

not sure what you mean. It's this conversation you had.

digital birch
#

Ok. That's great!

#

Let me go through this docs and can I ping you back once I am clear with that ?

twin thunder
digital birch
#

I am here already.... you there?

#

Are you there @twin thunder

#

?

twin thunder
#

yes

digital birch
#

Thanks!

#

So I receive, subscription ID and clientSecret

twin thunder
#

from your backend, yes.

digital birch
#

now to show the payment sheet..

#

I just use the client secret to present payment sheet..

twin thunder
#

yep

digital birch
#

am I suppose to pass the subscription ID in any way to the payment sheet?

twin thunder
#

no, it doesn't need it

digital birch
#

Oh my god! Thanks a lot!! you are a savior!

#

IG that will definitely work... maybe I just skipped this part everytime!

#

Thanks again!

twin thunder
#

it should work, I just implemented it there myself while were talking

digital birch
#

I am thrilled! Thanks!

twin thunder
digital birch
#

Perfect!!