Trying to automatically create a stripe customer f...
# help
l
Trying to automatically create a stripe customer for each user with the supabase function hooks. Attaching the id and email after logging WORKS but I don't see the stripe_customer id being attached. According to the video by Jon Meyers I followed . My next guess would be to implicitly add the stripe_customer like I did with email but since SUPABASE is in ALPHA I want to ask first
n
Hello ! This thread has been automatically created from your message in a ``few seconds ago``. Pinging @User so that they see this as well! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ... menu) and select Leave Thread to unsubscribe from future updates. Want to change the title? Use the
/title
command! We have solved your problem? Click the button below to archive it.
s
Can you share the code snippet?
n
lrnecgcysiam (2022-03-29)
l
There is no code snippet
this is the supabase UI
s
i mean, if you can share screenshot of the config in functions. There might be a possibility where we have a config issue while setting up the Supabase hooks.
l
Sure I can share that with you sure
So currently I am working on video 15 in the jon meyers tutorial on egghead
I am sharing my repo for your convenience on Github.
s
profiles -> profile can you confirm what is the table name?
Copy code
await supabase
    .from("profile")
    .update({
      stripe_customer: customer.id,
    })
    .eq("id", req.body.record.id);
also the UI is in aplha, not the functionality
l
Did I say the supabase was in alpha?
Please try again. If the failures persist, please contact Supabase support with the following details: Change tracking ID: 9745660c-52d0-4114-b2af-f8a16f5ecf40 Error message: failed to update configuration for API services
Ok my work around for this is to create a new project and I updated all the keys
s
you mentioned in your 1st message, so i clarified. as the message in the UI is not clear.
glad you were able to figure it out.