#rupinder_api

1 messages ¡ Page 1 of 1 (latest)

coarse matrixBOT
#

👋 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.

safe flint
#

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');
coarse matrixBOT
safe flint
#

hello

#

there

viral swallow
#

Hi

#

What's your account id?

#

And is this in live mode and test mode

safe flint
#

both live and test

viral swallow
#

You disabled ideal in both live and test mode and this is still showing in both live and test mode environments?

safe flint
#

yes

viral swallow
#

What's your account id?

#

And do you have published checkout page where we can repro?

safe flint
#

where can I find account id

viral swallow
safe flint
viral swallow
#

Screenshot doesn't help much

safe flint
#

acct_1HConEBVwduRnhGV

viral swallow
#

Can you share a link?

safe flint
#

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');
viral swallow
#

You already shared the code

safe flint
viral swallow
#

Getting 504 on that page

#

Doesn't load

safe flint
viral swallow
#

Ok well I checked your account id actually and see it's still enabled...

safe flint
#

bancontact it is disable

viral swallow
#

Nope

#

Bancontact is enabled as well for both live and test

#

Check those 2 links I just sent you

safe flint
#

disabeled for germany

#

but still showing

viral swallow
#

Your screenshot doesn't show anything really

#

Check the above links

#

It's enabled still

safe flint
#

I have disabled it for Germany

viral swallow
#

Your screenshot does not show that

#

So not sure what you're referring to

safe flint
viral swallow
#

Does the IP address you're testing from resolve to a German IP address?

#

Browser location also needs to be Germany

safe flint
#

ok so it works based on IP address

viral swallow
#

And VPN might not be sufficient

#

Yeah it's physical location

#

Which uses a combination of metrics

#

Including ip and browser

safe flint
#

yes, it works with vpn

#

thankyou