Creates a new payment intent in Stripe. A payment intent represents an intention to collect payment from a customer and tracks the lifecycle of the payment process from creation through completion.
The amount should be provided in whole currency units (e.g., euros, not cents). The API automatically multiplies by 100 internally to convert to cents for Stripe. For example, to charge €10.00, pass 10.
The amount to charge in whole currency units (euros). The API multiplies this by 100 internally to convert to cents.Example: 10 for €10.00 (becomes 1000 cents internally)
Note that the API multiplies the amount by 100 internally. If you pass 1000, the actual charge will be €100,000.00 (1000 × 100 cents). Make sure you’re passing the correct amount in cents.