Endpoint with no return data


I have created an endpoint that receive a token from external api and return a parameters and link
, the sending of the token to the endpoint works very well , but it didn’t return info.

Code setup

fetch(charge_endpoint_url, {
method: “POST”,
body: JSON.stringify(data),
headers: {
“Content-Type”: “application/json”
.then((response) => {
if (response.ok) {
console.log(“token sent successfully”);
} else {
console.error(“error sending token”);

Expected response

“status”: “success”,
“response”: {
"URL transction ": “https://sandbox.payments.tap.company/test_gosell/v2/payment/tap_process.aspx?chg=BoSLTwx%2BdKZlk%2FFUPAXfnVgBJKOAng0dMzMaZP4Td4k%3D”,
“Cus_id”: “cus_TS05A0720231311Pq4m0804116”,
“Card_id”: “card_XKNK47231010LM608M93J77”

Any idea how to fix this

Why don’t you call the external api inside the Bubble?

Looking for a Bubble Coach? Buy Bubble.io mentorship

Sorry I wrote js code , but its”api request “actually