#Bhaal22
1 messages ยท Page 1 of 1 (latest)
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
Hello! That means you need to show the payment sheet in code that's directly related to a user gesture.
hmmm
Can you share the code you're using to call the payment sheet?
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
Does this error happen every time or only sometimes?
the first one?
Yeah.
the funny thing.
only the first time I press my "next" button
if i do it twice, the payment floz succeeds
wanna test?
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?
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
For web-based Apple Pay you need to validate the Apple Pay domain.
but for Stripe Connect, I dont have the capability to make this config
Which needs to be done in live mode, even for test mode transactions.
You can do it via the API.
ah yes?
This is for direct charges, correct?
on behalf of
Oh, in that case you need to validate the domain on your platform account.
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.
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
Should be here: https://dashboard.stripe.com/settings/payments/apple_pay
Or you can do this via the API using this approach: https://stripe.com/docs/stripe-js/elements/payment-request-button?client=html#verifying-your-domain-with-apple-pay
Awesome!
i just have a last question regarding this domain verification
i have to enable it for a restaurant (domain caprinospizza.co.uk)
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?
Yep.
and is there any limit?
Nope.
๐
Yeah. ๐
You too!