I have a Spreedly token that I want to store on the gateway (Stripe).
When I call
store_on_gateway(my_spreedly_provided_stripe_gateway_token, my_spreedly_provided_payment_method_token)
I receive
#<Spreedly::Store:0x00007f82c26e6148
...
@message="This API call cannot be made with a publishable API key. Please use a secret API key. You can find a list of your API keys at https://dashboard.stripe.com/account/apikeys."
According to the documentation the POST api call expects to receive "The token of the gateway to execute against" and "transaction | Root element ❯ payment_method_token required | The token of the payment method to copy to the gateway"
https://docs.spreedly.com/reference/api/v1/#store
looking on spreedly logs, I see the error returned from the Stripe API is
{\n \"error\": {\n \"code\": \"secret_key_required\",\n
However the endpoint doesn't seem to accept a secret key?
Are you able to give me any insights if I am using incorrect tokens or if the gem has a bug?
Thanks
I have a Spreedly token that I want to store on the gateway (Stripe). When I call
store_on_gateway(my_spreedly_provided_stripe_gateway_token, my_spreedly_provided_payment_method_token)
I receiveAccording to the documentation the POST api call expects to receive "The token of the gateway to execute against" and "transaction | Root element ❯ payment_method_token required | The token of the payment method to copy to the gateway" https://docs.spreedly.com/reference/api/v1/#store
looking on spreedly logs, I see the error returned from the Stripe API is
{\n \"error\": {\n \"code\": \"secret_key_required\",\n
However the endpoint doesn't seem to accept a secret key?
Are you able to give me any insights if I am using incorrect tokens or if the gem has a bug? Thanks