Collects a payment method for the given PaymentIntent.
If collecting a payment method fails, the callback will be called with an error. After resolving the error, you may call collectPaymentMethod again to either try the same card again, or try a different card.
If collecting a payment method succeeds, the callback will be called with a PaymentIntent with status
REQUIRES_CONFIRMATION, indicating that you should call processPayment to finish the payment.
A Cancelable that allows the operation to be canceled at any time
The CollectConfiguration object allows optional per-transaction overrides. If the config is null, your account's backend configurations are used for the transaction.