#NEWJOSSY

1 messages ยท Page 1 of 1 (latest)

bleak fernBOT
mystic moss
#

In cases where there is no initial payment (i.e. free trial, 100% discount) then we won't generate a Payment Intent โ€“ you can't have a zero-amount Payment Intent.

thin girder
#

Ok, but why there is no client secret for 99.9 discount

mystic moss
mystic moss
thin girder
#

How big is that limit when payment intent will be generated ?

mystic moss
thin girder
#

Oh, ok, thanks

mystic moss
#

In cases where there's no latest_invoice.payment_intent, you'd use the pending_setup_intent field as stated ๐Ÿ‘†

thin girder
#

Can this be used for confirmPayment on the front-end ?

#

I mean if there is a 100% discount we need to use setup intent client secret, right?

mystic moss
thin girder
#

Oh

mystic moss
#

Otherwise use latest_invoice.payment_intent with confirmPayment

thin girder
#

Ok, one more question to clarify

#

Currently we are using confirm API where we check payment_intent

#

by its id

#

if its status == PaymentStatus.Succeeded we are confirming update and making changes to our db to change some restrictions

#

but if we use setupIntent, what changes should be done?

mystic moss
#

What do you mean by 'confirming update'?

thin girder
#

I mean we check that payment was succeed

#

Sorry for incorrectness

mystic moss
#

Is this for provisioning/fulfilment?

thin girder
#

I guess so, we are applying changes for payed subscription plan only if payment was succeed

mystic moss
#

That will account for both Setup Intent and Payment Intent scenarios