#jayvir_api

1 messages · Page 1 of 1 (latest)

near yokeBOT
#

👋 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/1371456450060222495

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

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

round raven
#

const setupIntent = await stripe.setupIntents.create({
usage: 'off_session',
customer: customerInfo.id,
payment_method_types: ['card'],
});

#

but some how link is showing

#

i just want card option only

#

@feral crystal

feral crystal
round raven
#

it should from frontend ?
cant we do from backend
@feral crystal

feral crystal
#

No

round raven
#

i am using angular @feral crystal

feral crystal
#

We don't have an Angular SDK. Are you using ngx-stripe or something?

round raven
#

yes

feral crystal
#

Is it not a supported parameter there?

round raven
#

i dont know where to find that ?
i am using this

<ngx-stripe-elements
    [stripe]="stripe"
    [elementsOptions]="elementsOptions">
    <ngx-stripe-payment
      [options]="paymentElementOptions"
      class="payment-element" />
  </ngx-stripe-elements>
feral crystal
#

What does paymentElementOptions look like? Did you try adding the wallets[link]: 'never' parameter there that I linked above?

round raven
#

export interface PaymentWalletsOption {
applePay?: PaymentWalletOption;
googlePay?: PaymentWalletOption;
}

paymentElementOptions: StripePaymentElementOptions = {
wallets: {
applePay: 'never',
googlePay: 'never',
link: 'never',
},
layout: {
type: 'tabs',
defaultCollapsed: false,
radios: false,
spacedAccordionItems: false,
},
};

@feral crystal link is not showing as option

feral crystal
#

I am confused as to what you are asking me

round raven
#

link is not showing in my library version

"@stripe/stripe-js": "^3.4.0",

#

@feral crystal do i have update the library ?

feral crystal
#

It'll just be a missing type

round raven
#

@feral crystal didnt get that

feral crystal
#

Get what? I don't understand the problem you're having. Please clearly explain the issue

round raven
#

@feral crystal i want only keep card option

const setupIntent = await stripe.setupIntents.create({
usage: 'off_session',
customer: customerInfo.id,
payment_method_types: ['card'],
});

from backend it is not possible

from frontend i tried to use as u mentioned

paymentElementOptions: StripePaymentElementOptions = {
wallets: {
applePay: 'never',
googlePay: 'never',
link: 'never',
},
layout: {
type: 'tabs',
defaultCollapsed: false,
radios: false,
spacedAccordionItems: false,
},
};

Object literal may only specify known properties, and 'link' does not exist in type 'PaymentWalletsOption'.ts(2353)
payment.d.ts(237, 3): The expected type comes from property 'wallets' which is declared here on type 'StripePaymentElementOptions'

but it is thowing error

so what to do ?

feral crystal
#

You'll just need to ts-ignore that

round raven
#

ok got it @feral crystal
works now

feral crystal
#

Great!

near yokeBOT
round raven
#

@feral crystal @broken garden

what changed needed in mobile flutter app ?

broken garden
#

Hi, taking over as my teammate needs to step away. Let me catch up.