#killuaeye99

1 messages · Page 1 of 1 (latest)

austere spruceBOT
dusk cove
#

Hello

jagged pewter
#

Hi there, can you share some screenshot where it's not showing

dusk cove
#

yes

#

i can't see anything

#

This is the app that i ran on local

#

when i uploaded app, then install this app in test mode, i can't see anything

#

@jagged pewter , do you understand what problem is?

#

there?

jagged pewter
#

sorry looking

dusk cove
#

yes

#

thank you

#

com.emidi.billingo

#

this is my app id

jagged pewter
#

The upload command didn’t have any error?

#

could you share its output?

dusk cove
#

yes

#

{
"id": "com.emidi.billingo",
"version": "1.0.1",
"name": "Billingo",
"icon": "./icon.png",
"permissions": [
{
"permission": "payment_intent_read",
"purpose": "Allows billingo app to read payment details"
},
{
"permission": "secret_write",
"purpose": "Allows storing secrets between page reloads"
}
],
"ui_extension": {
"views": [
{
"viewport": "stripe.dashboard.payment.list",
"component": "App"
},
{
"viewport": "stripe.dashboard.payment.detail",
"component": "PaymentDetailView"
},
{
"viewport": "settings",
"component": "AppSettings"
}
],
"content_security_policy": {
"connect-src": [
"https://billingo-stripe-backend.onrender.com/api/v1/billingo"
],
"image-src": null,
"purpose": ""
}
},
"constants": {
"API_BASE": "https://billingo-stripe-backend.onrender.com/api/v1/billingo"
},
"distribution_type": "public"
}

#

this is config file

jagged pewter
#

okie and how does StripeDashboard looks like when you pressed enter there

dusk cove
#

yeah, i missed something.
I can see the screen now, after i turned off preview mode

#

but i got another orror

#

*error

#

please help me

#

as you see in this config, i developed backend

#

but i can't get any result

#

Hello

#

i got this error

#

what should i do?

jagged pewter
#

Hmm

dusk cove
#

could we have a short call?

#

i can explain everything

jagged pewter
#

Sorry we don't provide call option here, let's continue in this thread

dusk cove
#

okay

jagged pewter
#

This is an error when you fronend tries to call your backend in an AJAX request, correct?

#

On your backend log what error do you see

dusk cove
#

just a min, please

#

i can't see any logs

#

here is my backend code

#

as you see in this code, this is very simple

#

should i add extra settings in stripe apps?

jagged pewter
#

No server side log? If you expand the "stack" on your frontend error how does it look like?

dusk cove
#

here is log

jagged pewter
#

Can you paste its full content here?

dusk cove
#

you mean backend?

#

this is express app

#

const express = require("express");
const cookieParser = require("cookie-parser");
const cors = require("cors");

const app = express();

app.use(express.json());
app.use(express.urlencoded({ extended: true }));
app.use(cookieParser());
app.use(cors());

const billingo = require("./routes/billingo");
app.use("/api/v1/billingo", billingo);

module.exports = app;

#

this is full code

jagged pewter
#

No no I mean the "stack" from the screenshot you provided ealier

dusk cove
#

which screen?

jagged pewter
dusk cove
#

you mean the code of this part?

jagged pewter
#

No the "stack" where it says "Axios Error"

#

The full text of the error

#

"Axios Error: Network Error...."

dusk cove
#

yes.

jagged pewter
#

Ok did it stop in catch (e) on your frontendcode?

dusk cove
#

yes

jagged pewter
#

How e looks like?

dusk cove
#

this one

jagged pewter
#

Ah alright

dusk cove
#

🙂

#

so what is solution?

jagged pewter
#

What is API_BASE?

#

Does it have http?

dusk cove
#

this is backend url

jagged pewter
#

Can you log environment.constants?.API_BASE and see it's value?

jagged pewter
dusk cove
#

it works correctly

#

but stripe deny this request.

jagged pewter
#

No it just can't AJAX to there yet

dusk cove
#

should i contain app secret in axios header?

jagged pewter
#

If you use POSTMAN and simply try to AJAX it, will you see something on server log?

dusk cove
#

yes, of course.

jagged pewter
#

And received responses?

dusk cove
#

yes

#

request doen not send to server

#

do you understand what i mean?

#

hello

jagged pewter
#

You mean when you use POSTMAN, can you or can't you send the request to your server, and did you get back the response from it?

dusk cove
#

do you see this?

jagged pewter
#

Okie so it does

#

The thing is from Stripe App frontend, you can't AJAX to your own server

#

The apiKey there, is it your own key or a Stripe key?

dusk cove
#

my api key

#

billingo api key

jagged pewter
#

It involves sending and confirming signature

#

I think this will then let 2 sides talks to each other