Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invoice issue in the 'firestore-stripe-payments' extension when setting trial period for product price #505

Closed
vishishttiwari opened this issue Feb 27, 2023 · 4 comments · Fixed by #511
Assignees
Labels
bug Something isn't working

Comments

@vishishttiwari
Copy link

Bug report

  • Extension name: firestore-stripe-payments

Describe the bug

I recently updated the above extension from 0.2.3 to 0.3.2 and I am now getting errors related to invoice.paid, invoice.payment_succeeded and invoice.upcoming.

The exact errors in firebase console are:

❗️[Error]: Webhook handler for Stripe event [*] of type [invoice.payment_succeeded] failed: Value for argument "documentPath" is not a valid resource path. Path must be a non-empty string.

❗️[Error]: Webhook handler for Stripe event [*] of type [invoice.paid] failed: Value for argument "documentPath" is not a valid resource path. Path must be a non-empty string.

❗️[Error]: Webhook handler for Stripe event [*] of type [invoice.upcoming] failed: Value for argument "documentPath" is not a valid resource path. Path must be a non-empty string.

This is happening because the invoice.paid and invoice.payment_succeeded webhook events do not contain an payment_intent in the object

Its important to note that this occurs in case when there is free trial period with the price.

@jsteele-stripe jsteele-stripe self-assigned this Feb 28, 2023
@jsteele-stripe jsteele-stripe added the bug Something isn't working label Feb 28, 2023
@vishishttiwari
Copy link
Author

Any update when this issue will be resolved? Thanks

jsteele-stripe added a commit that referenced this issue Mar 16, 2023
In case where the Invoice has no associated Payment Intent, the Firestore collection write would fail. Fixes #505
jsteele-stripe added a commit that referenced this issue Mar 16, 2023
In case where the Invoice has no associated Payment Intent, the Firestore collection write would fail. Fixes #505
jsteele-stripe added a commit that referenced this issue Mar 20, 2023
In case where the Invoice has no associated Payment Intent, the Firestore collection write would fail. Fixes #505
jsteele-stripe added a commit that referenced this issue Mar 20, 2023
* docs(firestore-stripe-payments): Fix GitHub links to `firestore-stripe-web-sdk` README

* docs(firestore-stripe-payments): Reference Prices resource for restricted key instructions

Fixes #477

* fix: Address issue where `insertInvoiceRecord` function fails (#511)

In case where the Invoice has no associated Payment Intent, the Firestore collection write would fail. Fixes #505

* chore(deps): Bump `typescript` dependency (#512)

* chore(firestore-stripe-payments): 0.3.3 release

* chore: Bump `actions/checkout`, `actions/setup-node` versions for test workflows

* chore: Bump `nick-invision/retry` version for test workflows

---------

Co-authored-by: Darren Ackers <[email protected]>
@vishishttiwari
Copy link
Author

vishishttiwari commented Apr 3, 2023

@jsteele-stripe The issue with invoice.upcoming still exists. The error is same as before:
"❗️[Error]: Webhook handler for Stripe event [*] of type [invoice.upcoming] failed: Value for argument "documentPath" is not a valid resource path. Path must be a non-empty string."

@hasan-abul
Copy link

@jsteele-stripe Is this issue still exists. Any help on this please.

Stripe event log says:

{
"error": "Webhook handler failed. View function logs in Firebase."
}

Firebase says

❗️[Error]: Webhook handler for Stripe event [evt_1Ov58AGrlUrEAthFjs5yTvit] of type [invoice.upcoming] failed: Value for argument "documentPath" is not a valid resource path. Path must be a non-empty string."

@aar-stripe
Copy link

aar-stripe commented Mar 18, 2024

@hasan-abul please take a look at #616 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
4 participants