#bipin_code

1 messages · Page 1 of 1 (latest)

wise hawkBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1418580050734874796

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

proper sky
#

Current:

#

Required:

mystic sierra
proper sky
#

Hello @mystic sierra thank you. This issue reported by our team member

mystic sierra
#

yes thanks

wise hawkBOT
jovial crow
#

Hi
You can set this attribute to false in order to remove the edit button

proper sky
#

i used but not working

.paymentMethodLayout(PaymentSheet.PaymentMethodLayout.Horizontal) .customer(customerConfiguration) .allowsPaymentMethodsRequiringShippingAddress(false) .allowsRemovalOfLastSavedPaymentMethod(false)

west geyser
#

What do you mean by not working? WHat's happening when you do this?

#

Can you share the initialization code?

proper sky
#

I mean it's showing edit button like this.
I need to hide Edit button which requirement by client

#

@west geyser
val config = PaymentSheet.Configuration.Builder(activity.getString(R.string.app_name))
.paymentMethodLayout(PaymentSheet.PaymentMethodLayout.Horizontal)
.customer(paymentSheetCustomerConfig)
.allowsPaymentMethodsRequiringShippingAddress(false)
.allowsRemovalOfLastSavedPaymentMethod(false)
.allowsDelayedPaymentMethods(true)
.build()
here is the init code

west geyser
#

Oh hmm

#

I think that setting might only block removal for the final PM

#

If you remove one of those, it should not be possible to remove the last remaining one

wise hawkBOT
proper sky
#

Is there any way to hide the Edit button that appears in the PaymentSheet without adding the entire Stripe module?

west geyser
#

What do you mean, can you explain more?

#

The edit button is needed to let customer update expiry dates, for example

#

What's your real goal here, taking a step back? What are you trying to achieve by removing the edit button?

proper sky
#

Our app requires that users can Add cards using Stripe and we provide a Delete option, but there is no need to offer an Edit option as per the customer’s requirement.

wooden goblet
#

Hi there, taking over for @synthrider as they had to step away

#

Looking at this conversation, it appears there isn't possible to remove the edit button in question with a simple setting change. As @west geyser mentioned, there is a need to provide an edit button for customers to update details as expiration dates. Would it be possible to clarify that point with the customer and update the requirements?