#unibit - error

1 messages · Page 1 of 1 (latest)

west dawn
#

Can you share the details of that error?

junior stratus
#

pi_3KcGQ6LoffM3pbuK0uFRnsZI

west dawn
#

OK, and whats the issue?

#

What are you trying to do?

junior stratus
#

we are trying to transfer funds from our account to a valid connected account

#

as you can see the status is incomplete with the reason of customer has not enter their payment method

west dawn
#

Yes, you haven't completed the payment

junior stratus
#

what does that mean?

chrome gull
#

just that the customer never paid

west dawn
junior stratus
#

we are totaly lost

chrome gull
#

Are you the developer writing the code?

junior stratus
#

yesx

chrome gull
#

Okay. So right now, you create a PaymentIntent. That means you intend to take a payment from a customer. That's step 1. You never collected any information from your customer like their card details or their email or anything. You stopped at the first step

junior stratus
#

we have just received a payment from client with id card_1KcGNVLoffM3pbuKb3bV5mLW

#

we need to transfer these funds to one of our connected accounts

chrome gull
#

you have not though

#

maybe you're mixing things up?

#

That PaymentIntent was never completed

#

the card you mentioned is in Test mode paid with the fake test card 4242424242424242

junior stratus
#

so?

chrome gull
#

so what?

#

Ah sorry it's all test mode

#

The way you were explaining it I thought it was Live mode. Okay I'm sorry I worry you have mixed up a lot of concepts

#

the fact that you get a card_123 tells me you are not following the official docs (since this is a >3 years old flow you're using)

junior stratus
#

all are in test mode

chrome gull
#

Okay so you have a PaymentIntent. Your code is supposed to use Stripe.js to confirm the PaymentIntent client-side

#

But instead, you wrote completely different code that collects card details and just creates a one-time charge, entirely separtate from the PI

junior stratus
#

so what is the problem here, the funds are in our account

#

we are using legacy checkout to collect payments

chrome gull
#

Legacy Checkout has been deprecated for over 3 years though

junior stratus
#

yes but it works

chrome gull
#

not really, it can't handle 3D Secure for example

#

which is more and more common even in the US

junior stratus
#

we are not in us

#

our platfrom is build using legacy checkout

chrome gull
#

I'm sorry, you're asking for help, I'm trying to help you. Legacy Checkout has been deprecated for years now. All our docs clearly cover this and end to end flow to accept payments.
It's fine if you want to use Checkout, totally your business decision, but then your code can not use PaymentIntents, it's entirely incompatible. So creating a PaymentIntent really doesn't work here.

You need to change your code so that when it creates the Charge it properly uses transfer_data, like you did in that PI

junior stratus
#

please explain it with more details

#

this is the code we are using to create a charge

#

var customers = new CustomerService();
var charges = new ChargeService();

            var customer = customers.Create(new CustomerCreateOptions
            {
                Email = Request.Form["email"],
                Source = Request.Form["stripeToken"]
            });

            var charge = charges.Create(new ChargeCreateOptions
            {
                Amount = Convert.ToInt32(Request.Form["item_fee"]) * 100,
                Description = Request.Form["email"],
                Currency = "sek",
                Customer = customer.Id

            });
chrome gull
junior stratus
#

you mean, we need to set our stripe account id in transfer_data ?

chrome gull
#

I am so sorry, I am really trying to help, but you seem completely lost

#

You created a PaymentIntent. When you did, you set transfer_data with the id of a connected account. Why did you do that part?

junior stratus
#

if we are so lost how did we manage to create all these payments ?

#

and anyway, all these payments we have created, arent they are in our stripe account ?

chrome gull
#

Let's pause for a second

#

Can you explain why you are creating a PaymentIntent?

#

That's the part that doesn't add up for me

junior stratus
#

we are not creating a paymentintent

#

where did you see that?

chrome gull
#

2:01 PM] unibit: pi_3KcGQ6LoffM3pbuK0uFRnsZI

#

that's the first example you gave us, that's where it all started

junior stratus
#

yes ok

#

we where trying to move funds from our stripe account to one of our connected accounts

chrome gull
#

Ah perfect

#

Okay so you just used the wrong API, and that's the confusion (PaymentIntents are a new way to accept money, a way better way I may add)

junior stratus
#

yes i think that was the confusion, let us try this and i let you know

chrome gull
#

Are you explicitly trying to use "separate charges and transfers"?

junior stratus
#

yes

chrome gull
junior stratus
#

i know we have to move, but at the moment we do not have the time to implement it from scratch

#

i think now it worked, can you please check tr_1KcHlSLoffM3pbuKL2c7hCVv

chrome gull
#

yep you transferred 4SEK to a connected account