2
votes

I am new to stripe and going to use stripe token/charge api but the stripe document says the paymentIntent api is the new way to go. Can I use anyone of this or PaymentIntent is the best to use.

I am building a website for business and needed stripe for accepting payments. It has shopping cart. It's pretty basic.

Could anyone help which one should I go with.

1
If Stripe says use the Payment Intents API, then I would use the Payment Intents API. - ellitt
That's right. But I am worried about something with PaymentIntent api since the object's key will be used to complete the payment via javascript What if someone embeds their own key which has lesser amount in it and proceed through the javascript. As we created the key in server side and stored it in html to be later used in javascript. But what if someone creates their own payment object with lesser amount and use that key in out javascript to proceed - vikram

1 Answers

2
votes

If you are starting out fresh and don't have anything built yet, use the PaymentIntents API. The PaymentIntents API is the newer API that has features that the Charge API doesn't. For instance, PaymentIntents are fully SCA ready. The Charge API will continue to function, but Stripe is heavily investing in PaymentIntents as the integration path going forward.