Closed vietqhoang closed 1 month ago
Page and section in question: https://github.com/stripe/stripe-ruby/wiki/Migration-guide-for-v13#how-to-upgrade
Item 1 of the section shares an example of initializing the Stripe::StripeClient. The example is wrong in that it should be initialize a new instance instead of a class method.
Stripe::StripeClient
How to upgrade
After
The example,
client = Stripe::StripeClient("sk_test_123")
should be the following
client = Stripe::StripeClient.new("sk_test_123")
No response
macOS
Ruby 3.3.5
stripe-ruby v13.0.0
2024-09-30.acacia
Not an issue with the library, but with the documentation. Nothing is breaking.
Rest of the examples on the migration guide correctly represents the instantiation of the client.
Hi @vietqhoang! This should be fixed now. Thanks for pointing this out.
Describe the bug
Page and section in question: https://github.com/stripe/stripe-ruby/wiki/Migration-guide-for-v13#how-to-upgrade
Item 1 of the section shares an example of initializing the
Stripe::StripeClient
. The example is wrong in that it should be initialize a new instance instead of a class method.To Reproduce
How to upgrade
section, item 1, and sectionAfter
, try using the example in a Ruby console.Expected behavior
The example,
should be the following
Code snippets
No response
OS
macOS
Language version
Ruby 3.3.5
Library version
stripe-ruby v13.0.0
API version
2024-09-30.acacia
Additional context
Not an issue with the library, but with the documentation. Nothing is breaking.
Rest of the examples on the migration guide correctly represents the instantiation of the client.