mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-12-11 00:02:39 -05:00
Add stripe_account in here as well
This commit is contained in:
parent
b2d0490a86
commit
0ef5c629f9
12
README.md
12
README.md
@ -67,9 +67,9 @@ Stripe::Charge.retrieve(
|
|||||||
)
|
)
|
||||||
```
|
```
|
||||||
|
|
||||||
You can also set a per-request key like in the example below. This is often
|
You can also set a per-request key and/or account like in the examples below.
|
||||||
useful for Connect applications that use multiple API keys during the lifetime
|
This is often useful for Connect applications that use multiple API keys during
|
||||||
of a process.
|
the lifetime of a process.
|
||||||
|
|
||||||
Authentication is transparently handled for you in subsequent method calls on
|
Authentication is transparently handled for you in subsequent method calls on
|
||||||
the returned object.
|
the returned object.
|
||||||
@ -81,12 +81,14 @@ require "stripe"
|
|||||||
|
|
||||||
Stripe::Charge.list(
|
Stripe::Charge.list(
|
||||||
{},
|
{},
|
||||||
:api_key => "sk_test_..."
|
:api_key => "sk_test_...",
|
||||||
|
:stripe_account => "acct_..."
|
||||||
)
|
)
|
||||||
|
|
||||||
Stripe::Charge.retrieve(
|
Stripe::Charge.retrieve(
|
||||||
"ch_18atAXCdGbJFKhCuBAa4532Z",
|
"ch_18atAXCdGbJFKhCuBAa4532Z",
|
||||||
:api_key => "sk_test_..."
|
:api_key => "sk_test_...",
|
||||||
|
:stripe_account => "acct_..."
|
||||||
)
|
)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user