#Spitzbua

1 messages · Page 1 of 1 (latest)

quick elmBOT
verbal estuary
#

Hello 👋
I'm not super familiar with the firebase extension myself
I've reached out to a colleague to see if they can jump in and help

verbal estuary
#

Unfortunately, the extension doesn’t track a refund against an existing payment document in Firestore at the moment

humble reefBOT
thin gulch
#

@verbal estuary , the thread is closed. Is there no option to synchronise the payment intent object on change of a charge (refund boolean flag u mentioned)?. If no - is there another option to check if an payment intent object is cancelled (direct api call)?

stuck whale
thin gulch
#

Like hanzo said, that would typically happen by making retrieve calls using the object IDs that you are working with. Is that not an option in your Firebase code here?

stuck whale
#

Could you explain that further? As of now the data in the payment intent object is not updating on refund - no syncronisation happens

thin gulch
#

Are these webhooks that you are working with here? Are these events getting send to your application and the data is not being updated there?

stuck whale
#

Those events are currently activated: checkout.session.completed
customer.subscription.created
customer.subscription.deleted
customer.subscription.updated
payment_intent.canceled
payment_intent.payment_failed
payment_intent.processing
payment_intent.succeeded
price.created
price.deleted
price.updated
product.created
product.deleted
product.updated
tax_rate.created
tax_rate.updated

#

The charge object is part of the payment_intent object but is not updated.

thin gulch
#

What PaymentIntent events are you getting after the refund has happened?

stuck whale
#

No events are fired on refund. Webhook history is empty

stuck whale
thin gulch
#

Ah, I think I was thinking of this wrong. So the rest of the time, without you needing to write any code, your database will automatically update its entries like this?

#

Apologies I am also not familiar with these extensions. I can reach out to my colleague who is more familiar with them, I thought this extension worked closer to our other products so was still trying to gather info to pass on to my colleague.

stuck whale
#

Basically the extension synchronizes the checkout_session, products, payment_intents from stripe to firestore

#

Yes that would be great