#Dethsesh-ach-debit
1 messages ยท Page 1 of 1 (latest)
Hello ๐
Give me a moment to catch up and I'll respond as soon as I can ๐ thanks
thank you
do you mean something like this?
https://stripe.com/docs/payments/checkout/pay-what-you-want
Yes, but if I use that then it accepts credit card as well
unless there is a way to define payment_method, but I do not see this being available
right now i'm using something like this:
PaymentMethodOptions = new SessionPaymentMethodOptionsOptions
{
UsBankAccount = new SessionPaymentMethodOptionsUsBankAccountOptions
{
FinancialConnections = new SessionPaymentMethodOptionsUsBankAccountFinancialConnectionsOptions
{
Permissions = new List<string> { "payment_method" },
},
},
},```
๐ I'm hopping in since @small rapids had to heado ut
Can you share the full request ID you're using to create your checkout session?
on page load:
var options = new SessionCreateOptions
{
Mode = "payment",
//Customer = "{{CUSTOMER_ID}}",
PaymentMethodTypes = new List<string> { "us_bank_account" },
PaymentMethodOptions = new SessionPaymentMethodOptionsOptions
{
UsBankAccount = new SessionPaymentMethodOptionsUsBankAccountOptions
{
FinancialConnections = new SessionPaymentMethodOptionsUsBankAccountFinancialConnectionsOptions
{
Permissions = new List<string> { "payment_method" },
},
},
},
LineItems = new List<SessionLineItemOptions>
{
new SessionLineItemOptions
{
PriceData = new SessionLineItemPriceDataOptions
{
Currency = "usd",
UnitAmount = 50000,
ProductData = new SessionLineItemPriceDataProductDataOptions
{
Name = "Payment",
},
},
Quantity = 1,
},
},
SuccessUrl = "https://payment.sidoti.com/success?",
CancelUrl = "https://payment.sidoti.com/cancel",
};
var service = new SessionService();
Session session = service.Create(options);
sessionId = session.Id;
}
}
}```
Dethsesh, can you share a Request ID from your Dashboard (https://dashboard.stripe.com/logs) ? (It should begin with req_)
req_eXifSapNfYguSq
Thanks! Have you tried to follow the instructions to create a Price in https://stripe.com/docs/payments/checkout/pay-what-you-want?dashboard-or-api=api ? You should still be able to use payment_method_types with that integration and limit it to us_bank_account. Did that not work for you?
That's what I was looking at but I did not see the option to set payment methods there
I created a price in the dashboard
Ah, so you can use the same code you already have, but pass in the Price ID instead of PriceData.