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

How to delete a card in android sdk? #1270

Closed
sunilkumar2222 opened this issue Jul 31, 2019 · 19 comments · Fixed by #1560
Closed

How to delete a card in android sdk? #1270

sunilkumar2222 opened this issue Jul 31, 2019 · 19 comments · Fixed by #1560
Assignees
Labels
triaged Issue has been reviewed by Stripe and is being tracked internally

Comments

@sunilkumar2222
Copy link

currently i an using stripe sdk in my android project. i want to delete card from mobile side. is there any way sdk provide for delete/remove card?
I am using 10.0.3 stripe version

@mshafrir-stripe
Copy link
Collaborator

@sunilkumar2222 unfortunately our standard integration does not currently provide UI for detaching a card from a customer. This is on our backlog of things to fix.

@mshafrir-stripe mshafrir-stripe added the triaged Issue has been reviewed by Stripe and is being tracked internally label Jul 31, 2019
@mshafrir-stripe mshafrir-stripe self-assigned this Jul 31, 2019
@sunilkumar2222
Copy link
Author

sunilkumar2222 commented Aug 3, 2019

is it ok to use CustomerSession of detaching card??.. i solve this by using this

CustomerSession.getInstance().detachPaymentMethod(paymentMethodId, object :
CustomerSession.PaymentMethodRetrievalListener {
override fun onPaymentMethodRetrieved(paymentMethod: PaymentMethod) {
cardMultilineWidget.clear()
Log.d("Payment detach", paymentMethod.id.toString())
}

        override fun onError(errorCode: Int, errorMessage: String, stripeError: StripeError?) {
        }

})

Is it safe way to use?

@mshafrir-stripe
Copy link
Collaborator

@sunilkumar2222 yes, CustomerSession#detachPaymentMethod is the method you'd want to use to remove a payment method from a customer

@jeanfw
Copy link

jeanfw commented Aug 26, 2019

Hi @mshafrir-stripe, could you advise on an ETA on a fix for this please?

Also, is there somewhere a list of known feature gaps between iOS and Android SDKs such as this one?

Thanks a lot!

@mshafrir-stripe
Copy link
Collaborator

@jeanfw are you looking for a way to delete a card in the UI (i.e. PaymentMethodsActivity), or via the API bindings?

@jeanfw
Copy link

jeanfw commented Aug 31, 2019

@mshafrir-stripe In the UI. Depending on whether this (or other feature gaps) limit us from achieving parity between iOS and Android, we might just rebuild custom screens though. What would you recommend? Thanks for your help!

@puzanov
Copy link

puzanov commented Sep 9, 2019

Same problem. Want to delete the card from UI. Please advise when you can add this feature @msaffitz-stripe

@kasymov-zz
Copy link

Hi! Oh yeah, when this feature will be ?

@mkylychev
Copy link

Waiting this feature! Can you say, when you planing to realize it?

@belek
Copy link

belek commented Sep 9, 2019

Please provide this feauture as soon as possible.
Our customers are struggling and feel deprived =(

@tamaramun23
Copy link

@mshafrir-stripe need the functionality to delete card from UI for my android app. Could you please implement it asap?

@Lezh1k
Copy link

Lezh1k commented Sep 9, 2019

Hello there. Waiting for this feature too :)

@w4keupneo
Copy link

me2, fed up with this

@mshafrir-stripe
Copy link
Collaborator

Thanks for all the feedback. This is clearly functionality that is in high demand and we will be prioritizing it accordingly. We plan to ship this in the short-term, and I'll share a concrete date when I have one.

mshafrir-stripe added a commit that referenced this issue Sep 16, 2019
Add icon and background color to item swipe.

When the user swipes from 25% to 50% of the item width,
the background transitions from the start to end color.

Fixes #1270
mshafrir-stripe added a commit that referenced this issue Sep 16, 2019
Add icon and background color to item swipe.

When the user swipes from 25% to 50% of the item width,
the background transitions from the start to end color.

Fixes #1270
@mshafrir-stripe
Copy link
Collaborator

I posted a PR for deleting Payment Methods: #1560

mshafrir-stripe added a commit that referenced this issue Sep 16, 2019
…1560)

Add icon and background color to item swipe.

When the user swipes from 25% to 50% of the item width,
the background transitions from the start to end color.

Fixes #1270
@mshafrir-stripe
Copy link
Collaborator

This is now available in v11.1.1

@sunilkumar2222
Copy link
Author

sunilkumar2222 commented Sep 17, 2019 via email

@mshafrir-stripe
Copy link
Collaborator

Demo of the functionality:

swipe-to-delete

@belek
Copy link

belek commented Sep 19, 2019

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triaged Issue has been reviewed by Stripe and is being tracked internally
Projects
None yet
Development

Successfully merging a pull request may close this issue.

10 participants