#zyondev-default-pm
1 messages · Page 1 of 1 (latest)
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.
- zyondev, 4 minutes ago, 10 messages
- zyondev-payment-sheet, 1 hour ago, 15 messages
In what context @spare pawn ? Can you share more about what you are trying to do?
I’d want to know which of the available saved PMs the user wants to use as a default PM
👋 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?
Yes exactly
Okay. Where are you stuck exactly?
Which field determines which of the PMs is set to the default PM
And which field to update to set as PM
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 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?
Yes that’s right
You will need to use a custom form to collect card information. We mention this here, albeit it's kind of buried:
https://docs.stripe.com/connect/payouts-bank-accounts?bank-account-collection-integration=direct-api&bank-account-collection-method=manual-entry
To collect debit card details, you must use a custom form.
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
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?
You can still use Stripe.js to create the token: https://docs.stripe.com/js/tokens/create_token?type=cardElement
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
Hm, I think you should be able to use the CardField or CardForm components, though let me confirm
ok
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)
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?
I don't have a specific docs for using CardField for payouts but you could start here: https://docs.stripe.com/payments/accept-a-payment?platform=react-native&ui=custom
use CardField to create a token, and then use this token server side to create an Externalaccount