#afonso

1 messages · Page 1 of 1 (latest)

sweet flintBOT
eager sigil
#

👋 happy to help

#

would you mind sharing the PaymentIntent ID?

brisk rune
#

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.

eager sigil
brisk rune
#

I see a Link it seems.

eager sigil
#

this explains why you can only see cards and not the other wallets

brisk rune
#

Oh does it?

eager sigil
#

yes

#

on the same page I shared with you earlier

brisk rune
#

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.

eager sigil
#

where are you located?

brisk rune
#

Currently in Thailand

#

actually on the link you showed me, the apple pay is showing

#

but not in my app

eager sigil
#

are you on https?

brisk rune
#

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

eager sigil
#

yes the ones provided in the above url

brisk rune
#

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?

eager sigil
#

you need to have the <domain>/.well-known/apple-developer-merchantid-domain-association on each site

brisk rune
#

oh got it, will work on this

#

thank you so much!

#

stripe docs are so dense

#

it's hard to find stuff

eager sigil
#

are these "clients" connected accounts on Stripe?

brisk rune
#

yes

eager sigil
eager sigil
brisk rune
#

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

eager sigil
#

it depends on what type of Charges are you doing

brisk rune
#

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

eager sigil
#

since this is in setup mode ( mode: 'setup') it's normal to get a 0$ amount

brisk rune
#

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

eager sigil
#

in that case you would need to create the elements in mode: 'payment' and pass in the amount

brisk rune
#

i'll try that in a second, won't that disrupt my flow?

eager sigil
#
const elements = stripe.elements({ 
  mode: 'payment',
  amount: 1099, 
  currency: 'usd' 
});
eager sigil
brisk rune
#

ok that's good, will try that in a sec

#

i'm setting up the apple pay thing

eager sigil
#

because you're creating the payment method before creating the PaymentIntent

brisk rune
#

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?

eager sigil
#

are you doing Destination or Direct Charges?

brisk rune
#

not sure actually

eager sigil
#

that's a critical info for this

brisk rune
#

how do I find this out?

eager sigil
#

you need to decide on your business model

brisk rune
#

the business is already there

#

i'm just a dev

#

we always use the on behalf of

#

does that help?

eager sigil
brisk rune
#

yeah it'+s probably direct charges

#

we don't have any type of escrow

eager sigil
#

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

brisk rune
#

i've used stripe connect in the past, but we're not doing any type of KYC here nor verification

eager sigil
#

so you need to talk to the product owners and give them the link above and let them decide

brisk rune
#

but this is not a decision to be made

#

it's already implemented

#

i'm just adding wallet functionality

eager sigil
#

KYC is mandatory in connect

brisk rune
#

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

eager sigil
#

ok so you're using destination charges with obo

brisk rune
#

yes

#

the customer connects his stripe to our platform

eager sigil
#

ok then you've already have thought this through

brisk rune
#

and then we use the stripe account id in every stripe call

#

yeah, not me, previous devs yeah

eager sigil
#

ok perfect

eager sigil
brisk rune
#

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?

eager sigil
#

would you mind sharing your account ID?

brisk rune
#

of which account

#

the main one, or the connected

eager sigil
#

the main one yes

#

where you configured the Apple Pay domain

brisk rune
#

oh, I configured the apple pay domain on the connected account

#

on test mode

#

is that what you're saying?

eager sigil
#

if it's obo you need to configure it on the main account

brisk rune
#

i defined the domain on the obo account

#

and it's successfully working apple pay

#

is that not intended?

eager sigil
#

you need to configure the Apple Pay domain on the platform's account

brisk rune
#

that doesn't make sense

#

our customers have their own websites

#

we as a jobboard software we provide Jobboard software as a service

#

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

eager sigil
#

if you're using your API keys then you need to register their domain on your platform's account

brisk rune
#

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

eager sigil
#

the file is the same for everyone

brisk rune
#

that's what i was asking

eager sigil
#

but the registration should be done on each domain

#

AFAIK

#

let me double check something though

brisk rune
#

ok

eager sigil
#

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

brisk rune
#

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?

eager sigil
#

yes

#

sorry wait

#

which API call?

sweet flintBOT
brisk rune
#

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.

potent owl
#

Hi! I'm taking over my colleague. Please, give me a moment to catch up.

potent owl
brisk rune
#

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.

eager sigil
#

@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

brisk rune
#

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?

eager sigil
#

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

brisk rune
#

Ah, this sucks

brisk rune
#

What happens if the domain has already been added?

#

Is this idempotent?

potent owl
#

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.