readReusableCard

fun readReusableCard(params: ReadReusableCardParameters, callback: PaymentMethodCallback): Cancelable

Reads a card with the given parameters and returns a PaymentMethod.

NOTE: Most integrations should not use readReusableCard.

You should create a PaymentIntent and use the associated collectPaymentMethod and processPayment methods if you are simply collecting a payment from a customer.

You can use readReusableCard to read payment details and defer payment for later. The PaymentMethod created by this method will have type card, suitable for use with online payments.

Note that if you use this method to defer a payment, the transaction will not receive the beneficial rates and liability shift associated with card present transactions.

If reading a card fails, the callback will be called with an error containing details about the failure. If reading a card succeeds, the completion block will be called with a PaymentMethod. You should send the ID of the payment method to your backend for further processing. For example, you can use the fingerprint to look up charges created using the same card.

See https://stripe.com/docs/terminal/payments/saving-cards.

Parameters

params

The parameters for reading the card.

callback

The callback which will be called with a PaymentMethod when finished