#tomasconnor

1 messages · Page 1 of 1 (latest)

autumn flaxBOT
median sky
#

It looks like the user was deleted twice

#

Next deletion failed (since the customer is deleted already)

#

You would want to check why the Delete user data extension is executed twice

gloomy heath
#

Thank you @median sky

#

What instructions do you recommend please? Should I direct this to firebase support?

#

Firebase support:
Hi Tomáš,

My apologies for getting back to you this late. I was running some tests and I was able to reproduce the issue. However, I realized that this issue happens even when the Delete User Data extension is not installed, and it can be reproducible by deleting the Firestore document manually from the console. Having said this, the issue fails on the Stripe extension end. Since my expertise is limited on official Firebase Extensions, inputs from my side on external products may cause an unexpected result other than the desired one.

With that in mind. I want to point you in the right direction. You can file an issue on the official extension repository. The Stripe team is better prepared to help you with troubleshooting.

I hope you find this information useful. If you have any questions or comments regarding this, please let me know. I'll do my best to help you out.

median sky
gloomy heath
#

Unfortunately, it seems to happen even without this extension. 😦

median sky
#

That part I am not sure about. How did you delete Customer without using that extension?

#

Stripe/v1 NodeBindings/8.191.0 Firebase firestore-stripe-payments/0.3.0

#

I see this

#

This part, probably you were calling it twice:

Delete the user by calling the delete method with user reauthentication.

gloomy heath
#

In the configuration of the extension: Start payments with Stripe (see screenshot), Automatically delete Stripe customer objects is set to Auto delete. As soon as the customer object is manually deleted from the Firestore database, the extension automatically deletes the customer object in the Stripe console as well.

median sky
#

Okie. I also notice when you had 2 requests to create Checkout Session and 2 request to update that Customers. Any idea if you have 2 extensions running on same input?

gloomy heath
#

This may just be due to testing within a development environment. That is, I created several subscriptions several times in a short period of time.

median sky
#

But the time is identical. You can see they are mostly simultaneous for 3 pairs of (/v1/checkout/sessions) POST (/v1/customers/cus_xxx) DELETE (/v1/customers/cus_xxx)

gloomy heath
#

Yes you are right. I wonder what it could be. These operations are probably handled by Run Payments with Stripe (webhooks?)

median sky
#

Is that another extension?

gloomy heath
#

There probably won't be a bug in my app as Firebase support was able to reproduce it directly by manually deleting the object in Firestore and then it appeared as well.

#

I only use these two.

median sky
#

Oh I see. I don't think it's something related to Webhook

#

If you are just testing, I would recommend do a clean install by removing and re-add the extension, or start fresh with another Stripe Account

#

Sorry running out of ideas. From data point of view I can only see that each and every requests from your account is doubled

gloomy heath
#

Ok, I'll try 🙂 Thank you orakaro.