#xiaxiao-applepay
1 messages · Page 1 of 1 (latest)
Hi there! Posting your other messages here:
The following code does not appear apple pay button
var stripe = Stripe('pktest**', {
apiVersion: "2020-08-27",
stripeAccount: "acct_1Kh5vwHcQvyD0l9d"
});
The following code appears apple pay button
var stripe = Stripe('pktest**', {
apiVersion: "2020-08-27"
});
help me
When using the stripeAccount, you should pass the account ID of a connected account. But here you passed the account ID of the platform account? I'm not sure to understand what you are trying to do.
Hi, I added in my code
stripeAccount: "acct_1Kh5vwHcQvyD0l9d"
The pay button is not displayed.
Hi, I added in my code
stripeAccount: "acct_1Kh5vwHcQvyD0l9d"
The pay button is not displayed.
Why is this?
Can you clarify why you use stripeAccount: "acct_1Kh5vwHcQvyD0l9d"?
To make connect request you need to:
- Use the API keys of the platform account
- set
stripeAccountto the account ID of the connected account
But here it looks like thestripeAccountis the platform ID?
Sorry just didn't see your message. How can I get the correct value?
How do I find the account ID of the linked account?
What format string is the account ID of the connected account?
How do I find the account ID of the linked account?
You can find it in you dashboard in the Connect tab, or with the API using https://stripe.com/docs/api/accounts/list
What format string is the account ID of the connected account?
It should beacct_xxx
you can learn more about this here: https://stripe.com/docs/connect/authentication
Also you will need to register the domain for the connected accounts, as mentioned here: https://stripe.com/docs/stripe-js/elements/payment-request-button?html-or-react=html#html-js-using-with-connect
Hello, we have created multiple stripe accounts with the same information, the first one should be the main account, and the others are sub-accounts. I think it should be the relationship between them.
But I encountered a problem when using the sub-account.
as follows:
let stripe = Stripe(_this.stripe_app_key,{
apiVersion: "2020-08-27",
stripeAccount: 'acct_1KBa4mG4AOPM3T3W'
});
When I delete stripeAccount, google pay fails. (https://api.stripe.com/v1/payment_intents/pi_3LA9hdHcQvyD0l9d0waK8lhH/confirm 404 )
When I add stripeAccount , apple pay does not show the pay button.
I tried the method you provided. still no success
So two things:
- If you want to use the sub accouts, you need to use
stripeAccount. But you need to make sure you use the correct ID (not the ID of the platform account) - For Apple pay to work on sub accounts, you need to register the domain for each sub accounts as mentioned here: https://stripe.com/docs/stripe-js/elements/payment-request-button?html-or-react=html#html-js-using-with-connect
Is this the correct ID?
Can you copy-paste that account ID? And also share the account ID of your platform?
I'm sorry, I just want to know if the correct ID is here
Sure, please copy-paste the ID so I can have a look at it. And I also need the account ID of your platform.
acct_1KBa4mG4AOPM3T3W
Do I need to add any other information? I'm not very skilled, I hope you understand
you haven't registered the domain correctly, you have to make the API call described at https://stripe.com/docs/stripe-js/elements/payment-request-button?html-or-react=html#html-js-using-with-connect to register the domain for the connected account(acct_1KBa4mG4AOPM3T3W in this case)
note you have to delete the registration if you made it through the dashboard while logged into that account, first, and then register through the API.
So, let me sort out the conclusion.
First: my ID is fine
Second: I need to register the domain at https://stripe.com/docs/stripe-js/elements/payment-request-button?html-or-react=html right?
How can I check if my domain name is registered?
- I need to know if my ID is correct.
- Did I register the domain name correctly? If not, how to register
Second: I need to register the domain at https://stripe.com/docs/stripe-js/elements/payment-request-button?html-or-react=html right?
you need to make the API call described on that page
How can I check if my domain name is registered?
easiest way is to confirm that the button appears, but otherwise just ask me and I'll look at how it's registered and tell you what's wrong