#Joedmiso

1 messages · Page 1 of 1 (latest)

shell bladeBOT
floral surge
sacred flax
#

You must provide a return_url when confirming using automatic_payment_methods[enabled]=true.; request-id: req_3GBbQ5eweT3y6P

#

@floral surge

floral surge
#

Thanks for the waiting. Discord server is busy now

#

Where did you set the success_page previously?

#

Since you set automatic_payment_methods.enabled to true, customer will be redirected to the URL after completing the payment

#

return_url is the parameter which you tell Stripe where to redirect to after completing the payment

sacred flax
#

in the check out , just before check out we send the sucess page

#

so , that means the check out page goes twice ? but that does not make sense to redirect the customer twice,, once he paid, and then once the connected account got the payment.. ?

#

@floral surge

floral surge
#

Why do you sent the customer to success page before checking out? Hasn't the customer completed by this time?

sacred flax
#

i think there is a confusion..i will ask the dev to log in

#

@unborn jetty

#

@floral surge here francisco the developer, so we can get your support. Thanks you

floral surge
#

Sure! My question here is why do you redirect the customer to success page first even if the checkout hasn't been completed?

#

You should only redirect customer to success page once after completing the checkout/payment process

#

In order to redirect customer to the success page, you should set return_url in the confirm request

sacred flax
#

yes, it has been done that way.. i said wrong

unborn jetty
#

We perform a sell successfuly and stripe redirect to our success page. Now we need to collect our fee amount, We have placed some code we have found on the stripe website and we have followed the guide, providing our key and our client key.
We have tried to create the collect but the response we have got says that: we need to provide payement_method

#

My question is why do we need to provide again the URL since we already have provided the URL when performing the checkout?

sacred flax
#

@floral surge

#

We have followed the stripe API to set up the payment page and success page. Once a customer its about to pay, we need to send all the information that stripe ask (SessionCreateParams params =
SessionCreateParams.builder()
// .addShippingOption(element)
.setMode(SessionCreateParams.Mode.PAYMENT)
.setSuccessUrl(successPage)
.setCancelUrl(cancelPage)
.addAllLineItem(elements)
.setClientReferenceId(sessionToken)
.addPaymentMethodType(SessionCreateParams.PaymentMethodType.CARD)). including success page. So, now that we are getting the fee from connected account, its asking again to supply this page. So, i dont think it make sense to be send twice.. Maybe, we need to send the colllect fee at the same time we send all the info at the payment timne?

floral surge
#

Why do you have two sets of integration - Checkout Session and Payment Intent?

#

You should only use one of them for your checkout process

sacred flax
#

Ok, we will try this way and see what its the outcome

unborn jetty
#

I dont know we have tried to understand how to collect the fee amount and every time they send us a link. The information is not so clear. Can we add the fee amount to collect in the Checkout session?

floral surge