I can't find a way to cancel a PaymentIntent in stripe.js - is there one?
Problem:
1 - client requests a payment
2 - server creates a PI, and returns a client secret to the client
3 - the client now backs out of the payment.
It seems that the client must now return a cancellation request to the server, together with the client secret, and the server now has to look up the payment ID from the secret, and then issue an API call to cancel the payment ID. It would be a lot simpler if the client could cancel directly from the client secret, if possible.