Steps to reproduce the problem:
1. Install-Package Google.Checkout -Version 2.5.0.14
2. Do not add any GCheckout key to config.
3. Create the instance of ChargeOrderRequest using constuctor
public ChargeOrderRequest(string MerchantID, string MerchantKey, string Env,
string GoogleOrderNumber, string Currency, Decimal Amount)
4. Try to send request and you'll get
System.Configuration.ConfigurationErrorsException: Set the 'Currency' key in
the config file.
The problem is in the initializer
public class ChargeOrderRequest : OrderProcessingBase
{
private string _currency = GCheckoutConfigurationHelper.Currency;
...
Static property GCheckoutConfigurationHelper.Currency throws when it do not
find "Currency" key in "Google/GoogleCheckout" or "appSettings" section.
Version Google.Checkout.2.5.0.14 installed as NuGet package.
Original issue reported on code.google.com by vale...@edenfantasys.com on 8 May 2013 at 4:45
Original issue reported on code.google.com by
vale...@edenfantasys.com
on 8 May 2013 at 4:45