#Nidhi-apple-pay

1 messages · Page 1 of 1 (latest)

verbal scroll
#

Hi 👋 can you share a link to your site so I can take a look?

thick turtle
#

select bar2 -> select indian Cafe -> select time -> add item to cart -> checkout -> click Pay by Credit/Debit/Wallet

verbal scroll
#

Thank you, and just to make sure I understand, it looks like you embedded the Payment Element in that portion of your checkout flow?

thick turtle
#

yes

#

we have done both elements and independent buttons just to verify if apple pay is working with one or the other

#

but it worked for none

verbal scroll
#

When you verified your Apple Pay domain, did you do that with your live or test Stripe api key?

#

I'm suspecting that you used your test key, and believe that if you do so with your live key then this behavior will be resolved.

thick turtle
#

we are verifying through code - tested with both live and test keys

#

var paymentIntent = paymentIntentService.Create(x);

                _cart.client_secret = paymentIntent.ClientSecret;
                HttpContext.Session.SetObjectAsJson("MyCart", _cart);

                var options = new Stripe.ApplePayDomainCreateOptions
                {
                    DomainName = "qasim.techryde.ca",
                };

                var service = new Stripe.ApplePayDomainService();
                var domain = service.Create(options);
verbal scroll
#

I see that verification code is near code relating to a Payment Intent, are you verifying your domain as part of your flow for each payment?

thick turtle
#

This was just for testing

verbal scroll
#

Currently, I'm seeing the domain of the checkout page that you provided was registered in test mode, but our Apple Pay integration requires that the domain be verified using your live mode key.

thick turtle
#

ok

#

Its giving error with live credentials

#

something with Client secret

verbal scroll
#

Client secret isn't part of the Apple domain verification process.

thick turtle
#

Domain is already verified through Dashboard

#

but subdomain is the problem thats what @woeful minnow told me earlier

verbal scroll
#

From the dashboard, could you try deleting the domain and re-adding it?

#

And let me know once you have, so I can compare what I refresh what I'm seeing on my end.