#killuaeye99
1 messages · Page 1 of 1 (latest)
Hello
Hi there, can you share some screenshot where it's not showing
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?
sorry looking
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
okie and how does StripeDashboard looks like when you pressed enter there
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?
Hmm
Sorry we don't provide call option here, let's continue in this thread
okay
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
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?
No server side log? If you expand the "stack" on your frontend error how does it look like?
I meant the "stack" from here
Can you paste its full content here?
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
No no I mean the "stack" from the screenshot you provided ealier
which screen?
this
No the "stack" where it says "Axios Error"
The full text of the error
"Axios Error: Network Error...."
yes.
AxiosError: Network Error
at XMLHttpRequest.handleError (https://cdn.stripeextensions.com/com.emidi.billingo/1.0.1/ext.js:4428:16)
at Axios.<anonymous> (https://cdn.stripeextensions.com/com.emidi.billingo/1.0.1/ext.js:4751:45)
at Generator.throw (<anonymous>)
at rejected (https://cdn.stripeextensions.com/com.emidi.billingo/1.0.1/ext.js:62:31)
Ok did it stop in catch (e) on your frontendcode?
yes
How e looks like?
this one
Ah alright
this is backend url
Can you log environment.constants?.API_BASE and see it's value?
No it just can't AJAX to there yet
should i contain app secret in axios header?
If you use POSTMAN and simply try to AJAX it, will you see something on server log?
yes, of course.
And received responses?
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?
do you see this?
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?
Alright, so I think you should consider taking a step back and implement the communication mechanism here, between frontend and backend of a Stripe App: https://docs.stripe.com/stripe-apps/build-backend
It involves sending and confirming signature
I think this will then let 2 sides talks to each other