#MatiasGz - installment details
1 messages ยท Page 1 of 1 (latest)
when performing the fetch, I understand that it has to go to a specific url, but I don't see which url it goes to!
In my local environment I see that it makes requests to
http://localhost:8080/collect_details
Which is not the correct one, I think
That looks right based on the fetch('/collect_details', {...}) line
And i imagine this is intended to retrieve details from the payment method via the API
and return those to the client
ok, do you have any idea why when that request responds, and when I try to do the:
const json = await response.json();
I get the following error:
What does the request response look like in the network tools?
Is it the expected json shape?
Or possibly an error?
the request has the following aspect:
What is the "preview" / payload showing?
visual is broken, goes to an error view
OK, so thats why
you're not responding with json, its responding with a page, looks like an authentication/login page
So you'll need to figure out why your server is doing that
What I can not understand, this request is made to my server and not to your url?
Yes, that's right -- the guide shows that you need to set up an endpoint in your code to handle these requests:
https://stripe.com/docs/payments/installments/meses-sin-intereses?platform=web&ui=api#retrieve-installment-plans
ok, understood, I will proceed to adjust on my side!