stripe-firebase-extensions icon indicating copy to clipboard operation
stripe-firebase-extensions copied to clipboard

Update restricted key instructions

Open cjavilla-stripe opened this issue 3 years ago • 8 comments

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

cjavilla-stripe avatar Nov 23 '21 23:11 cjavilla-stripe

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.

DCSnip3r avatar Dec 10 '21 17:12 DCSnip3r

Solved the error by using the Secret Key Stripe provided. A restricted key does not work in this case.

magicmikek avatar Dec 14 '21 15:12 magicmikek

@magicmikek Can you elaborate? Still having this problem

DCSnip3r avatar Feb 08 '22 02:02 DCSnip3r

Also “Plans” is not in the list of Stripe API resources. Is that supposed to say something else?

BenJackGill avatar Mar 09 '22 02:03 BenJackGill

@BenJackGill That would be Prices. Screenshot 2022-03-22 at 17 51 01

jsteele-stripe avatar Mar 22 '22 17:03 jsteele-stripe

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.

jon-freed avatar May 23 '22 20:05 jon-freed

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".

BenJackGill avatar Jun 21 '22 00:06 BenJackGill

I am facing the same issue, it only worked when I used the secret key

MOOUDE avatar Jun 21 '22 21:06 MOOUDE

Still having the same issue. In my case , neither Restricted key nor secret keys working

bcthakre avatar Jun 26 '23 03:06 bcthakre