Skip to content
New issue

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

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

Already on GitHub? # to your account

Clarify Per Request Configuration for Custom Requests #871

Closed
sandstrom opened this issue Oct 24, 2019 · 4 comments
Closed

Clarify Per Request Configuration for Custom Requests #871

sandstrom opened this issue Oct 24, 2019 · 4 comments

Comments

@sandstrom
Copy link

sandstrom commented Oct 24, 2019

Great if you could add examples for #create, #new and custom actions (#attach for example) in the readme under the per request configuration section, along with the existing ones.

I tried to get them running with a custom API version and had to read through source-code to figure it out.

For example, the this stuff wouldn't work (I know why now, but it took a while):

Stripe::PaymentMethod.attach({
  :id => stripe_payment_method.id,
  :customer => billing_entity.provider_identifier,
}, { :api_key => 'sk_test_' })
@richardm-stripe
Copy link
Contributor

richardm-stripe commented Oct 28, 2019

Hi sandstrom, thanks for the report!

We do have an example of how to e.g. use Stripe::PaymentMethod.attach here in our api reference. If we mentioned the example requests and linked to the API reference in the "Usage" section of the README.md, would this have helped you figure out how to use the method more easily? Eg #875?

@sandstrom
Copy link
Author

@sandstrom sandstrom changed the title Clarify custom requests Clarify Per Request Configuration for Custom Requests Oct 28, 2019
@brandur-stripe
Copy link
Contributor

Looks like @joeltaylor is working on this in #876!

@ob-stripe
Copy link
Contributor

Looks like this was fixed in #876.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants