#dais-subscription-confirm

1 messages ยท Page 1 of 1 (latest)

soft canopyBOT
glacial hinge
#

Hey! ๐Ÿ‘‹

compact pelican
#

dais-subscription-confirm

#

Usually you wouldn't call confirmPayment() in that case, you would call for example confirmCardPayment() if it's a card.
Or really you'd do none of this, the Subscription creation should be without default_incomplete

glacial hinge
#

I see, perhaps team and I oversimplified the implementation

#

but that makes sense

#

Sounds like there's something to check out on my team's side ๐Ÿ™‚

#

appreciate it

compact pelican
#

@glacial hinge have you tried just calling confirmPayment() on the PaymentIntent in that case? It should already have the default PaymentMethod set right?

glacial hinge
#

I'll need to get back to it tomorrow but in this case the customer has a default payment method at the customer level and isn't attached directly to the subscription

compact pelican
#

In theory it should use the one on the Customer but I think we had a limitation there that we want to improve in the future

#

In that case I'd recommend confirming server-side really and then handling the next action on the client

#

@glacial hinge okay figured it out

#
  clientSecret: '123',
  confirmParams: {
    payment_method: 'pm_123'
  },
});```
#

it should be documented more clearly but that should work!

glacial hinge
#

Oh!

#

I see, again, i'll have to get back to this tomorrow but thank you so much for diving deep

#

really appreciate the effort