#afonso
1 messages · Page 1 of 1 (latest)
I'm using the new flow, and I initialize the payment element, as such:
const elements = stripe.elements({
mode: 'setup',
currency: 'usd',
paymentMethodCreation: 'manual'
});
So I don't have the payment intent when rendering the element.
ok, so if you go to https://stripe.com/docs/stripe-js/elements/payment-request-button what can you see? a GPay button, an Apple Pay button or Link?
this explains why you can only see cards and not the other wallets
Oh does it?
Interesting
Let me test it on my phone then since it has apple pay enabled
I'm testing on safari with apple pay enabled and it's not showing.
where are you located?
Currently in Thailand
actually on the link you showed me, the apple pay is showing
but not in my app
have you registered/verified your domain? https://stripe.com/docs/stripe-js/elements/payment-request-button?client=html#verifying-your-domain-with-apple-pay
are you on https?
oh wait I'm sorry, it's actually showing
I thing I was on the wrong browser
at least google pay is showing
ok sorry I think it was my mistake
does apple pay need extra configuration though?
oh it's in that documentation
yes the ones provided in the above url
look I'm a dev on a jobboard software
and we have a lot of clients on their own domains
isn't there a way to do this globally for apple pay?
you need to have the <domain>/.well-known/apple-developer-merchantid-domain-association on each site
oh got it, will work on this
thank you so much!
stripe docs are so dense
it's hard to find stuff
are these "clients" connected accounts on Stripe?
yes
yes I confirm
we're working on improving our search capabilities but thanks for the feedback
don't think it's the search itself
but the flows
because there are a zillion possible flows
but yeah, i'm not talking about this case in particular btw
just an overall rant
😂
but thanks, can close this
👋
ops
just a question
is the downloaded file global?
because i don't have access to our company's stripe yet
it depends on what type of Charges are you doing
can you elaborate?
and also, how can I test the wallets on test mode?
i didn't see any info on the docs regarding this
and also
on production, the value of google pay is zero dollars
do I have to include the "amount" on the payment element call?
i just tested and it charges correctly
only the displayed value is zero
since this is in setup mode ( mode: 'setup') it's normal to get a 0$ amount
what can I do to show the proper value?
because although we're saving the payment method
we're charging directly after
so in terms of UX it should show the proper value
in that case you would need to create the elements in mode: 'payment' and pass in the amount
i'll try that in a second, won't that disrupt my flow?
const elements = stripe.elements({
mode: 'payment',
amount: 1099,
currency: 'usd'
});
no not really
because you're creating the payment method before creating the PaymentIntent
i'm confused if "apple-developer-merchantid-domain-association" needs to be different for each of my connect customers
or can I just host it on my server?
are you doing Destination or Direct Charges?
not sure actually
that's a critical info for this
how do I find this out?
you need to decide on your business model
the business is already there
i'm just a dev
we always use the on behalf of
does that help?
I might have misspoken
I meant the type of connect accounts and who should deal with what
yes this is not really a dev decision
i've used stripe connect in the past, but we're not doing any type of KYC here nor verification
so you need to talk to the product owners and give them the link above and let them decide
but this is not a decision to be made
it's already implemented
i'm just adding wallet functionality
that's not possible
KYC is mandatory in connect
ok, so maybe we're not using connec 🤔
i mean, we're using the on_behalf_of everywhere
the customer basically connects his stripe account to our platform
ok so you're using destination charges with obo
ok then you've already have thought this through
and then we use the stripe account id in every stripe call
yeah, not me, previous devs yeah
ok perfect
no worries
alright
so it seems apple pay is now showing
after I added the domain on the dashboard settings of apple pay
and the .well-known file is a standard one
seems like it's not custom per domain
am i correct?
would you mind sharing your account ID?
oh, I configured the apple pay domain on the connected account
on test mode
is that what you're saying?
if it's obo you need to configure it on the main account
i defined the domain on the obo account
and it's successfully working apple pay
is that not intended?
you need to configure the Apple Pay domain on the platform's account
that doesn't make sense
our customers have their own websites
we as a jobboard software we provide Jobboard software as a service
my company is https://niceboard.co
so I can have my jobboard jobs.stripe.com for example
the platform's account is niceboard
the connected account is our customer's account
am I correct?
it's the customer's respons to add his domain to his apple pay settings
if you're using your API keys then you need to register their domain on your platform's account
that doesn't make sense
we have 5000 customers
we're not going to add 5000 domains on our platform account
look, I just went into 2 different stripe accounts
downloaded the certificate file
did a diff, there's no difference it's the same file
the file is the same for everyone
that's what i was asking
but the registration should be done on each domain
AFAIK
let me double check something though
ok
so as I explained
Register all domains where you plan to show the Payment Request Button with Apple Pay.
I know you're not using PRB but it's the same
so you need to collect the website domains of each merchant
and using the API create the ApplePayDomain
You must use your platform’s live secret key to register the domains—don’t add domains in test mode.
you need to add the domains in live mode for it to work
ok got it
but
on test mode, apple pay seems to be working at least it's displaying
can I test this api call in testmode as well?
stripe.appleDomains.create
So the current flow on our software, is that users get a generic subdomain on registration, they go to their dashboard and add a custom domain to their jobboard.
From what I see, I need at that point, call that appleDomains endpoint to add this custom domain to their stripe's apple pay settings.
Am I correct?
I can't find any information about this.
Hi! I'm taking over my colleague. Please, give me a moment to catch up.
Yes, that's right.
Where is the documentation for that endpoint?
And I've tested this on test mode, and it seems it's not working.
The API call is successful, but on dashboard, domain is not showing.
@brisk rune this is undocumented in the API it's only present in the docs I sent you earlier. and as I explained, this needs to be done with the live mode keys, otherwise it wouldn't work. once created with the live mode keys it will work on both test and live mode
Oh got it
Let me try it
The account acct_1MHcV3EOaB4V1nuw was a test account created with a testmode key, and therefore can only be used with testmode keys.',
I'm using the live secret keys to initiate the stripe object.
But seems it's not working for my test mode account.
Is this impossible?
this is because the link between this connected account and your platform account was only made in test mode
you need to connect the accounts in live mode as well
Ah, this sucks
Multiple domains can be added, I am not sure what happens if you add the same. The easiest is to try and see what happens.