We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
var _stripeClient = new Stripe.StripeClient(_apiKey); var _response = _stripeClient.CreateChargeWithToken(1000, _stripeToken, “USD”, _stripeEmail);
Getting exception below while executing above snippet
Value cannot be null. Parameter name: dictionary
StackTrace:
at System.Collections.Generic.Dictionary2..ctor(IDictionary2 dictionary, IEqualityComparer1 comparer) at Stripe.JsonObject.SetModel(IDictionary2 model) at Stripe.StripeClient.ExecuteObject(RestRequest request) at Stripe.StripeClient.CreateChargeWithToken(Decimal amount, String token, String currency, String description, Nullable`1 application_fee)
2..ctor(IDictionary
1 comparer) at Stripe.JsonObject.SetModel(IDictionary
Please check and confirm any issues from your side.
The text was updated successfully, but these errors were encountered:
Same issue and error, has anyone ever use this nugget and was successful. No thorough documentation
protected void btncharge_Click(object sender, EventArgs e) { var apiKey = "sk_test_51IKMAnLT9tteS1RKRSOLk82ApueaicJgQCTZLpigYtjboxdYia5F1QWX9GHHdrWsdyAEPKAT0JsL1E8NJODjrtGF00IgKWWAiS";
var api = new StripeClient(apiKey); var card = new CreditCard { Number = "4242424242424242", ExpMonth = 3, ExpYear = 2022, Cvc = "123" }; dynamic response = api.CreateCharge( amount: 100.00m, // $100 currency: "usd", card: card); if (!response.IsError && response.Paid) lblresponse.Text = "Whoo Hoo... We made our first sale!"; else lblresponse.Text = ("Payment failed. :("); }
Sorry, something went wrong.
No branches or pull requests
var _stripeClient = new Stripe.StripeClient(_apiKey);
var _response = _stripeClient.CreateChargeWithToken(1000, _stripeToken, “USD”, _stripeEmail);
Getting exception below while executing above snippet
Value cannot be null.
Parameter name: dictionary
StackTrace:
at System.Collections.Generic.Dictionary
2..ctor(IDictionary
2 dictionary, IEqualityComparer1 comparer) at Stripe.JsonObject.SetModel(IDictionary
2 model)at Stripe.StripeClient.ExecuteObject(RestRequest request)
at Stripe.StripeClient.CreateChargeWithToken(Decimal amount, String token, String currency, String description, Nullable`1 application_fee)
Please check and confirm any issues from your side.
The text was updated successfully, but these errors were encountered: