#ortegagroup_code
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1295569726075961448
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- ortegagroup_api, 5 hours ago, 36 messages
Hi
Hi! Since you already have the connected account ID in your header, the funds will go to the connected account. You will not need use the on_behalf_of parameter in this case. Are you facing any issues with this?
Do I just make the payment attempt with the stripe Account parameter so that the money goes to the specified account?
Debo pasarle como parametro "card_payments"?
Should I pass "card_payments" as a parameter? sorry
Do I just make the payment attempt with the stripe Account parameter so that the money goes to the specified account?
Yes
Should I pass "card_payments" as a parameter? sorry
Why do you want to pass "card_payments"?
Can you check the account ID where I am trying to receive the payment?
For example
acct_1Q9uyjAcn1DuZdYc
It's a one account
It's test mode
Can you share the request ID (req_xxx)? Here's how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
req_x1ZaxuNzByJVi3
This request was not successful as you have used the on_behalf_of parameter. You will need to remove that parameter because you have already indicated the connected account's ID in your header.
Okay, if I remove that parameter and test it, should I have a successful payment?
Yes! Do try and let me know if you have any issues ๐
Okay, I'll try it now and let you know how it turns out, thank you very much.
Can you check with this id: req_F6hgSRrfu7ooyo
The client does not exist in the connected account
How to clone the client to be able to make the payment?
This request was not successful as well because the customer object exists on the Platform (acct_1PlxwpAZJHGoU7Pr). When you indicate the connected account's ID in the header, you are making the API call for your connected account. In this case, the customer too needs to be available on the connected account.
You cannot clone a customer to the connected account. Instead, you can clone the customer's PaymentMethod to the connected account and create a Direct charge [0]. If you want to attach the payment method to a customer, you will need to create a new customer on the connected account and then attach the cloned payment method them [1].
[0] https://docs.stripe.com/connect/direct-charges-multiple-accounts
[1] https://docs.stripe.com/api/payment_methods/attach
Ok but what if I don't have the payment method?
Why does the user have Apple Pay as their default payment method? Do you understand?
For example this customer: cus_R0pgiLRbf34fih, (me) i pay to with Apple pay
Ok but what if I don't have the payment method?
As long as you want to create a payment for a customer with Direct charge, the customer must exist on the connected account.
Why does the user have Apple Pay as their default payment method? Do you understand?
To clarify, are you asking how to set Apple Pay as a default payment method for a customer?
So what I'm implementing is in vain.
Can Apple Pay be declared as the default payment method so that this payment method can be obtained and reused on connected accounts?
Tell me yes
You can use Checkout [0, 1], Payment Elements [2] or Express Checkout [3] to collect a customer's payment method details. This payment method can be Apple Pay. Once the payment method is attached to the customer, you can clone it to the connected account,
[0] https://docs.stripe.com/payments/save-and-reuse?platform=web&ui=stripe-hosted
[1] https://docs.stripe.com/payments/save-and-reuse?platform=web&ui=embedded-form
[2] https://docs.stripe.com/payments/save-and-reuse?platform=web&ui=elements
[3] https://docs.stripe.com/elements/express-checkout-element
I'm having a hard time understanding it
Is there are specific part that you are having issues with? I can help to eleborate it further.
I have an endpoint in the backend that is responsible for showing me the payment methods and adding a payment and the payment button also appears.
Just so you know, I'm rolling this out to iOS devices.
This is the endpoint
I can't get the payment method if the user doesn't make a purchase, but I also can't make a purchase if the buttons don't appear, understand?
I understand you would like Apple Pay option to appear. I will need your help with some more information so we can get things working.
I have an endpoint in the backend that is responsible for showing me the payment methods and adding a payment and the payment button also appears.
Can I check what Stripe integration are you using? For example, is it Payment Elements or Checkout?
Checkout
https://docs.stripe.com/apple-pay?platform=ios
This documentation for SwiftUI
Can you please share your development website with us? Do include login credentials (if any) and steps to navigate to the page where you expect Apple Pay to be displayed.
It is a mobile application
Noted! Can I confirm if you have completed the steps indicated here: https://docs.stripe.com/apple-pay?platform=ios#accept and if you have a real card in your Apple Pay account?
Yes
You are already making successful payments in the parent account where customers are registered, that is, when a user registers in the mobile application I automatically create a customer in Stripe (Legends Ice Cream Franchise)
But what I want is that users can register on the main Stripe account but be able to pay on the secondary accounts (different locations). As a user, I can purchase on location 1 or location 2, but as a user, I don't need to register on both locations. That's why I think using connected Stripe accounts is the best option in my case.
What I'm noticing is that for a user to define a payment method they must make a purchase, otherwise the default payment method cannot be stored and that being said their payment method cannot be cloned for connected accounts.
Right?
Maybe I should create two endpoints, one to show the buttons to make the first payment and once that is done I can define the payment method for each user and then recycle it in the future.
Thank you for the detailed information! Lets take a step back to see what you already have.
The request IDs you provided shows you are using Direct charges [0]. With direct charges, the connected accounts need address disputes and refunds. Looking at the test connected account (acct_1Q9uyjAcn1DuZdYc) you are using, it doesn't have access to any dashboard. This makes it difficult for you as a Platform to keep track of every charge when it comes to refunds and disputes.
Hence, in this case we recommend using destination charges [1]. This also helps with your current use case. The customer and their payment method is available on your platform account. With a destination charge, you can use the same customer instead of having to clone it to your connected account.
[0] https://docs.stripe.com/connect/direct-charges
[1] https://docs.stripe.com/connect/destination-charges