コード例 #1
0
        public StripeEphemeralKeyServiceTest()
        {
            this.service = new StripeEphemeralKeyService();

            this.createOptions = new StripeEphemeralKeyCreateOptions
            {
                CustomerId    = "cus_123",
                StripeVersion = "2017-05-25",
            };
        }
コード例 #2
0
ファイル: _fixture.cs プロジェクト: Sumit2668/stripe-dotnet-1
        public ephemeral_keys_fixture()
        {
            var customer = Cache.GetCustomer();

            var service = new StripeEphemeralKeyService(Cache.ApiKey);

            EphemeralKeyCreateOptions = new StripeEphemeralKeyCreateOptions
            {
                CustomerId    = customer.Id,
                StripeVersion = "2017-05-25",
            };

            EphemeralKey = service.Create(EphemeralKeyCreateOptions);
        }