Add stripe_account in here as well

This commit is contained in:
Brandur 2016-08-17 13:56:50 -07:00
parent b2d0490a86
commit 0ef5c629f9

View File

@ -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_..."
) )
``` ```