#mardo=intent-transaction
1 messages · Page 1 of 1 (latest)
Hello! A PaymentIntent will create a Charge after confirmation and you can look at the associated Charge and the payment_method_details
Thank you it appears to be null
paymentIntent = paymentIntentService.Create(createOptions);
the paymentIntent object right? Using C#
Hi @jolly ice I'm taking over this thread
Can you share with me the PaymentIntent ID?
that's just creation though
you have to confirm the PaymentIntent with card details first
(leaving to Jack though)
"pi_3L6OoOHCP53xGZa80jqNG5gL"
// Create the PaymentIntent
var createOptions = new PaymentIntentCreateOptions
{
PaymentMethod = request.PaymentToken,
Amount = (long)amount * 100,
Currency = "usd",
ConfirmationMethod = "manual",
Confirm = true,
};
paymentIntent = paymentIntentService.Create(createOptions);
Thats all I am doing
Thanks, this paymentIntent is already succeeded. You can expand the payment_method field to get the card details.
the paymentIntent.payment_method is null
Buy you provided a payment_method when creating the paymentIntent right?
Ah, you have the paymentMethodId there.
That is correct, per..
Can you add this ? createOptions.AddExpand("payment_method");
This will expand the payment_method field in the response.
Great! Happy to help.
If I do Apple Pay will those card details be there also
Yes, it'll be there.
sweet, have a good night. Thanks!