#riku_api

1 messages ยท Page 1 of 1 (latest)

onyx charmBOT
#

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

marble slate
#

๐Ÿ‘‹

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 ?

haughty coyote
#

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...

marble slate
#

Do you want to save the card details with a payment or without ?

haughty coyote
#

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?

marble slate
#

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

haughty coyote
#

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.

marble slate
#

Here the seller need to be a Connected Account, but the buyer needs to be a Customer

haughty coyote
#

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?

marble slate
#

When onboarding the Connected Account, and if eligebale they can choose to have a debit card as a payout method

haughty coyote
#

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).

marble slate
haughty coyote
#

On it now.