#satvik-techie_code
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/1227880561666822158
📝 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.
- satvik-techie_code, 19 hours ago, 30 messages
- satvikpatel_code, 1 day ago, 44 messages
Stripe.StripeException: 'Missing required param: payment_method_data[card].'
CreatePaymentIntent method
Can you share the request ID (req_xxx) of the error? Here’s how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
In https://dashboard.stripe.com/test/logs/req_mm52WCHpOYxLJQ, the payment method has been provided in payment_method field. You shouldn't need to set payment_method_data hash
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Can you try removing payment_method_data hash?
👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!
how to remove that ?
createPaymentMethod() {
debugger;
this._stripe
.createPaymentMethod(
{
type: 'card',
card: this.element,
billing_details : null,
ideal : null,
})
.subscribe((result) => {
//this.token = result;
console.log(result);
this.paymentMethodid = result.paymentMethod.id;
});
}
makePayment() {
this.createPaymentIntent(100).subscribe((result) => {
console.log(result);
})
}
it's on your backend code
var options1 = new CustomerCreateOptions
{
Name = "Satvik Patel",
Email = "satvik.patel@pib-insurance.com",
};
var service1 = new CustomerService();
var customer = service1.Create(options1);
var options = new PaymentIntentCreateOptions
{
Currency = "gbp",
PaymentMethodTypes = new List<string> { "card" },
Customer = customer.Id,
PaymentMethodData = new PaymentIntentPaymentMethodDataOptions { Type = "card" },
PaymentMethod= id,
PaymentMethodOptions = new PaymentIntentPaymentMethodOptionsOptions
{
Card = new PaymentIntentPaymentMethodOptionsCardOptions { Moto = true },
},
Confirm = true,
Amount = 5100,
};
var service = new PaymentIntentService();
var paymentIntent = await service.CreateAsync(options);
you just remove this
PaymentMethodData = new PaymentIntentPaymentMethodDataOptions { Type = "card" },
okay