#namsai_error

1 messages Β· Page 1 of 1 (latest)

hollow stumpBOT
#

πŸ‘‹ 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/1458740337966190668

πŸ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

rich oyster
#

πŸ‘‹

#

Do you have a test hosted website that we can test ?

spark laurel
rich oyster
#

Checking...

rich oyster
#

Can you add some product or share another link with the express checkout elements displayed

#

Ok no worries, I added a product

#

continuing testing ...

#

The express Checkout Element is rendered by this Stripe Account: acct_1SnA8iC6KpByp1gs

#

Checking further why Link displays a failure message in the popup...

hollow stumpBOT
spark laurel
#

i'm not if i miss something or not. pretty sure I also enable Link payment on dashboard.
but thank for checking.

cold path
#

Hey, taking over here. Let me catch-up

cold path
spark laurel
#

const stripe = Stripe('pk_test_51SnA8iC6KpByp1gsgGbFhokiWlLusJ8pA3GVQfhAYZcC3SmFfK4FFteJ614oUWLQMhoXOjIqBTL3MIFYHdK64EM400N512bqeZ');

cold path
#

Can you share the code you're using to init the ECE instance?

spark laurel
#

sure. one sec

#
<div id="express-checkout-element" >
    <!-- Express Checkout Element will be inserted here -->
</div>
<div id="error-message">
<!-- Display an error message to your customers here -->
</div>

<script src="https://js.stripe.com/clover/stripe.js"></script>
    <script  type="module">
        const stripe = Stripe('pk_test_51SnA8iC6KpByp1gsgGbFhokiWlLusJ8pA3GVQfhAYZcC3SmFfK4FFteJ614oUWLQMhoXOjIqBTL3MIFYHdK64EM400N512bqeZ');
        
        console.log(stripe)
        console.log('test test');
        const appearance = { /* appearance */ }
        const createOptions = {
            
            //emailRequired: true,
            //shippingAddressRequired: true,
           /*
            paymentMethods: {
                applePay: 'never',
                googlePay: 'never',
                paypal: 'never',
                klarna: 'never'
            },
            */
            //excluded_payment_method_types: ['card',]
            
        }
        const elementOptions = {
            mode: 'payment',
            amount: 1099,
            currency: 'eur',
            appearance,
            /*
            paymentMethodTypes: [
            "link", "card", // "amazon_pay",
            ],
            */
            
            //excludedPaymentMethodTypes: ['card']
        }
        const elements = stripe.elements(elementOptions)
        const expressCheckoutElement = elements.create('expressCheckout', createOptions)
        expressCheckoutElement.mount('#express-checkout-element')
        console.log('passed')
    </script>

the is simple code that i try to follow

cold path
#

Yeah as I suspected, you're trying to force Link via paymentMethodTypes. I bet if you remove that parameter entirely, then Link button vanishes

#

Can you test that please?

spark laurel
#

about that. actually paymentMethodTypes is commented.

#

let me try to remove it completely.

cold path
#

Ah, missed that. So you're not setting that at all?

#

Looks like Link is completely disabled on your account for some reason, unclear why

spark laurel
cold path
spark laurel
#

i see. how can i contact the team?

hollow stumpBOT
#

Hello @spark laurel, we have sent you a direct message, please check it at https://discord.com/channels/@me/1458753621905637492

  • πŸ”—The message has instructions on how to open a direct support case with our Developer Support team, in order to help you more effectively.
cold path
#

Follow those instructions and I'll pick up the email

spark laurel
#

alright. thank you very much.