c# – Add Metadata to stripe on customers

c# – Add Metadata to stripe on customers

Heres an example showing how to use metadata with Stripe.net: https://github.com/jaymedavis/stripe.net#updating-a-bank-account

You should modify your code like this:

planService.Create(new StripePlanCreateOptions()
{
    Amount = 99 * 100,
    Name = abonnement.mdr +  - ( + planType + ),
    Currency = EUR,
    Interval = month,
    IntervalCount = 6,
    Id = 1,
    Metadata = new Dictionary<string, string>()
    {
        { Pakkeid, abonnement.PriceValueUnikId }
    }
}
);

c# – Add Metadata to stripe on customers

Leave a Reply

Your email address will not be published. Required fields are marked *