#Bhaal22

1 messages ยท Page 1 of 1 (latest)

vapid nacelleBOT
drifting hull
#

hi

#

I have this error message in my console

#

Delegation is not allowed without transient user activation

#

when I choose Google Pay in the Elements payment method form

primal wren
#

Hello! That means you need to show the payment sheet in code that's directly related to a user gesture.

drifting hull
#

hmmm

primal wren
#

Can you share the code you're using to call the payment sheet?

drifting hull
#

yes

#

this is my UI

#

when I press next the gpay window opens up

#

`$j('#step4_submit').click(async function (event) {
if (payment_method_id == Payment.selectedMethodId()) {
event.preventDefault();
elements.submit();

      let payment_method;
      await stripe.createPaymentMethod({
        elements,
        params: {
        },
      }).then(function (result) {
          payment_method = result.paymentMethod;

          stripeHandler3({token: {id: secret.client_secret, payment_method_id: payment_method.id}});
          sendForm(url, 'stripe_confirmation_result', JSON.stringify(value))
      });
    }
  })
})`
#

i have this error message in my browser on a regular browsing experience

#

not from any android app

#

and I have a second "issue" related to wallet. Apple Pay is activated for my stripe connect accounts. But I dont find the usual certificate + domain configuration I am used to see on plain stripe account

#

so the same element does not display Apple Pay button on my iphone

primal wren
#

Does this error happen every time or only sometimes?

drifting hull
#

the first one?

primal wren
#

Yeah.

drifting hull
#

the funny thing.

#

only the first time I press my "next" button

#

if i do it twice, the payment floz succeeds

#

wanna test?

primal wren
#

I think the issue is that you're not awaiting the result of elements.submit() before proceeding.

#

If you add await in front of that does it fix the issue?

drifting hull
#

i will give a try !!

#

need some time to redeploy my stuff

#

i let you knoz

#

know

#

in the meantime for apple pay if you have an idea?

#

what I am used to configure

#

on regular stripe accounts

primal wren
#

For web-based Apple Pay you need to validate the Apple Pay domain.

drifting hull
#

but for Stripe Connect, I dont have the capability to make this config

primal wren
#

Which needs to be done in live mode, even for test mode transactions.

#

You can do it via the API.

drifting hull
#

ah yes?

primal wren
#

This is for direct charges, correct?

drifting hull
#

on behalf of

primal wren
#

Oh, in that case you need to validate the domain on your platform account.

drifting hull
#

the main account right?

#

this is in french

primal wren
#

Your platform account, the one your connected accounts are connected to. Can't read the French screenshot, so I'm not sure how that applies.

drifting hull
#

Votre Compte = Your account

#

Vos comptes connectes = Your connected accounts

#

the only way to configure is "Votre Compte" -> Apple Pay

#

i have the "configure" button

primal wren
drifting hull
#

will give a try to configure the domain

#

and see

primal wren
drifting hull
#

cool tks

#

await does the trick !!!

#

thank you

drifting hull
#

all sorted !

#

apple pay also

primal wren
#

Awesome!

drifting hull
#

i just have a last question regarding this domain verification

#

but there are 96 franchisees with a subdomain for each of them

#

do i have to do it foe ALL of them one by one?

primal wren
#

Yep.

drifting hull
#

and is there any limit?

primal wren
#

Nope.

drifting hull
#

in the number of domains

#

ok

#

fair ๐Ÿ™‚

primal wren
#

๐Ÿ˜…

drifting hull
#

will use the apis

#

lol

primal wren
#

Yeah. ๐Ÿ™‚

drifting hull
#

tks Rubeus !

#

have a good nite

primal wren
#

You too!