#CapitanRex-paymentintents
1 messages · Page 1 of 1 (latest)
Hello! Can you provide a bit more detail about why this is unexpected? What status are you expecting instead?
var createOptions = new PaymentIntentCreateOptions
{
PaymentMethodTypes = new List<string>
{
"card",
},
Amount = total,
Currency = "usd",
ApplicationFeeAmount = fee,
Metadata = new Dictionary<string, string>
{
{"productId", card.ProductId},
{"customerId", !string.IsNullOrEmpty(card.CustomerId) ? card.CustomerId : " " },
{"quantity", card.Quantity.ToString() },
{"merchantId", product.MerchantId.ToString() },
{"address", " " },
},
Description = "CARD Charge [" + product.Name + "]",
};
var requestOptions = new RequestOptions();
requestOptions.StripeAccount = card.AccountId;
var create = service.Create(createOptions, requestOptions);
i have this in the backend
and this in the frontend
Whats the ID of the payment intent you're seeing with that status?
pi_3Jn4lzQuv5bmbdnj0yaPgb5m
That payment intent was never confirmed and provided with payment information - so it's expected that it's still in that state
how can i confirm the payment intent
i need confirm that in the backend or in the frontend?
You confirm in the front end - you already have that code there for confirmCardPayment
but when im call the confirm it throws that error
What is the full error message you're getting?
Ah, that's an entirely different error and is unrelated to it having a status of requires_payment_method
I'm guessing you're using connect right?
right
have you also made sure to set the connected account ID on your front end as well? https://stripe.com/docs/connect/authentication#adding-the-connected-account-id-to-a-client-side-application
yeah we have the same account id
what does your code for setting it from the front-end look like?
Have you tried loadStripe(stripeKey, { stripeAccount: stripeAccount })