#zyondev-default-pm

1 messages · Page 1 of 1 (latest)

mortal questBOT
#

Hello! 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.

mellow blade
#

In what context @spare pawn ? Can you share more about what you are trying to do?

mortal questBOT
#

zyondev-default-pm

spare pawn
#

I’d want to know which of the available saved PMs the user wants to use as a default PM

white hull
#

👋 Stepping in for my teammate. I'll need more details on your specific scenario. What are you trying to do exactly? Is your goal to show a customer all of their saved PMs, allow them to pick one as the default, then set the default on Stripe?

spare pawn
#

Yes exactly

white hull
#

Okay. Where are you stuck exactly?

spare pawn
#

Which field determines which of the PMs is set to the default PM

#

And which field to update to set as PM

white hull
#

You'll want to work with invoice_settings.default_payment_method on the Customer object

#

There's no property on the PM itself for whether or not it's the customer's default.

spare pawn
#

Got it

#

Thanks

white hull
#

@spare pawn let's chat here

#

Adding this from the main channel:

For connected accounts, when allowing the user to connect their direct debit card for payouts using my app or website, how should I configure my payment sheet to only accept debit cards. Am I supposed to use Payment Sheet or some other method to register the connected users debit card?

#

I assume you're working with Custom connected accounts?

spare pawn
#

Yes that’s right

white hull
#

Since only debit cards are supported for payouts, I'm looking into how you can quickly validate whether it's a debit card or not

#

Ah, looks like you'll need to inspect the token. The token's card.funding value should tell you whether this is a debit card or something else

spare pawn
#

ok i have a custom form currently, but I was wondering about PCI compliance.. you know how by default accounts are blocked from using custom forms for collecting cards for payments? so the same doesn't apply to collecting debit cards?

white hull
spare pawn
#

what about from a react native app?

#

my current implementation sends the card data over my api server, then creates a stripe token on my server

white hull
#

Hm, I think you should be able to use the CardField or CardForm components, though let me confirm

spare pawn
#

ok

white hull
#

Yes, that's correct. You can use either the CardField or CardForm component. The one you use is up to you; CardForm is multi line while CardField is a single line)

spare pawn
#

Got it I’ll will use CardField

#

It’ll return what I need

#

To send to my server

#

To create the card token?

#

And could you pls send me the docs for CardField?

white hull