#ebellotpu6

1 messages · Page 1 of 1 (latest)

cinder zephyrBOT
untold thorn
pine matrix
#

yes

#

var paymentIntent = paymentIntentService.Create(new PaymentIntentCreateOptions { Amount = request.Amount, Currency = "EUR", Customer = request.CustomerId, PaymentMethod = request.PaymentMethodId, Confirm = true, OffSession = true, Description = request.Description, Metadata = new Dictionary<string, string> { { "storageId", request.StorageId }, { "centerId", request.CenterId }, { "invoiceType", "deposit" } }, });

untold thorn
#

can you share the PaymentIntent id?

pine matrix
#

pi_3Mh6x5Ad02IkV8oW1tht9oqr

untold thorn
#

umm, so that PaymentIntent id which you provided is created as part of a Subscription. Not as a "standalone" PaymentIntent from your code

#

are you sure you've provided the correct PaymentIntent id?

pine matrix
#

pi_3Mh6xJAd02IkV8oW15OTGLEN

untold thorn
#

how did you create that PaymentMethod? was it via a SetupIntent? if yes, can you share the corresponding SetupIntent?

pine matrix
#

yes

untold thorn
#

ah, okay i see the problem now

pine matrix
#

seti_1Mh6tyAd02IkV8oWRLFFTJap

untold thorn
#

so if you try and charge it off_session, then it'll fail with the error authentication_required

#

that's normal

#

if you want to test the off_session flow with a card successfully setup for off_session usage, this is the card you would want to use instead : 4000002500003155

pine matrix
#

So how can authenticate the card before make the payment and then create a subscription?

#

because, in my case, I want to charge a deposit and then create a subscription for that card

untold thorn
pine matrix
#

So, I can create a subscription with an item for the deposit and this will be only charge one time, and then the subscription will continue until it is cancelled?

untold thorn
#

yes, that's right

pine matrix
#

Sorry, for invoice reasons, I can do what you say of join the to payments inone subscription

untold thorn
#

that's fine, then you can always follow the steps i mentioned before that suggestion

pine matrix
#

So if I pay with a 3155 card and set payment_method to default, would it successfully pay both, deposit + subscription?

untold thorn
#

i'd suggest you try it out and reach out if you're running into trouble

pine matrix
#

I have two more questions, in my account I have established that failed subscriptions are tried again after 1 day, in the case of a card that requires authentication, such as 3155, will it fail again? And in the case of a failed deposit, will it be tried again?

flat urchin
#

in my account I have established that failed subscriptions are tried again after 1 day, in the case of a card that requires authentication, such as 3155, will it fail again
Yes, as it's an off-session payment. Any off-session payment that requires auth automatically fails/declines. You need to bring your customer back on-session and re-confirm the PI.

And in the case of a failed deposit, will it be tried again?
What's a 'failed deposit'? Payout?

pine matrix
#

yes, a failed payout

flat urchin
#

Not automatically anyway

pine matrix
#

Sorry, I am refering to a failed payment with card.

flat urchin
#

I'm confused, you said a failed deposit

#

Anyway, I answered your failed card payment Q:

Yes, as it's an off-session payment. Any off-session payment that requires auth automatically fails/declines. You need to bring your customer back on-session and re-confirm the PI.

pine matrix
#

Okey, and if the failed payment is with a card does not require auth, it will it be tried again next day, like subscription?

flat urchin
#

I don't understand the question

#

We'll attempt retries for payment failures on subscriptions as per the schedule you configure in the Dashboard

pine matrix
#

I am asking if it's possible to retry a failed payment with a card, if I configure a retry schedule of 1 day?

flat urchin
#

Sure

pine matrix
#

but it will be done automatically?

flat urchin
#

Yes, that's what the Smart Retries feature is. Did you read the doc?

pine matrix