#Joedmiso
1 messages · Page 1 of 1 (latest)
Can you share the request ID (req_xxx) where it asked for success_page_url? Here’s how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
You must provide a return_url when confirming using automatic_payment_methods[enabled]=true.; request-id: req_3GBbQ5eweT3y6P
@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
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
Why do you sent the customer to success page before checking out? Hasn't the customer completed by this time?
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
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
yes, it has been done that way.. i said wrong
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?
@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?
Why do you have two sets of integration - Checkout Session and Payment Intent?
In https://dashboard.stripe.com/test/logs/req_3GBbQ5eweT3y6P, it used Payment Intent integration - Custom integration embedded in your website
In the code above, you used Checkout Session - Stripe hosted payment page
You should only use one of them for your checkout process
Ok, we will try this way and see what its the outcome
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?
If you wish to collect application fee on the connected account, you can set the amount in payment_intent_data.application_fee_amount when creating a Checkout Session: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-application_fee_amount