コード例 #1
0
ファイル: Program.cs プロジェクト: ramaraju12/XamarinStripe
        static void TestCreateSubscription(StripePayment payment)
        {
            StripeCustomer cust = payment.CreateCustomer(new StripeCustomerInfo {
                Card = GetCC()
            });
            //StripePlan temp = new StripePlan { ID = "myplan" };
            //DeletePlan (temp, payment);
            StripePlan         plan = CreatePlan(payment);
            StripeSubscription sub  = payment.Subscribe(cust.ID, new StripeSubscriptionInfo {
                Card    = GetCC(),
                Plan    = "myplan",
                Prorate = true
            });
            StripeSubscription sub2 = payment.GetSubscription(sub.CustomerID);

            TestDeleteSubscription(cust, payment);
            DeletePlan(plan, payment);
        }