Skip to content
New issue

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

Canceling the payment directly from the application is not working as expected. #535

Open
arbaz8dots opened this issue Dec 2, 2024 · 1 comment

Comments

@arbaz8dots
Copy link

Summary

Cancel payment from application not working

Code to reproduce

Terminal.getInstance().cancelPaymentIntent(paymentIntent!!,object :PaymentIntentCallback{
override fun onFailure(e: TerminalException) {

        }

        override fun onSuccess(paymentIntent: PaymentIntent) {
            Terminal.getInstance().clearReaderDisplay(object :Callback{
                override fun onFailure(e: TerminalException) {
                    
                }

                override fun onSuccess() {
                    
                }

            })
        }
    }) 

Android version

Impacted devices (Android devices or readers)

SDK version

3.9.3

Other information

I attempted two methods: first, canceling the payment using the SDK and then clearing the display, and second, canceling the payment through the API followed by clearing the display.

@arbaz8dots arbaz8dots changed the title Cancel payment from application not working Canceling the payment directly from the application is not working as expected. Dec 2, 2024
@xiaoshen-stripe
Copy link
Contributor

Hi @arbaz8dots can we get some further detail to help investigate further?
Some helpful information would be: stack trace, PI ids, reader serial number and more details on the reproduction steps. Also, can you include what you feel the expected behavior should be?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants