#namsai_error
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/1458740337966190668
π Have more to share? Add more details, code, screenshots, videos, etc. below.
yes. you can use this one
https://anuwatwork.com/accounts/complete-order/9ecb68f65a6a44579e498170fdd73d83/
Checking...
I got a card but then it's empty now
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...
i'm not if i miss something or not. pretty sure I also enable Link payment on dashboard.
but thank for checking.
Hey, taking over here. Let me catch-up
Hmm, I think this is the wrong PMC that is being used to render the payment methods. Can you paste that ID here?
You're using the keys from acct_1SnA8iC6KpByp1gs and the PMC is actually pmc_1SnA9GC6KpByp1gsS2GDH0TZ
const stripe = Stripe('pk_test_51SnA8iC6KpByp1gsgGbFhokiWlLusJ8pA3GVQfhAYZcC3SmFfK4FFteJ614oUWLQMhoXOjIqBTL3MIFYHdK64EM400N512bqeZ');
Can you share the code you're using to init the ECE instance?
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
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?
about that. actually paymentMethodTypes is commented.
let me try to remove it completely.
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
I think you're going to need to write in to our team and we can figure out why this is the case with the Link team
i see. how can i contact the team?
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.
Follow those instructions and I'll pick up the email
alright. thank you very much.