#davidalejandro

1 messages · Page 1 of 1 (latest)

keen bridgeBOT
frigid echo
thorny sequoia
#

Hi, that's the outdated article I mentioned. Several people here and in Github issues say that article is legacy and shouldn't be used

frigid echo
#

Sorry, I corrected the link.

thorny sequoia
frigid echo
#

That is correct! Will this customer and payment method only be used for one Connected Account?

thorny sequoia
#

No, it is expected that the customer and their payment methods will be used between different Connected Accounts.

Ok thank you.

So when until I implement that on my platform, customers will need to re-enter their card details every time they pay on a new Connected Account?

Also, when cloning the payment method from my platform into the Connected Account, CUSTOMER_ID and PAYMENT_METHOD_ID is the customer id on my platform, right?

payment_method = Stripe::PaymentMethod.create({
  customer: '{{CUSTOMER_ID}}',
  payment_method: '{{PAYMENT_METHOD_ID}}',
}, {
  stripe_account: '{{CONNECTED_ACCOUNT_ID}}',
})
full surge
#

Quick question a friend of mine made a payment true stripe with credit card the person who he made it to. Claimbs and says that the money its getting refunded to him but its bein 20 days and still money hasnt show. How long do this takes is there a way to know if this money was recived?

frigid echo
#

That is correct @thorny sequoia .

#

@full surge if you have technical questions, happy to chat. Please write in on the main channel as this thread is dedicated for @thorny sequoia

full surge
#

Am sorry

thorny sequoia
#

So final question, I think, is how does Stripe know, based on the customer id and payment method id on my platform, what customer on the connected account to attach it to? Is Stripe, behind the scenes, matching the email? A workflow example:

  1. A user registers on my platform
  2. A Customer is created for them on my platform.
  3. A user pays on a Connected Account.
  4. A Customer is thus automatically created for them on the Connected Account.
  5. I then implement Save and Reuse and ask the customer to enter their card details
  6. The customer then pays again on the same Connected Account.
  7. I clone the payment method via the code above.

Will this work? How does Stripe know this is the same customer?

frigid echo
#

1/Create the customer on the Platform Account
2/ Create the Payment Method on the Platform Account
3/ Attach the Payment Method to the Customer on the Platform Account
4/ Create a Payment Method using the Stripe Account Header and by passing the above object ids. It create a Payment Method on the Connected Account
5/ Create a Customer on the Connected Account also by using the Stripe Account Header
6/ Attach the Payment Method from step 4 to this customer id from step 5 by using the Stripe Account Header

#

Adding the steps above, I recommend that you test this in your test environment. It's much clearer once you have a script.

thorny sequoia
#

OK thanks @frigid echo , that was really helpful.

That makes me wonder if a workaround to not have to implement saving payment methods on my Platform Account (steps 2 - 4) would be to clone the Payment Method from one Connected Account to another. i.e.

1/ Create the Customer on the Platform Account
2/ Create a Customer on the Connected Account by using the Stripe Account Header
3/ Use Stripe::Session::Checkout to start a payment and pass step 2's Customer id on the customer param. This would automatically save a Payment Method for this Customer after payment.
4/ Whenever the user wants to pay again on a new Connected Account, I see they already paid on another Connected Account
5/ So I create a Customer on the new Connected Account by using the new Stripe Account Header.
6/ Lookup the Payment Method from the other Customer on the other Connected Account
7/ Attach the Payment Method to the new Customer on the new Connected Account by using the new Stripe Account Header.

frigid echo
#

I do not think this would work.

thorny sequoia
#

Yeah I thought so, thanks for entertaining the idea though 🙂

I think this is definitely the final question: Once I clone the Payment Method to the Customer, I can keep using Stripe::Checkout::Session, pass the Customer id via customer and that would automatically show the saved card details on the checkout page, right?