#sz
1 messages ยท Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
๐ happy to help
Nvm, I realized that the plan_read and plan_write permissions were also needed
ok anything else I could help you with?
let me know if you need any more help
Ran into another problem. In my stripe app, I want to allow users to be able to create products on the product list dashboard.
Following the guide from here https://stripe.com/docs/stripe-apps/reference/extensions-sdk-api#useRefreshDashboardData
the useRefreshDashboardData hook doesn't seem to actually refresh the dashboard properly.
The following is the code that is being used
const refreshDashboardData = useRefreshDashboardData()
const createCreditProduct = async () => {
const product = await stripe.products.create({
name: "Test asd dsa Credit",
metadata: {
credits: "50",
},
})
const price = await stripe.prices.create({
currency: 'usd' ?? 'usd',
unit_amount: 10000,
product: product.id,
})
return { product, price }
}
const create = useCallback(async () => {
try {
const { product, price } = await createCreditProduct()
console.log("product and price: ", product.id, price.id)
const result = await refreshDashboardData()
console.log("result of refreshing: ", result)
return result;
} catch (error) {
console.log("error: ", error)
}
}, [refreshDashboardData])
this needs to be tested and trying to replicate the error
which is something that we don't have the time to do on discord
would you mind sending an email https://support.stripe.com/contact/email and giving as much information as possible with your code and if possible a screen recording
Find help and support for Stripe. Our support site 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.
so we could try to replicate and help you with this?
Yup, will do
thanks ๐
I'm currently trying to upload the stripe app, but I'm being hit with the following error about the manifest
AppManifest.permissions' Error:Field validation for 'permissions' failed on the 'unique' tag
This is the manifest in question
{
"id": "com.example.creditsystem",
"version": "0.0.6",
"name": "Creditsystem",
"icon": "",
"permissions": [
{
"permission": "event_read",
"purpose": "Allows reading event data from users who have installed the app"
},
{
"permission": "checkout_session_read",
"purpose": "Fulfills the credits for the user after a successful purchase"
},
{
"permission": "product_read",
"purpose": "Allows for the viewing of credit based usage products"
},
{
"permission": "product_write",
"purpose": "Allows for the creation of credit based usage products"
},
{
"permission": "plan_write",
"purpose": "Allows for the viewing of the prices for credit based usage products"
},
{
"permission": "plan_write",
"purpose": "Allows for the creation of the prices for credit based usage products"
}
],
"ui_extension": {
"views": [
{
"viewport": "stripe.dashboard.customer.detail",
"component": "App"
},
{
"viewport": "stripe.dashboard.product.list",
"component": "ProductListView"
}
],
"content_security_policy": {
"connect-src": null,
"image-src": null,
"purpose": ""
}
},
"distribution_type": "public"
}
I guess you can't request plan_write twice and have to remove one of those lines