#rupinder_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/1354457651936755852
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
this is the code
const options = {
mode: 'payment',
amount: {{ intval($sum_total * 100) }},
currency: '{{ strtolower($currency->code) }}',
appearance : {
theme: 'stripe',
variables: {
colorPrimary: '#0570de',
colorBackground: '#F0F0F0',
colorText: '#30313d',
colorDanger: '#df1b41',
spacingUnit: '5px',
fontWeightNormal: '500',
border: 'none',
accessibleColorOnColorPrimary: '#1A1B25',
logoColor: 'dark'
},
rules: {
'.Input': {
backgroundColor: '#ffffff',
border: '2px solid #4FAD54 '
}
}
}
};
// Set up Stripe.js and Elements to use in checkout form
const elements = stripe.elements(options);
// Create and mount the Payment Element
const paymentElementOptions = {
layout: {
type: 'tabs',
defaultCollapsed: false,
},
defaultValues: {
billingDetails: {
address: {
country: '{{get_system_region()->code}}'
}
}
},
fields: {
billingDetails: {
address: {
country: 'never' // Hides country field
}
}
}
};
const paymentElement = elements.create('payment', paymentElementOptions);
paymentElement.mount('#stripe-checkout-form');
both live and test
You disabled ideal in both live and test mode and this is still showing in both live and test mode environments?
yes
What's your account id?
And do you have published checkout page where we can repro?
where can I find account id
Screenshot doesn't help much
acct_1HConEBVwduRnhGV
Can you share a link?
this is the code I am using
const options = {
mode: 'payment',
amount: {{ intval($sum_total * 100) }},
currency: '{{ strtolower($currency->code) }}',
appearance : {
theme: 'stripe',
variables: {
colorPrimary: '#0570de',
colorBackground: '#F0F0F0',
colorText: '#30313d',
colorDanger: '#df1b41',
spacingUnit: '5px',
fontWeightNormal: '500',
border: 'none',
accessibleColorOnColorPrimary: '#1A1B25',
logoColor: 'dark'
},
rules: {
'.Input': {
backgroundColor: '#ffffff',
border: '2px solid #4FAD54 '
}
}
}
};
// Set up Stripe.js and Elements to use in checkout form
const elements = stripe.elements(options);
// Create and mount the Payment Element
const paymentElementOptions = {
layout: {
type: 'tabs',
defaultCollapsed: false,
},
defaultValues: {
billingDetails: {
address: {
country: '{{get_system_region()->code}}'
}
}
},
fields: {
billingDetails: {
address: {
country: 'never' // Hides country field
}
}
}
};
const paymentElement = elements.create('payment', paymentElementOptions);
paymentElement.mount('#stripe-checkout-form');
You already shared the code
bancontact it is disable
Nope
Bancontact is enabled as well for both live and test
Check those 2 links I just sent you
Your screenshot doesn't show anything really
Check the above links
It's enabled still
I have disabled it for Germany
Does the IP address you're testing from resolve to a German IP address?
Browser location also needs to be Germany
ok so it works based on IP address