#mr_stinky_pants
1 messages · Page 1 of 1 (latest)
Hello, can you tell me more about what you are trying to disable? ACH DD as a payment method? Or some setting that is affecting the account itself?
im assuming its coming from this page https://dashboard.stripe.com/settings/payments
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
its saying We've detected that you are using payment_method_types to configure payment methods.
but i dont have that in my code
That page would configure what shows up for automatic_payment_methods
Can you show me how you create your payment or setup intents?
someone just signed up with dd
const elements = stripe.elements(options);
const paymentElement = elements.create('payment');
paymentElement.mount('#payment-element');
What are you setting for the options parameter? And can you show me your server side code for creating the intent?
not setting any options
do i need to delete this beta? const stripe = Stripe("@PublicKey", { betas: ['address_element_beta_1'] });
That beta is irrelevant
but I don't have enough info to tell you what you need to do
Hence asking for that other code
is done with a subscription
SubscriptionCreateOptions subscriptionOptions = new SubscriptionCreateOptions
{
Customer = customer.Id,
Items = new List<SubscriptionItemOptions> { subscriptionItemOptions },
PaymentSettings = paymentSettings,
PaymentBehavior = "default_incomplete",
DefaultTaxRates = new List<string> { IsLocalHost ? "txr_1LuxQKJKY8YXH2zhWuLiNg9O" : "txr_1JIcpNJKY8YXH2zhAiuMdIH6" },
};
subscriptionOptions.AddExpand("latest_invoice.payment_intent");
SubscriptionService subscriptionService = new SubscriptionService();
Subscription subscription = subscriptionService.Create(subscriptionOptions);
then i get the intent with the webhook
case Stripe.Events.PaymentIntentSucceeded:
var paymentIntent = stripeEvent.Data.Object as PaymentIntent;
Ah that is actually determined by your invoice settings https://dashboard.stripe.com/settings/billing/invoice
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Unless you are manually setting it in the subscription's payment settings
SubscriptionPaymentSettingsOptions paymentSettings = new SubscriptionPaymentSettingsOptions
{
SaveDefaultPaymentMethod = "on_subscription",
};
oh yeah at bottom