#jayvir_api
1 messages · Page 1 of 1 (latest)
👋 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.
- jayvir_code, 32 minutes ago, 47 messages
- jayvir_api, 2 days ago, 55 messages
- jayvir_code, 5 days ago, 45 messages
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
You'd need to disable Link in the Elements options: https://docs.stripe.com/js/elements_object/create_payment_element#payment_element_create-options-wallets-link
it should from frontend ?
cant we do from backend
@feral crystal
No
i am using angular @feral crystal
We don't have an Angular SDK. Are you using ngx-stripe or something?
yes
Is it not a supported parameter there?
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>
What does paymentElementOptions look like? Did you try adding the wallets[link]: 'never' parameter there that I linked above?
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
I am confused as to what you are asking me
link is not showing in my library version
"@stripe/stripe-js": "^3.4.0",
@feral crystal do i have update the library ?
It'll just be a missing type
@feral crystal didnt get that
Get what? I don't understand the problem you're having. Please clearly explain the issue
@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 ?
Looks like the type is missing from the lib: https://github.com/stripe/stripe-js/blob/master/types/stripe-js/elements/payment.d.ts#L216
Loading wrapper for Stripe.js. Contribute to stripe/stripe-js development by creating an account on GitHub.
You'll just need to ts-ignore that
ok got it @feral crystal
works now
Great!
@feral crystal @broken garden
what changed needed in mobile flutter app ?
Hi, taking over as my teammate needs to step away. Let me catch up.