#dais-subscription-confirm
1 messages ยท Page 1 of 1 (latest)
Hey! ๐
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
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
@glacial hinge have you tried just calling confirmPayment() on the PaymentIntent in that case? It should already have the default PaymentMethod set right?
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
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!