Readme example of expanding parameters and specifying a per-request API version (#642)

These options aren't immediately appartent without digging through
the client source code
This commit is contained in:
Michael Bianco 2019-04-30 10:53:48 -06:00 committed by Olivier Bellone
parent 93deaef626
commit 322a8c60be

View File

@ -95,6 +95,17 @@ Stripe::Charge.retrieve(
:stripe_version => "2018-02-28"
}
)
Stripe::Charge.retrieve(
{
id: 'ch_18atAXCdGbJFKhCuBAa4532Z',
expand: %w(balance_transaction)
},
{
stripe_version: '2018-02-28',
api_key: 'sk_test_...'
}
)
```
### Configuring a Client