예제 #1
0
        public void Setup()
        {
            PayloadTestSetup.initAPI();
            this.processing_account = Fixtures.processing_account();
            this.customer_account   = Fixtures.customer_account();

            this.invoice = pl.Invoice.create(new
            {
                type          = "bill",
                processing_id = processing_account.id,
                due_date      = "2019-05-01",
                customer_id   = customer_account.id,
                items         = new[] { new pl.ChargeItem(new { amount = 29.99 }), }
            });
        }
예제 #2
0
        public void Setup()
        {
            PayloadTestSetup.initAPI();
            this.processing_account = Fixtures.processing_account();
            this.customer_account   = Fixtures.customer_account();

            this.billing_schedule = pl.BillingSchedule.create(new
            {
                start_date          = "2019-01-01",
                end_date            = "2019-12-31",
                recurring_frequency = "monthly",
                type          = "subscription",
                customer_id   = this.customer_account.id,
                processing_id = this.processing_account.id,
                charges       = new pl.BillingCharge(new { type = "option_1", amount = 39.99 })
            });
        }
예제 #3
0
 public void Setup()
 {
     PayloadTestSetup.initAPI();
     this.customer_account   = Fixtures.customer_account();
     this.processing_account = Fixtures.processing_account();
 }