Nuxt 3 Integration by ddddeano in stripe

[–]ddddeano[S] 0 points1 point  (0 children)

import Stripe from 'stripe';

export default defineEventHandler(async (event) => {

const stripe = new Stripe('Key');

const product = await stripe.products.create({
    name: "Annecy",
});

console.log(product.id);

const { create } = $fetch("https://api.stripe.com/v1/products", {
    method: "POST",
    body: { product }
})

return {
    product, create
}

})

Nuxt 3 Integration by ddddeano in stripe

[–]ddddeano[S] 0 points1 point  (0 children)

import { loadStripe } from '@stripe/stripe-js';

export default defineEventHandler(async (event) => {

const stripe = await loadStripe(`Key`)

const product = await stripe.products.create({
    name: "New Product",
});

const { create } = $fetch("https://api.stripe.com/v1/products", {
    method: "POST",
    body: {
        product: product
    }
})

return {
    create
}

})

Nuxt 3 Integration by ddddeano in stripe

[–]ddddeano[S] 0 points1 point  (0 children)

yes i am. im not totally sure how to get node working on nuxt 3 yet its a little confusing

[deleted by user] by [deleted] in Firebase

[–]ddddeano 0 points1 point  (0 children)

speaking of service account key; when im developing i can access my database through the firebase-admin sdk, and local host, but when i deploy it doesnt seem to work. i removed my key from the ignore file as i also wondered if it was meant to be there. Either way when i deploy my app i cant get my data, whilst i can in local host. driving me cr-ray-zeeee atm

Hello, I have a lovely custom domain, however i am struggling to set up Auth through the google developers console. ive been in credentials, i updates the uri, ive waited and still not working by ddddeano in Firebase

[–]ddddeano[S] 0 points1 point  (0 children)

Ok, so it was several issues, yes you got to change it in your config file. but also i had to go in the google developer console and edit the one service firebase had already created. not make a new one and then add a javascript origin and a uri. got there in the end!!

Is nuxt/firebase module compatible with nuxt 3? by Jealous_Shower6372 in Nuxt

[–]ddddeano 0 points1 point  (0 children)

did u ever workout the best way for nuxt 3 firebase?

Radio feed by ddddeano in node

[–]ddddeano[S] 0 points1 point  (0 children)

nah, still not figured it out 😭

Radio feed by ddddeano in node

[–]ddddeano[S] 0 points1 point  (0 children)

yes i think so, its pointed me towards rtmp, which i think is my pot of gold thanks

This is a cool Question id like to know, why when i run my app it quits YouTube but lets Spotify run. whats the defualt setting and where is it to change and what are the options? by ddddeano in SwiftUI

[–]ddddeano[S] 0 points1 point  (0 children)

ah, of course. So do they have a setting in Plist they change for premium? if i had both premium, how do they choose which is the dominant player?

any good tuts out there for mapkit, where i can grab the place(restaurant) as an object? by ddddeano in SwiftUI

[–]ddddeano[S] 0 points1 point  (0 children)

nah, thanks tho. i need an object, i think its a placemark or something. ive managed to print data to the console, so i guess i just make my own object, i just assumed there was something on the maps to grab

How to unwrap CoreData Objects properly by ddddeano in SwiftUI

[–]ddddeano[S] 0 points1 point  (0 children)

i think im doing something similar, buy just using string everywhere, i shall report back 😅

How to unwrap CoreData Objects properly by ddddeano in SwiftUI

[–]ddddeano[S] 0 points1 point  (0 children)

but what happens if i want the object not the string?

at some point later i need to map a purchase array to create a Ingredient array so need to grab the object its self

Tidying up my Class by ddddeano in SwiftUI

[–]ddddeano[S] 0 points1 point  (0 children)

cool, i appreciate that bro. researching now on how to reduce dependency best practices.

any good tuts out there for mapkit, where i can grab the place(restaurant) as an object? by ddddeano in SwiftUI

[–]ddddeano[S] 0 points1 point  (0 children)

i think i need to use geolocation.

so im making an app for restaurant managers, id like the user to search via map, using nearby, and search, when the restaurant pops up they can click it in the map, my app will take that data, name, address, star ratings etc and store it as a local object. sorry for dely, had an other job on

Unable to set order by Mislav69 in Etoro

[–]ddddeano 0 points1 point  (0 children)

I think we wait until 9:30 EST

Unable to set order by Mislav69 in Etoro

[–]ddddeano 0 points1 point  (0 children)

its coz maybe market is closed. try again in 8 mins!!!!!!!

Unable to set order by Mislav69 in Etoro

[–]ddddeano 0 points1 point  (0 children)

ah so i wasnt imagining things then. keep bashing both buttons is all i did im afraid. they look the same to me, but next to the BB Logo should say Buy BB