#ezequielpato.

1 messages · Page 1 of 1 (latest)

livid onyxBOT
#

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.

long pumice
#

Hello

errant valve
#

Hello, happy to help. What issues are you running in to?

long pumice
#

Right now webhook it's working properly in my backend and i receive the information of the events.

#

I have a function to save the data into my data base that it's working well too.

#

It's a doubt as a developer

#

The idea is to filter the objects events that i received

#

Create just one final object with the information that i need

#

And execute the function to save into the database using this final object.

#

Better than running an individual function within each event

#

Filtered data

errant valve
#

Okay, that makes sense as a way to store and filter this data. Do you have a specific question or issue that you are running in to when trying to do this?

long pumice
#

I tried to do it but I can't get it

#

Doing testing. The console.log after the swith logic. Don´t work propertly.

#

Can I show you my code ?

#

I have problem to mix the 3 different objects in one

#

And then, print it into server´s console.

#

Print just for test. The idea is to use the object for the database save function.

errant valve
#

Do you know if this is an error that Stripe is returning somewhere or an error on the database side? Unfortunately I can only really consult on things that are working directly with our API. If you are receiving the events properly, that is great, but I can't really help debug how to put data in to your own database

long pumice
#

five me a few minutes pls

long pumice
#

Ok I understood

errant valve
#

Glad you figured it out!

long pumice
#

Can I send metadata when some of my clients make a subscription?

#

To Stripe ?

#

For example if I want to send the course id or customer id