Skip to content

Instantly share code, notes, and snippets.

@adamjstevenson
Last active December 15, 2017 12:58
Show Gist options
  • Save adamjstevenson/e5562e324a7192879bfd2d39586a4500 to your computer and use it in GitHub Desktop.
Save adamjstevenson/e5562e324a7192879bfd2d39586a4500 to your computer and use it in GitHub Desktop.
Create a customer on a connected account
# Create a customer on a connected account
customer = Stripe::Customer.create(
{
description: "Customer for [email protected]",
source: "src_1BF7yx2jy8PDLWD6TFmguGn0", # The secure token representing the payment details
},
{
stripe_account: "acct_j1cXUEAksEpalsjc3Xl3" # The ID of the Stripe account connected to your platform
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment