#siddarth_api
1 messages · Page 1 of 1 (latest)
👋 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/1311935276834230383
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- siddarth_api, 12 minutes ago, 13 messages
- siddarth_api, 16 hours ago, 14 messages
- siddarth_api, 18 hours ago, 71 messages
- siddarth_api, 20 hours ago, 27 messages
- siddarth_api, 1 day ago, 35 messages
- siddarth_api, 1 day ago, 30 messages
then make sure that the customer provides a valid email address?
is it mandatory for verify microdeposit, or any alternate solution if customer does not provide any email address
and in my below code i have 2 approaches, please explain which one is correct and which one to choose in what conditions> Approach1:
var setupIntentOptions = new SetupIntentCreateOptions
{
Customer = customer.Id,
PaymentMethodTypes = new List<string> {
//"card",
"us_bank_account",
},
};
var setupIntentService = new SetupIntentService();
var setupIntentResult = await setupIntentService.CreateAsync(setupIntentOptions);
Approach 2:
var setupIntentOptions = new SetupIntentCreateOptions
{
Customer = customer.Id,
PaymentMethodTypes = new List<string> { "us_bank_account" },
PaymentMethodOptions = new SetupIntentPaymentMethodOptionsOptions
{
UsBankAccount = new SetupIntentPaymentMethodOptionsUsBankAccountOptions
{
//VerificationMethod = "instant",//"instant", //"microdeposits"
FinancialConnections = new SetupIntentPaymentMethodOptionsUsBankAccountFinancialConnectionsOptions
{
Permissions = new List<string> { "payment_method", "balances" },
},
},
},
};
var setupIntentService = new SetupIntentService();
var setupIntentResult = await setupIntentService.CreateAsync(setupIntentOptions);
is it mandatory for verify microdeposit, or any alternate solution if customer does not provide any email address
In https://docs.stripe.com/payments/ach-direct-debit/set-up-payment, it mentions
Including the account holder’s name in the billing_details parameter is required
...
If you supplied a billing email, Stripe notifies your customer via this email when the deposits are expected to arrive.
So no, billing email is not mandatory. If it's not provided, then it's up to you to build your own page to allow your customers to complete the verification using verifyMicrodepositsForSetup if required
I don't understand your question about your code. If you're running into a specific issue, then explain to us in detail what is the problem you're facing
So no, billing email is not mandatory. If it's not provided, then it's up to you to build your own page to allow your customers to complete the verification using verifyMicrodepositsForSetup if required : in this case how do I verify micordepositForSetup? how will I get code from the customer to verify?
build your own input fields to get the information necessary from the customer to verify
hmm ok but at the end verification is required to make the setup intent succeed/complete correct?
to proceed further for payment intent
at the end verification is required to make the setup intent succeed/complete correct
yes, correct
ok got it thanks. coming to the code part
Approach 2:
var setupIntentOptions = new SetupIntentCreateOptions
{
Customer = customer.Id,
PaymentMethodTypes = new List<string> { "us_bank_account" },
PaymentMethodOptions = new SetupIntentPaymentMethodOptionsOptions
{
UsBankAccount = new SetupIntentPaymentMethodOptionsUsBankAccountOptions
{
//VerificationMethod = "instant",//"instant", //"microdeposits"
FinancialConnections = new SetupIntentPaymentMethodOptionsUsBankAccountFinancialConnectionsOptions
{
Permissions = new List<string> { "payment_method", "balances" },
},
},
},
};
i am passing paymentmethodoptions, why is it required and for what please xplain
why do you think paymentmethodoptions is required? Have you tried omitting it?
I have tried it but not analysed the result, It is required for UsBankAccount correct? what will happen if I ommit paymentmethodoptions, will it still be verify microdeposit?
I’m a bit confused by your comment about trying it without analyzing the results. If you’ve attempted it, you should be able to determine whether it’s necessary.
Please take the time to test and understand how everything works. This will help you greatly in the long run.