#milashin-multi-cards
1 messages · Page 1 of 1 (latest)
Hi there, when you mention link several cards to one account, are you referring to adding multiple credit cards to the same Customer?
Sorry, I meant accaunt
Yes
Yes, most definitely, in fact, it is not limited to cards, you can create any PaymentMethod [0] and attach to the Customer [1] 🙂
[0] https://stripe.com/docs/api/payment_methods/create
[1] https://stripe.com/docs/api/payment_methods/attach
The question is, the first time I give this action to stripe via onboard. How do I get the link to update or add new data again?
I was wondering what "onboard" is referring to?
Onboarding
Connect Onboarding flow
I'm not sure I understand what you are trying to do.
You onboarded a Connect account, and you would like to updated their payment details?
Yes
With the API it's possible to update a connected account with https://stripe.com/docs/api/accounts/update
And there you can pass a external_account parameter. It's a card or bank account to attach to the account for receiving payouts https://stripe.com/docs/api/accounts/update#update_account-external_account
And can I add multiple cards to one account?
The link I just shared mention:
By default, providing an external account sets it as the new default external account for its currency, and deletes the old default if one exists. To add additional external accounts without replacing the existing default for the currency, use the bank account or card creation API.
StripeConfiguration.ApiKey = "sk_test_51JoXDhDvVKOrBzHUkf80xnteuSNFpXWHq9Uq2DwgU0Rv2YAkMlHRFJFg4udOSkF87o28cLkfTh8HfDV12St7GPSt00RX81HA5R";
var options = new CardCreateOptions
{
Source = "tok_visa",
};
var service = new CardService();
service.Create("cus_KwxfvWQRFoCZUx", options);
In the example there is only code for customer
How do I link new card to account?
To make API calls on connected account, you need to use the stripe-account header as explained here: https://stripe.com/docs/connect/authentication
var options = new CardholderCreateOptions
{
Billing = new CardholderBillingOptions
{
Address = new AddressOptions
{
Line1 = "123 Main Street",
City = "San Francisco",
State = "CA",
PostalCode = "94111",
Country = "US",
},
},
Email = "jenny.rosen@example.com",
PhoneNumber = "+18008675309",
Name = "Jenny Rosen",
Status = "active",
Type = "individual",
};
var requestOptions = new RequestOptions();
requestOptions.StripeAccount = "acct_1KGp0URnbN88WQRa";
var service = new CardholderService();
var card = service.Create(options, requestOptions);
What am I doing wrong?
The first error means you are trying to use the Stripe Issuing product, which is an invite-only: https://stripe.com/en-gb-fr/issuing
Let's explain the problem again:
- We create an express account using Onboarding
- The user independently (using the link that we generated), through the web interface, fills in all the necessary data and binds the card
How can we add another card to this user account? How can we change the data of an already linked card?
@stable dove you redirect them to the Express dashboard and they do it themselves there
ah no wait.
when you say Card you mean, a card for "pay-ins"? Like what we talked about before, a Customer on your platform account that you charge and pretend is the same person as the connected account in your system?
because that has nothing to do with CardholderCreateOptions which as Soma said is about Issuing which is a totally different product
unfortunately you seem very lost