#sg-pushpaveni_code

1 messages ยท Page 1 of 1 (latest)

unborn brookBOT
worn onyxBOT
#

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.

unborn brookBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1260128770942304316

๐Ÿ“ Have more to share? Add details, code, screenshots, videos, etc. below.

normal lotus
west dome
#

ok, few mins, I will get it from dashboard

#

req_zysxFe0Cfn9dm1 - /v1/setup_intents
req_AWmZdLyEux2Kbr - /v1/setup_intents/seti_1PaXlmEtzJLzN4BfcFdBXPNM/confirm
req_E5t2ZXfmmUp103 - /v1/customers

After this Im trying to create the PaymentIntent as below to charge/get the payment from given IBAN account. And getting the error as "Stripe.PaymentIntentCreateOptions.PaymentMethodTypes.get returned null"

var paymentIntentOptions = new PaymentIntentCreateOptions
{
PaymentMethod = stripePaymentMethodId,
PaymentMethodTypes = { "sepa_debit" },
Amount = stripeChargeAmount,
Currency = CurrencyType,
Description = PaymentDescription,
SetupFutureUsage = "off_session",
Customer = stripeCustomerId,
};

#

these changes are for SEPA direct debit migration process

#

Am I missing any parameter for the paymentIntentCreateOptions?

normal lotus
#

PaymentMethodTypes = { "sepa_debit" },
should be
PaymentMethodTypes = ["sepa_debit" ]

west dome
#

ok

normal lotus
#

And I don't think you need to set SetupFutureUsage in the payment_intent creation request.

west dome
#

the above error is resolved now

#

but I get a new error for this

#

var service = new PaymentIntentService();
paymentIntent = service.Create(paymentIntentOptions);

normal lotus
west dome
#

Stripe.StripeException: 'When confirming a PaymentIntent with a sepa_debit PaymentMethod and setup_future_usage, mandate_data is required.'

normal lotus
#

I think I've told you to remove SetupFutureUsage

west dome
#

req_unX1caNrr8LsES

normal lotus
#

Remove SetupFutureUsage and try again

west dome
#

ok sure

west dome
#

thanks for support, the payment intent works now

#

kindly let me know about this - when SetupFutureUsage has to be used

normal lotus
west dome
#

I have added this property "SetupFutureUsage" for recurring payments which we trigger on monthly basis for that same customer

normal lotus
#

No, it's not necessary

west dome
#

oh ok fine

unborn brookBOT
west dome
#

can I simply use the PaymentMethod id when triggering the monthly recuring payments?
'pm_1PaGEnEtzJLzN4BfRRj5IHKy'

wooden nimbus
west dome
#

ok, I will check it out
thanks for the support ๐Ÿ™‚

wooden nimbus
#

Happy to help.