We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Platform
Describe the bug
After collecting the payment intent via StripeTerminal, the next step is to confirmPaymentIntent.
Without this step the Stripe paymentIntent state cannot be changed to succeeded or requires_capture
succeeded
requires_capture
This method is missing from the plugin
Expected behavior A simple example could look like this in swift:
// StripeTerminal.swift public func confirmPaymentIntent(_ paymentIntent: PaymentIntent, call: CAPPluginCall) { Terminal.shared.confirmPaymentIntent(paymentIntent) { confirmResult, confirmError in if let error = confirmError { print("confirmPaymentIntent failed: \(error)") self.plugin?.notifyListeners(TerminalEvents.Failed.rawValue, data: [:]) call.reject(error.localizedDescription) } else if let confirmedIntent = confirmResult { print("PaymentIntent confirmed: \(confirmedIntent)") self.plugin?.notifyListeners(TerminalEvents.Completed.rawValue, data: [:]) call.resolve() } } }
And perhaps in the capacitor app the code to collect and process payment looks like this:
// Collect payment intent await StripeTerminal.collect({ paymentIntent: "**************" }); // Process payment intent await StripeTerminel.confirmPaymentIntent();
More info on processing the payment intent can be found here
The text was updated successfully, but these errors were encountered:
I have added a PR #342 for this
Sorry, something went wrong.
merged, and released @capacitor-community/stripe-terminal@5.5.0-beta.0
No branches or pull requests
Platform
Describe the bug
After collecting the payment intent via StripeTerminal, the next step is to confirmPaymentIntent.
Without this step the Stripe paymentIntent state cannot be changed to
succeeded
orrequires_capture
This method is missing from the plugin
Expected behavior
A simple example could look like this in swift:
And perhaps in the capacitor app the code to collect and process payment looks like this:
More info on processing the payment intent can be found here
The text was updated successfully, but these errors were encountered: