#Jeff Jin-hold-capture

1 messages ยท Page 1 of 1 (latest)

storm fulcrum
#

Oh wait, you're asking about Stripe Connect

serene fable
#

Hi, @storm fulcrum Thank you for your reply.

storm fulcrum
#

You'd want to look into separate charges and transfers

serene fable
#

Let me check.

#

Thank you for your help.

storm fulcrum
#

NP! ๐Ÿ™‚ Good luck

serene fable
#

Hi, @storm fulcrum
i have just checked.
but it looks like that cant hold payment until a certain action takes place.

#

I think there should be these actions.
1, create a payment from student card
2, hold a payment in my platform
3, when a certain action has done, money can go to coach's account.

bleak jungle
#

๐Ÿ‘‹ stepping in here as hanzo needs to step away.

#

With Separate Charges & Transfers you determine when to move funds to your Connected Accounts

#

So you can hold funds in your platform until the relevant action

serene fable
#

Hi, @bleak jungle Thank you for your info. But i cant find that.

bleak jungle
#

What can't you find?

#

Can you be more specific about what part is confusing?

serene fable
#

How can we hold a payment?

bleak jungle
#

You create the charge in your platform account and as long as your platform is on manual payouts then you will hold the payment in your platform balance.

#

Then later on you can create a transfer to move the funds to your connected account user

serene fable
#

The student and coach should be connected accounts?

bleak jungle
#

The coach would be the connected account

#

The student would pay you -- the platform.

#

Then you would transfer to the coach (the connected account)

serene fable
#

The student should be connected account?

bleak jungle
#

The student is the customer, correct?

#

They are the ones making the payment?

serene fable
#

ye

bleak jungle
#

Then no the students would be Customers and the teachers would be Connected Accounts

serene fable
#

but the student should add a payment method and use that payment method when creating a payment.

#

await this.stripe.paymentIntents.create({
amount,
currency: "usd",
customer: customerId,
payment_method: paymentMethod,
off_session: true,
confirm: true,
});

#

like this

#

and the student can also become a coach.

bleak jungle
#

What integration flow are you planning on using to collect paymentmethod details?

serene fable
#

i am not sure

#

i have to choose one

bleak jungle
#

Yep so that is the next step. But regardless you will also need to decide on what type of Connected Accounts you want to use. I would recommend using Express for your use-case.

serene fable
#

How to check charge in one payment in stripe?

#

I created a payment and the payment gets successful but when i tried to refund using charge id, it gets 404 error, no charge found with that charge id

bleak jungle
#

Do you have a request ID for that error?

serene fable
#

The service Stripe Custom - Create a refund just returned an error (HTTP 404). Please consult their documentation to ensure your call is setup properly. Raw error:

{
"error": {
"code": "resource_missing",
"doc_url": "https://stripe.com/docs/error-codes/resource-missing",
"message": "No such charge: 'ch_3LNfzGABDisL7hin0IkI9J2B'",
"param": "id",
"type": "invalid_request_error"
}
}

Learn more about error codes and how to resolve them.

#

get this error

bleak jungle
#

Can you share your code for creating that refund?

serene fable
#

it is being done using bubble.

#

do you know bubble no-code framework?

bleak jungle
#

Ah no I'm not familiar with bubble.

serene fable
#

btw how can we check charge exists in payment

#

?

bleak jungle
#

You would look in your Dashboard for that charge ID

#

Or for the PaymentIntent ID

serene fable
bleak jungle
serene fable
#

where can i find charge in here?

bleak jungle
#

Down at the bottom under Connections

serene fable
#

yeah

#

then i see the charge info but why do i get this error?

bleak jungle
#

Ah okay

#

Looks like you are mixing up your API keys

#

I see that error on a different account that you have

#

So you need to check the API keys to make sure you are using the same ones for the refund that you did for creating the PaymentIntent

serene fable
#

Let me check

#

I have just checked and i am using the same api keys.

torpid bison
#

Hi ๐Ÿ‘‹

#

I'm stepping in for @bleak jungle . Gimme a sec to catch up

serene fable
#

Thanks

torpid bison
#

Okay so I see the Payment Intent being created that corresponds to this charge. Can you share the request ID where you tried to create a refund?

serene fable
#

How can i get request id?

torpid bison
serene fable
#

this is being done by bubble

#

no-code framework

torpid bison
#

But you should still see the request in your Stripe dashboard

serene fable
#

i cant even see the refund log

#

why does this happen

#

?

torpid bison
#

Unfortunately we don't have much insight into what is going on here since this channel is for developers writing code to integrate with Stripe. Have you tried reaching out to Bubble support?

serene fable
#

Let me do that

#

thank you for your help