You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Building out a test "create customer with subscription and products" method I kept getting a deserialization error when I would attempt to create a subscription with plans that had either nulls in the price per unit or flat fee. The UI allows for creating those kinds of plans and doesn't throw an error in that instance. However, if I change those values from null to 0 I can go through the process successfully.
It would appear that those fields need to be nullable.
Sample method:
// [...] abbreviated for brevity// create subscriptionvarsubscriptionItems=newList<SubscriptionItemOption>();foreach(varproductinconfiguration.DefaultSubscriptionProducts)subscriptionItems.Add(newSubscriptionItemOption{PlanId=product,Quantity=0});varsubscription=subscriptionService.Create(newSubscriptionCreateOptions{CustomerId=customer.Id,Items=subscriptionItems,BillingCycleAnchor=beginningOfNextMonth.DateTime,Metadata=metadata,});// [...]
OS Version: Windows 10 .net Version: .net core 2.0 Stripe Version: 20.4.0
The text was updated successfully, but these errors were encountered:
Building out a test "create customer with subscription and products" method I kept getting a deserialization error when I would attempt to create a subscription with plans that had either nulls in the price per unit or flat fee. The UI allows for creating those kinds of plans and doesn't throw an error in that instance. However, if I change those values from null to 0 I can go through the process successfully.
It would appear that those fields need to be nullable.
Sample method:
OS Version: Windows 10
.net Version: .net core 2.0
Stripe Version: 20.4.0
The text was updated successfully, but these errors were encountered: