#riku_api
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/1335957416105214024
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
๐
I cannot seem to confirm the payment or save the payment intent id so I could confirm the payment when the seller confirms they approve the buyer's price.
I'm not sure I understand the issue here. Are you wondering how to save this in Woocommerce ? or you are facing an issue with Stripe APIs ?
I am using the Stripe API in Sandbox mode. I manage to mount the payment element and create the intent. Also I can save the intent ID with the Woo order. But I am not sure whether I should confirm the payment immediately and then refund the customer if the seller no longer has the item, or can I use the payment intent id for confirming the payment.
I was trying the first one (confirm the payment at checkout) using the Javascript API, but It does not seem to work.
And it seems that the transaction in the Sandbox does not have any card information saved...
Do you want to save the card details with a payment or without ?
In other words you want to follow this flow:
https://docs.stripe.com/payments/save-and-reuse
Or this one:
https://docs.stripe.com/payments/save-during-payment
I guess the latter? But it can also be a payment, which can then be refunded, if the seller rejects the deal.
So eventually the buyer gets charged the full amount and the seller gets an amount that has had shipping and comission deducted from it.
Do i need to "Onboard" the two users as "connected accounts" and charge a fee?
what you mean by the two users ?
It depends on your use case...
I guess the latter? But it can also be a payment, which can then be refunded, if the seller rejects the deal.
I think you should avoid making a refund in this case.
You should save the payment method
then once the merchant(seller) accept the order, you try to charge the saved PaymentMethod, if the payment attempt went successfully then you create the order, otherwise you cancel everything
So this is a second hand store, where there are two users "the Buyer" and "the Seller". I want to transfer the money from the Buyer's card to the Seller's card and charge handling and shipping fees.
Here the seller need to be a Connected Account, but the buyer needs to be a Customer
OK, thanks!
Do I need to ask the seller's card details when the connected account is created? Or rather do they need to send them to Stripe?
When onboarding the Connected Account, and if eligebale they can choose to have a debit card as a payout method
I will look into it. Thanks. I still don't fully understand how the payment intent works. I seem to be only getting this kind of transactions (image).
Have you had the chance to follow the guide I shared with you?
https://docs.stripe.com/payments/save-and-reuse#charge-saved-payment-method
On it now.