#.minalv

1 messages · Page 1 of 1 (latest)

inner troutBOT
wild basin
#

What issue do you mean?

crisp violet
#

After creating subscription. it show incomplete state intead of active .and it due to invoice showing in open state

wild basin
#

If you look at the PaymentIntent of that invoice, what status is it?

#

It's possible that the Card Issuer will still request 3DS even if it was originally authenticated via SetupIntent

#

You would want to handle that case anyway

crisp violet
#

Checking

#

yes payment intent status showing required_action status

#

but we are using setup-intent and we have handled the required_action then why it showing in payment intent?

wild basin
#

Yes that I mean, it can still happen. It's ultimately depends on the card issuer

#

Did you pass off_session = true?

#

Try it first

crisp violet
#

yes i tried with off_session = true

#

We want to charge immediately on subscription create

wild basin
#

On the SubscriptionCreateParams? because I don't see on your code above

crisp violet
#

SubscriptionCreateParams subscriptionCreateParams = SubscriptionCreateParams.builder()
.setCustomer(customerId)
.addItem(
SubscriptionCreateParams.Item.builder().setPrice(subscriptionPlanId).build()
)
.setCollectionMethod(SubscriptionCreateParams.CollectionMethod.CHARGE_AUTOMATICALLY)
.setDefaultPaymentMethod(paymentMethodId)
.setOffSession(true)
.build();
return Subscription.create(subscriptionCreateParams, connectStripeThroughRequestOption());

#

even we have tried with remove DefaultPaymentMethod so it can use from the customer default source. still not luck

wild basin
#

Okie it's not really "luck" here, as I mentioned that can still happen in Live mode and is up to the issuer