#mr_stinky_pants

1 messages · Page 1 of 1 (latest)

river pewterBOT
tropic onyx
#

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?

plush basin
#

its saying We've detected that you are using payment_method_types to configure payment methods.

#

but i dont have that in my code

tropic onyx
#

That page would configure what shows up for automatic_payment_methods

#

Can you show me how you create your payment or setup intents?

plush basin
#

someone just signed up with dd

#

const elements = stripe.elements(options);

const paymentElement = elements.create('payment');
paymentElement.mount('#payment-element');
tropic onyx
#

What are you setting for the options parameter? And can you show me your server side code for creating the intent?

plush basin
#

not setting any options

#

do i need to delete this beta? const stripe = Stripe("@PublicKey", { betas: ['address_element_beta_1'] });

tropic onyx
#

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

plush basin
#

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;

tropic onyx
river pewterBOT
tropic onyx
#

Unless you are manually setting it in the subscription's payment settings

plush basin
#

SubscriptionPaymentSettingsOptions paymentSettings = new SubscriptionPaymentSettingsOptions
{
SaveDefaultPaymentMethod = "on_subscription",
};