Fix examples to not use hash rockets

This commit is contained in:
Remi Jannel 2019-06-12 10:56:16 -07:00
parent 0d7968b97b
commit 54dcf73d96

View File

@ -81,29 +81,29 @@ require "stripe"
Stripe::Charge.list(
{},
{
:api_key => "sk_test_...",
:stripe_account => "acct_...",
:stripe_version => "2018-02-28"
api_key: "sk_test_...",
stripe_account: "acct_...",
stripe_version: "2018-02-28",
}
)
Stripe::Charge.retrieve(
"ch_18atAXCdGbJFKhCuBAa4532Z",
{
:api_key => "sk_test_...",
:stripe_account => "acct_...",
:stripe_version => "2018-02-28"
api_key: "sk_test_...",
stripe_account: "acct_...",
stripe_version: "2018-02-28",
}
)
Stripe::Charge.retrieve(
{
id: 'ch_18atAXCdGbJFKhCuBAa4532Z',
id: "ch_18atAXCdGbJFKhCuBAa4532Z",
expand: %w(balance_transaction)
},
{
stripe_version: '2018-02-28',
api_key: 'sk_test_...'
stripe_version: "2018-02-28",
api_key: "sk_test_...",
}
)
```