carviaso / google-checkout-dotnet-sample-code

Automatically exported from code.google.com/p/google-checkout-dotnet-sample-code
0 stars 0 forks source link

Interface/base/util class to read Merchant ID, Merchant Password, Env #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Create interface/base/util class to wrap code to read Merchant ID, Merchant
Password, Env from webconfig so other class can share.

Original issue reported on code.google.com by martin.o...@gmail.com on 3 Jan 2007 at 5:41

GoogleCodeExporter commented 9 years ago
Erik Gavrulik says:

The constructor for some classes requires the Mechant ID & Key, whereas the main
class pulls it from the web.config file.  This should be standardized.  I'd 
actually
recommend a structure in the web.config like this:

    <add key="GoogleMerchantID" value="633396765372083" />
    <add key="GoogleMerchantKey" value="xxx" />

    <add key="GoogleSandboxMerchantID" value="867355755711787" />
    <add key="GoogleSandboxMerchantKey" value="yyy" />

    <add key="GoogleEnvironment" value="Sandbox" />

that way you could just change the last line to

    <add key="GoogleEnvironment" value="Production" />

when you deploy.

Original comment by martin.o...@gmail.com on 3 Jan 2007 at 5:45

GoogleCodeExporter commented 9 years ago
Added Config section support to fix the issue.

Current support will continue but the config section is required to allow the 
user 
to define the SandBox and Production Account information.

Revision 73 adds support for this feature.

Original comment by joseph.f...@gmail.com on 1 Apr 2007 at 9:04

Attachments: