#sofi-kry_customer-sheet-selected-pm

1 messages Β· Page 1 of 1 (latest)

silk cosmosBOT
#

πŸ‘‹ 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/1341803320318099477

πŸ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

wheat jacinth
#

Hm can you share 2 example payment method id's?

#

The one that is selected and the one that isn't

bitter lintel
#

Not selected pm_1QuFxOF0F6bEajPqSakWkuu9

#

Selected pm_1QuFyNF0F6bEajPqSTdF840q

wheat jacinth
#

Or did you do that after the fact?

#

That detach request was made on ~40 seconds after the PM was created though

bitter lintel
#

I did it after

#

I can try again and send you a new id if you need

wheat jacinth
#

No this is fine

bitter lintel
#

Not sure it makes any difference, but one difference I notice in the response body of the request to POST /v1/payment_methods is that one has card country US and the other one IE, the rest seems to be exactly the same (except card specific details of course)

wheat jacinth
#

Yeah not sure if that would matter

#

In both cards' cases, you select the option to set as default?

#

Also do you have screenshots of the issue?

bitter lintel
#

There's no option to set as default, the option is to save

silk cosmosBOT
bitter lintel
wheat jacinth
#

Customers can add and remove payment methods, which get saved to the customer object, and set their default payment method stored locally on the device

#

I assumed that last bit was what you were talking about

bitter lintel
#

mm I don't mean to store that locally

wheat jacinth
#

What do you mean by When displaying the customer sheet, the default payment method does not appear as selected when the card saved is "normal". then?

#

The customer does not have default payment method set

bitter lintel
#

So I click Pay on my test screen, and it triggers the payment sheet as in the screenshot.

#

Then we have an option to manage your cards, which is the one that triggers the customer sheet

#

With our previous implementation, saving the card would also mark it as default, and that is still the case when I use the 3D secure card

wheat jacinth
#

Ok I think the terminology is getting confused then

#

The card isn't the default payment method

#

You're just confused why it's not being selected in the ui when it's the only payment method attached to the customer

bitter lintel
#

Yes, but also why is it inconsistent?

wheat jacinth
#

Got it

bitter lintel
#

My expectation is for the saved card to be selected as default if it's the only one

#

That's how it was working prior the migration

#

Maybe it's relevant to say that we're presenting the payment sheet before the intent creation, our setup is not the main one recommended.

#

In any case, I don't see why one case works and the other doesn't πŸ€” The difference is that for the 3D secure we are confirming the intent, maybe it affects things somehow?

hybrid mirage
#

Hi πŸ‘‹

I'm stepping in for my colleague as they need to go soon

bitter lintel
#

I will need to leave soon as well

hybrid mirage
#

If you have to take off then I recommend writing in to Support so that we can debug this async and get back to you with a more detailed answer.

bitter lintel
#

Could we continue here async? I can check later today if there's been any update

hybrid mirage
#

We don't handle threads async on Discord. This server is for real time chats. If it goes inactive for a period time (20-45 minutes) we close and lock the thread.

bitter lintel
#

alright, I still have about 30 minutes before I need to leave

hybrid mirage
#

I can provide you with a link that will copy this thread into the support case and ensure it gets routed straight to us

silk cosmosBOT
#

Hello @bitter lintel, we have sent you a direct message, please check it at https://discord.com/channels/@me/1341817411543765154

  • πŸ”—The message has instructions on how to open a direct support case with our Developer Support team, in order to help you more effectively.
hybrid mirage
#

Because we handle multiple threads here, it can be hard to dig into more complex integrations like Android. Having the support case will allow us to take the time to spin up a reproduction of your app's logic and validate the behavior you are seeing

bitter lintel
#

alright, thank you

hybrid mirage
#

I wanted to circle back and let you know we've received your email and are already working on reproducing the behavior.