#howard9075_api
1 messages ยท Page 1 of 1 (latest)
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.
- howard9075_api, 4 hours ago, 42 messages
- howard9075_api, 1 day ago, 6 messages
- howard9075_api, 1 day ago, 7 messages
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1252956870151508028
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
this is the availablePaymentMethods on ready event:
{
"googlePay": false,
"applePay": false,
"paypal": true,
"link": true,
"demoPay": false,
"amazonPay": false
}
GG Pay is available when i used Payment Request Button
thanks! give me a few minutes to look into this.
that page doesn't seem to work in general for me, maybe it only works in local dev
but in any case, do you have Google Pay turned on in your Stripe settings? https://dashboard.stripe.com/test/settings/payment_methods
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Yes I do, as I said before, when I use the old Payment Request Button on the same browser, the GG Pay button is available: https://au-tracking-number-fraud-smp.myshopbase.net/checkouts/ce13b8febfd84042877cf0a4425ee6dd
makes sense. Can you get me a working link to a page that uses the ExpressCheckoutElement and isn't showing Google Pay, so I can try to debug it?
You can retry with this link: https://archimonde.store/checkouts/ce13b8febfd84042877cf0a4425ee6dd
still just broken
I'm sorry for the inconvinient, I just dev on my local, and using proxy to foward to my local, so it load quite slowly, can you give it some refresh, please
and you shoud use gg chrome
what is 'gg chrome'?
I mean google chrome
I see
ok well it's not working for me overall so let's put that aside.
Can you share the complete code of how you initialise the Stripe library and create and mount the ExpressCheckoutElement?
const elements = this.getStripe().elements({
mode: 'payment',
amount: this.getAmountInCent(this.checkout.amount),
currency: this.currency?.toLowerCase(),
})
const expressPaymentElement = elements.create('expressCheckout', {
paymentMethods: {
"googlePay": "always",
"applePay": "always",
"link": "auto",
"paypal": "auto",
}
})
expressPaymentElement.mount(container)
expressPaymentElement.on('loaderror', ({error}) => {
console.log('loaderror', error)
ready({buttonFailed: true})
})
expressPaymentElement.on('escape', (event) => {
console.log('escape', event)
})
I just use the minimum codes
how does getStripe work? where is the global Stripe object initialised?
can you explain how/show me how the Stripe instance is created/initialised?
that page is not hosted on HTTPS, so Google Pay won't appear, that is normal.
its https I am using mkcert to make my ssl my local
is it actually https:// in the URL bar though?
as you can see here if I switch back to the code using Payment Request button, the GG Pay appear
Yes
ok. So going back to it โ can you explain how/show me how the Stripe instance is created/initialised?
what publishable key are you using, are you using Stripe Connect?
The stripe instance is init on boostrap, I am not using Stripe Connect
Can we have a google meet or some thing similar, I can show you my code and my screen
I am using: "@stripe/stripe-js": "^2.2.2",.
This is how I init stripe:
const stripeJs = import('@stripe/stripe-js');
const loadStripe = (await stripeJs).loadStripe;
const stripe = await loadStripe(stripeMethod.public_key, {
stripeAccount: stripeMethod.connected_account,
});
you are using Connect then?
stripeAccount: stripeMethod.connected_account, is how you initialise the library when using Direct Charges on Connect.
what is the value (acct_xxx) of the account you're passing? does that account have Google Pay turned on in their settings?
My platform also have options for connect but this payment method is not connect account, I assure
ok
I don't really know what else to check here really without a link to the site that I can try and replicate this problem on. If you can host the site on a server somewhere and let us have a look we can try and figure it out! there's too many possibilities here to rule out right now.
I sorry about that, I will deploy my code soon, Can I reach out you later when my code got deployed
sure, you can open a new thread at that point if it's a while later!
ah actually probably not today as it's a holdiay in the US so my colleagues won't be staffing the channel
you'd need to open a support ticket at https://support.stripe.com/?contact=true or ask later in the week, sorry