Skip to content

Instantly share code, notes, and snippets.


Jayme Davis jaymedavis

View GitHub Profile
jaymedavis / Program.cs
Created Oct 13, 2017
Reading the StripeBilling Attribute
View Program.cs
using System;
using System.Linq;
using System.Reflection;
using System.Runtime.Serialization;
namespace SmoothNumerator
class Program
public enum StripeBilling
jaymedavis / 0_reuse_code.js
Created Apr 12, 2017
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
jaymedavis / test for prorating
Created Jun 13, 2016
i would expect this test to pass, because the upcoming invoice should be less than the original $5 amount
View test for prorating
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 = () =>
jaymedavis / charge_connect_with_token.cs
Last active Apr 6, 2016
creating a charge with a token on a connected account
View charge_connect_with_token.cs
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);