#ortegagroup_code

1 messages ยท Page 1 of 1 (latest)

viral minnowBOT
#

๐Ÿ‘‹ 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.

zenith lanceBOT
slender hinge
#

Hi

hot marten
#

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?

slender hinge
#

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

hot marten
#

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"?

slender hinge
#

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

hot marten
slender hinge
#

req_x1ZaxuNzByJVi3

hot marten
#

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.

slender hinge
#

Okay, if I remove that parameter and test it, should I have a successful payment?

hot marten
#

Yes! Do try and let me know if you have any issues ๐Ÿ‘

slender hinge
#

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?

hot marten
#

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.

slender hinge
#

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

hot marten
#

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?

slender hinge
#

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

hot marten
#

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

slender hinge
#

I'm having a hard time understanding it

hot marten
#

Is there are specific part that you are having issues with? I can help to eleborate it further.

slender hinge
#

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.

#

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?

hot marten
#

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?

slender hinge
#

Checkout

hot marten
#

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.

slender hinge
#

It is a mobile application

hot marten
slender hinge
#

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.

hot marten
#

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