stripe-firebase-extensions
stripe-firebase-extensions copied to clipboard
Update restricted key instructions
Feature request
- firestore-stripe-payments
Is your feature request related to a problem? Please describe.
In the onboarding for restricted key we say:
What is your Stripe API key? We recommend creating a new restricted key with write access only for the “Customers”, “Checkout Sessions” and “Customer portal” resources. And read-only access for the “Subscriptions” and “Plans” resources.
Since the two extensions have been merged, I think we also need write access to Invoices and read access to Products from the restricted key.
Describe the solution you'd like
Update docs
Adding to this, we need updates for permissions regarding "setting up a payment for future use"
Error messages made it clear that must add SetupIntent write permissions, but there is another permission that is needed that is unclear.
403 Error: POST /v1/ephemeral_keys
invalid_request_error
The provided key 'rk_test_*****************************************************************************************' does not have the required permissions for this endpoint on account 'ACC'. This is a restricted API key, but the required permissions are not available for use by restricted keys.
Solved the error by using the Secret Key Stripe provided. A restricted key does not work in this case.
@magicmikek Can you elaborate? Still having this problem
Also “Plans” is not in the list of Stripe API resources. Is that supposed to say something else?
@BenJackGill That would be Prices
.
Yes, please update the README.md to say "Prices" instead of "Plans".
In other words, change the existing phrase from
read-only access for the "Subscriptions" and "Plans" resources.
to
read-only access for the "Subscriptions" and "Prices" resources.
I am just now setting up the extension again for another project, and this problem still persists.
The description needs updating asap because first timers will struggle to find a solution.
Summary:
- The description says we need the resource "Plans", but that should be changed to say "Prices".
- The description should also mention we need write access for "Invoices" and read access to "Products".
I am facing the same issue, it only worked when I used the secret key
Still having the same issue. In my case , neither Restricted key nor secret keys working