#jatinpatel0708

1 messages · Page 1 of 1 (latest)

shadow slateBOT
vagrant crystal
#

Can you share the URL?

lapis lion
#

Choose Apple Pay

#

There?

vagrant crystal
#

Yeah testing

#

Can't click the button

#

are there some conditions?

lapis lion
#

please click here and Choose Apple Pay

vagrant crystal
#

Gotcha

#

I can see the ApplePay sheet

#

No issue

#

Do you notice anything on the browser console?

lapis lion
#

Wait I Will send you the console Response

vagrant crystal
#

What issue? That's only an iframe HTML

#

do you notice any error on the browser console?

lapis lion
#

here is the same issue Apple Pay button is showing but when I click on Apple Pay the Pop-up opens and closes

#

here is the browser Console

vagrant crystal
#

Hmm what URL is that 400 error?

lapis lion
#

i will send wait

#

How can I add an Apple Pay Domain To connected Account can you please share API link because I am not finding this API

vagrant crystal
#

Why? I think your page is already working as it con open the ApplePay sheet for me. Don't think you are lacking any settings on your account

lapis lion
#

when i have Regsiter Domain for the Apple Pay that time I am using this code:
$applePayDomain = $stripe->applePayDomains->create([
'domain_name' => 'www.givingx.com'
], [
'stripe_account' => $user->stripe_account_id
]);

vagrant crystal
#

Yeah the button is clickable and I can bring the sheet displayed as the screnshot you see

lapis lion
#

Yes payment sheet open completely fine with payment info and card listing but after some time in processing it was immediately close the popup and not making the payment fail and successfull..

shadow slateBOT
vagrant crystal
#

And you don't notice anything from your Dashboard? Is this Test mode or Live mode?

lapis lion
#

Live Mode

vagrant crystal
#

Can you configure a Test mode site with unminified JS? Then we can test your site

lapis lion
#

URL: https://api.stripe.com/v1/apple_pay/sessions
Status: 400
Source: Network
Address: 13.228.126.182:443
Initiator:
shared-e44647061d786a27d7732490965070da.js:1:163003

status: 400
Access-Control-Allow-Credentials: true
Access-Control-Allow-Methods: GET,HEAD,PUT,PATCH,POST,DELETE
Access-Control-Allow-Origin: https://js.stripe.com
Access-Control-Expose-Headers: Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required
Access-Control-Max-Age: 300
Cache-Control: no-cache, no-store
Content-Length: 417
Content-Security-Policy: report-uri https://q.stripe.com/csp-report?p=v1%2Fapple_pay%2Fsessions; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self'
Content-Type: application/json
Date: Thu, 14 Dec 2023 05:08:14 GMT
idempotency-key: 2cf165a0-1af0-41e4-a2ed-7b51fe68cbfd
original-request: req_89vxB9JXHKvwRM
request-id: req_89vxB9JXHKvwRM
Server: nginx
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload
stripe-account: acct_1NW1eBGgKrL27bM6
stripe-should-retry: false
stripe-version: 2022-11-15
Timing-Allow-Origin: https://js.stripe.com
Vary: Origin
x-stripe-routing-context-priority-tier: livemode

here is the request id: req_89vxB9JXHKvwRM, which is I am getting in the Console response

violet saffron
lapis lion
#

Yes

#

in the Live Mode: the payment sheet opened completely fine with payment info and card listing but after some time in processing it was immediately closed

violet saffron
#

Do you attempt to pay? Or you just leave it open and not pay?

lapis lion
#

I am not able to Pay because the Payment Sheet is Closed immediately

violet saffron
#

are you using a real card to attempt payment?

lapis lion
#

Yes

violet saffron
#

it's working fine for us. When we look at our logs, it looks like you're using the sandbox for Apple Pay

#

I'll recommend you try on another device/account where you're certain that you don't have any Apple Pay sandbox enabled on the account

lapis lion
#

okay. I will try and come back to you in a couple of time

violet saffron
#

just so you're aware, we don't support support Google Pay or Apple Pay for Stripe accounts and customers in India. Therefore, you can’t test your Google Pay or Apple Pay integration if the tester’s IP address is in India, even if the Stripe account is based outside India.

lapis lion
#

okay

shadow slateBOT
lapis lion
#

Hi here is the Response using the Live Card
is there a Change Add Apple Pay Domain Policy in stripe?
{
“error”: {
“message”: “Before you can start using Apple Pay on the Web, you need to first register your domain. For more information, see https://stripe.com/docs/payments/payment-methods/pmd-registration.“,
“request_log_url”: “https://dashboard.stripe.com/acct_1NW1eBGgKrL27bM6/logs/req_2bPIp9Hm655cHv?t=1702535493”,
“type”: “invalid_request_error”
}
}

glad finch
#

Have you registered your domain for Apple Pay?

lapis lion
#

not yet!

i have registered the domain here
$applePayDomain = $stripe->applePayDomains->create(['domain_name' => 'www.givingx.com'], ['stripe_account' => $user->stripe_account_id]);

#

the Apple Pay domain App functionality is changed?

glad finch
lapis lion
#

I want to know When the change the policy for adding the domain. because i am using this code for the add Domain,
can I know this?
$applePayDomain = $stripe->applePayDomains->create(['domain_name' => 'www.givingx.com'], ['stripe_account' => $user->stripe_account_id]);

#

this is the Correct method or Not?

violet saffron
lapis lion
#

Got it, it means this method which I have integrated before is deprecated right?

violet saffron
lapis lion
#

okay

#

I have register the Domain for the connected account but still Apple Pay is not working

#

The Apple pay button is showing, but when i click on the Apple Pay Button the Payment sheet Open and after the processing it close automatically, i am not able to pay

violet saffron
#

I just opened that link and it's loading fine for me. It seems like it's a device issue specific to you

#

can you ask an overseas colleague to test?

lapis lion
#

Apple Pay is loading fine on my device, but when i click on to Apple Pay button "Payment sheet Open and after the processing it close automatically,"

violet saffron
#

the payment sheet opens and stays there waiting for me to pay it

#

it does not close automatically for me

#

multiple folks on my team have tried and it's working fine for them. We don't encounter the same error that you are seeing. Can you get an overseas colleague to test?

lapis lion
#

okay let me check again

lapis lion
#

I have checked and still getting issue, I have received this, and I have Tested it 3 different device
{
“error”: {
“message”: “Before you can start using Apple Pay on the Web, you need to first register your domain. For more information, see https://stripe.com/docs/payments/payment-methods/pmd-registration.“,
“request_log_url”: “https://dashboard.stripe.com/acct_1NW1eBGgKrL27bM6/logs/req_2bPIp9Hm655cHv?t=1702535493”,
“type”: “invalid_request_error”
}
}

#

here is the Payment Method Domain id: pmd_1NbbupGgKrL27bM664OjcE1F

violet saffron
lapis lion
#

yes, confirmed

violet saffron
#

remember that you should use the StripeAccount header to do the domain registration on the connected account also

lapis lion
#

Yes, I am using the connected account,

yes. i have verified the Domain

#

here is the payment method domain id: pmd_1NbbupGgKrL27bM664OjcE1F

can you please check

willow vector
#

Can you share the screenshot of your checkout page with domain along with the error?

lapis lion
#

{
“error”: {
“message”: “Before you can start using Apple Pay on the Web, you need to first register your domain. For more information, see https://stripe.com/docs/payments/payment-methods/pmd-registration.“,
“request_log_url”: “https://dashboard.stripe.com/acct_1NW1eBGgKrL27bM6/logs/req_2bPIp9Hm655cHv?t=1702535493”,
“type”: “invalid_request_error”
}
}

willow vector
#

I'd need the screenshot of your webpage which the error was thrown, not this error message

#

Is this page iframe-ed into other page, i.e. another domain?

lapis lion
#

the Both are not working

willow vector
#

Sorry, what "both" are you referring to here?

#

Can you share the exact website that you attempt to make Apple Pay from? Not the embedded one?

lapis lion
willow vector
#

I'm able to see Apple Pay showing

#

If you iframe-ed the embedded page, the domain should be registered at the website that it belongs to, not givingx.com

#

For example, if the embedded page is iframed into www.test.com, the domain should be registered as test.com

willow vector
#

Yes, I can see Apple Pay too

#
{
  “error”: {
    “message”: “Before you can start using Apple Pay on the Web, you need to first register your domain. For more information, see https://stripe.com/docs/payments/payment-methods/pmd-registration.“,
    “request_log_url”: “https://dashboard.stripe.com/acct_1NW1eBGgKrL27bM6/logs/req_2bPIp9Hm655cHv?t=1702535493”,
    “type”: “invalid_request_error”
  }
}

The logs at our end showed that Apple Pay was accessed from another domain, not givingx.com

#

I'd recommend writing in to Support https://support.stripe.com/contact/email with above request ID (req_2bPIp9Hm655cHv) now, so that we can share the exact domain that you accessed the Apple Pay from

#

once you've written in please let us know so that we can respond

lapis lion
willow vector
#

Apple Pay won't be shown if you open the page in India as Stripe doesn't support Apple Pay in India

#

I'm accessing this page outside of India and Apple Pay is showing fine for me

lapis lion
#

Client Is checking in USA

#

he face same Issue

#

Same issue {
“error”: {
“message”: “Before you can start using Apple Pay on the Web, you need to first register your domain. For more information, see https://stripe.com/docs/payments/payment-methods/pmd-registration.“,
“request_log_url”: “https://dashboard.stripe.com/acct_1NW1eBGgKrL27bM6/logs/req_4cDYxeKndx83Nn?t=1702543938”,
“type”: “invalid_request_error”
}
}

Client Sent it to me

violet saffron
#

To be clear, there are two separate issues here :

  1. You should not test from an India IP
  2. You need to register the domain that your iframe is embedded in
#

for your client in USA, you have not registered and verified the domain that your iframe is embedded in