Discussions
Payment Method creation before Payment Intent mandatory ?
over 2 years ago by Varadarajan
As per the steps provided in the documentation, Payment Intent needs to be created first and than the Payment Method should be created. Is this sequence mandatory ?
Since Payment Intent APIs need Private Keys to be invoked, can we switch these call sequences as below
- create the Payment Method from the Client (Browser) using Public Key,
- Pass the Payment Method ID to the server
- Server invokes the Create Payment Intent
- Server calls the Payment Intent attach API , returns the "next_action" back to the Client if present.
Appreciate your response. Thanks.