#satvik-techie_code

1 messages · Page 1 of 1 (latest)

astral thistleBOT
#

👋 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.

vocal parrotBOT
#

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.

opal jasper
#

Stripe.StripeException: 'Missing required param: payment_method_data[card].'

#

CreatePaymentIntent method

vocal parrotBOT
sour mantle
opal jasper
#

sure req_mm52WCHpOYxLJQ

#

is my requets id

sour mantle
#

Can you try removing payment_method_data hash?

astral thistleBOT
tribal quail
#

👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!

opal jasper
#

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);

  })

}

tribal quail
#

it's on your backend code

opal jasper
#

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);
tribal quail
#

you just remove this
PaymentMethodData = new PaymentIntentPaymentMethodDataOptions { Type = "card" },

opal jasper
#

okay