Skip to content

Instantly share code, notes, and snippets.

@jaymedavis
Last active April 6, 2016 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaymedavis/d969be13ca6019686a4e72b82e999546 to your computer and use it in GitHub Desktop.
Save jaymedavis/d969be13ca6019686a4e72b82e999546 to your computer and use it in GitHub Desktop.
creating a Stripe.net charge with a token on a connected account
var charge = new StripeChargeCreateOptions();
charge.Amount = 1223;
charge.Currency = "usd";
charge.Description = "irctc516 took all your money";
charge.SourceTokenOrExistingSourceId = *tokenId*;
var requestOptions = new StripeRequestOptions();
requestOptions.StripeConnectAccountId = "acct_*";
var completedCharge = new StripeChargeService().Create(charge, requestOptions);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment