#sweetpotato8776

1 messages · Page 1 of 1 (latest)

delicate kindleBOT
torn flame
#

Hi there!

#

I'm not sure I understand. Can you rephrase your question?

hasty viper
#

completed here, you give a value like succeeded or failed to a variable called "redirect_status" as a request parameter.

#

Do you understand up to this point?

torn flame
#

Yes

hasty viper
#

I can't find in the documentation what value "redirect_status" comes in.

#

I think I've seen it before

#

Is this a deleted variable?

torn flame
#

Oh you are searching for documentation about redirect_status? Not sure, will have a look.

hasty viper
#

Are those two everything? But I'm getting "redirect_status"

torn flame
#

Yes there's also redirect_status, but it's not mentionned on this page for some reason.

#

I can't find much about it in the documentation.

hasty viper
#

so is this a value I shouldn’t use?

#

I'm sure it was developed that way based on the documentation.

torn flame
#

What do you mean? You can completely ignore that parameter.

hasty viper
#

I want to handle it separately when the user closes the window while making a payment.

#

When I closed the payment window, "redirect_status" came up as "failed". I was wondering if what I thought was correct.

#

or Are there any other cases where it fails?

torn flame
#

For this your should use webhook events, this is unrelated to redirect_status.

hasty viper
#

why???????

#

i mean what does " redirect_status" have to do related with ?

#

When i close the payment window, i want to go back to the order start screen. Webhooks don't handle that, right?

#

So I think we should branch there.

wild sundial
#

👋 taking over for my colleague. Let me catch up.

#

that's a more robust implementation

hasty viper
#

I want to know the event in which the user closed the payment window. In the country where I live, the response is usually given with a value like USERCANCEL.

wild sundial
#

In the country where I live
which country is that?

hasty viper
#

I already know the link you just gave me. I can't go back to the first checkout page with what's written there.

wild sundial
#

would you mind sharing a request ID or a PaymentIntent ID?

hasty viper
#

"id": "pi_3O3E5nEBFG6Yi3HC12Q6Acg0",

wild sundial
#

taking a look

hasty viper
#

i create a payment method and close the payment window, the payment intent will be canceled, so the object will currently be in the cancel state.

wild sundial
hasty viper
#

Now what?

#

I canceled it

wild sundial
#

I'm trying to understand your integration

#

how are you creating the payment method

#

which integration path are you using?

#

the deferred payment method with a manual payment method creation?

hasty viper
#

The service has not opened yet..

wild sundial
#

I'm not sure I follow

hasty viper
#

// Create the PaymentMethod using the details collected by the Payment Element
const {error, paymentMethod} = await stripe.createPaymentMethod({
elements,
params: {
billing_details : billingDetail
}
});

#

obj.paymentMethodId = paymentMethod.id;

// Create the PaymentIntent
const response = await RestClient.post("/api/stripe/payment-intent")
    .data(obj)
    .run()
    .then(response => {
        return response;
    })
wild sundial
#

why not confirm the PaymentIntent in the frontend directly?

#

I'm not sure that you need to manually create the payment method and send it to the backend to confirm it server side

hasty viper
#

because we verified your data before confirmPayment

wild sundial
#

we verified your data
what do you mean by that?

hasty viper
#

I don't speak English so I think you don't understand my intentions...

#

ㅠㅠㅠ

#

The server verifies once more whether the coupon is valid or the correct price.

#

I'll try again. Thanks for trying to help.....

wild sundial
#

you can do that when you're creating the PaymentIntent

hasty viper
#

Do this when create paymentinent and before confirm.

#

double check

#

There are cases that people go to the order page but don’t pay.

wild sundial
#

that's what the deferred flow is meant to solve

#

please read through the doc I sent you

hasty viper
#

thank you..

wild sundial
#

let me know if you need any more help