#mardo=intent-transaction

1 messages · Page 1 of 1 (latest)

topaz estuary
#

Hello! A PaymentIntent will create a Charge after confirmation and you can look at the associated Charge and the payment_method_details

jolly ice
#

Thank you it appears to be null

#

paymentIntent = paymentIntentService.Create(createOptions);

#

the paymentIntent object right? Using C#

normal minnow
#

Hi @jolly ice I'm taking over this thread

#

Can you share with me the PaymentIntent ID?

topaz estuary
#

that's just creation though

#

you have to confirm the PaymentIntent with card details first

#

(leaving to Jack though)

jolly ice
#

"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

normal minnow
#

Thanks, this paymentIntent is already succeeded. You can expand the payment_method field to get the card details.

jolly ice
#

the paymentIntent.payment_method is null

normal minnow
#

Buy you provided a payment_method when creating the paymentIntent right?

jolly ice
#

How would I get that?

#

I just gave it the Id as seen in my code

#

above

normal minnow
#

Ah, you have the paymentMethodId there.

jolly ice
#

That is correct, per..

normal minnow
#

Can you add this ? createOptions.AddExpand("payment_method");

#

This will expand the payment_method field in the response.

jolly ice
#

Ok, let me process another one with that..;

#

Bingo!

#

Thank you!!

normal minnow
#

Great! Happy to help.

jolly ice
#

If I do Apple Pay will those card details be there also

normal minnow
#

Yes, it'll be there.

jolly ice
#

sweet, have a good night. Thanks!