Should call processPayment to finish the payment. If collecting a payment method succeeds, the callback will be called with aĬlass PaymentIntent with status REQUIRES_CONFIRMATION, indicating that you Resolving the error, you may call collectPaymentMethod again to either try the same If collecting a payment method fails, the callback will be called with an error. collectPaymentMethod a payment method for the given class PaymentIntent.If youĭisconnect from a reader, and then call connectReader again, the SDK will fetch Subsequent calls to connectReader require a new connection token. When connectReader is called, the SDK uses the connection token and reader When a Terminal is initialized, the SDK attempts to proactively requestĪ connection token from your backend server. TheĬonnectReader call will request a new connection token from your backend server.Īn overview of the lifecycle of a connection token under the hood: If a reader is connected, call disconnectReaderĬall discoverReaders and connectReader to connect to a reader. You can use this method to switch accounts in your app, e.g. Clears the current connection token, saved reader sessions, and any other cached credentials.
0 Comments
Leave a Reply. |