This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class when_updating_a_subscription_with_proration | |
{ | |
private static StripeSubscriptionService _subscriptionService; | |
private static StripeSubscription _subscription; | |
private static string _customerId; | |
private static string _planId; | |
private static StripeInvoice _upcomingInvoice; | |
Establish context = () => | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using System.Reflection; | |
using System.Runtime.Serialization; | |
namespace SmoothNumerator | |
{ | |
class Program | |
{ | |
public enum StripeBilling |