createPaymentIntent

fun createPaymentIntent(params: PaymentIntentParameters, callback: PaymentIntentCallback)

Creates a new PaymentIntent with the given parameters.

Note: If the information required to create a PaymentIntent isn't readily available in your app, you can create the PaymentIntent on your server and use the retrievePaymentIntent method to retrieve the PaymentIntent in your app.

See https://stripe.com/docs/terminal/payments#create.

Parameters

params

The PaymentIntentParameters object with info about the intent to create

callback

The PaymentIntentCallback to be called when creation completes