#elefint - error
1 messages · Page 1 of 1 (latest)
Can you share more details about the error?
Including request IDs and a screenshot?
Sorry i thought I copied it all over
// CREATE PAYMENT INTENT var intentCreateOptions = new PaymentIntentCreateOptions { Amount = unit_amt, Currency = "eur", Customer = customer.Id, Confirm = true, CaptureMethod = "automatic", PaymentMethodOptions = new PaymentIntentPaymentMethodOptionsCardOptions { Moto = true } };
That's the code for creating the payment intent with moto
think I have got confused somewhere
I am using the .NET SDK
Can you share a request ID and the error message?
Sorry I am unable to run the code to get a request id but the error I am getting is this:
Cannot implicitly convert type 'Stripe.PaymentIntentPaymentMethodOptionsCardOptions' to 'Stripe.PaymentIntentPaymentMethodOptionsOptions'
I used PaymentMethodOptions, I think that is where I am going wrong but I can't see what other way to pass it
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
This is the link to API im going through
Find help and support for Stripe. Our support center 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.
Can you go to logs and share the request ID?
Sorry i feel really silly duchess
this was the solution
var intentCreateOptions = new PaymentIntentCreateOptions
{
Amount = unit_amt,
Currency = "eur",
Customer = customer.Id,
Confirm = true,
CaptureMethod = "automatic",
PaymentMethodOptions = new PaymentIntentPaymentMethodOptionsOptions
{
Card = new PaymentIntentPaymentMethodOptionsCardOptions
{
Moto = true
}
}
};
Sorry for wasting your time
Thank you, have a great day!
Same to you