#elefint - error

1 messages · Page 1 of 1 (latest)

obsidian iris
#

Can you share more details about the error?

#

Including request IDs and a screenshot?

onyx wraith
#

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

obsidian iris
#

Can you share a request ID and the error message?

onyx wraith
#

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

#

This is the link to API im going through

obsidian iris
#

Can you go to logs and share the request ID?

onyx wraith
#

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

obsidian iris
#

No problem

#

Glad you figured it out!

onyx wraith
#

Thank you, have a great day!

obsidian iris
#

Same to you