Skip to content

Instantly share code, notes, and snippets.

Jayme Davis jaymedavis

Block or report user

Report or block jaymedavis

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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);
You can’t perform that action at this time.