CyberSource / CyberSource/cybersource-rest-samples-csharp

Issue with Configuration().GetConfiguration()

Open
#79 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
28
Forks
46
PR merge metrics
No merged PRs in 30d

Description

I'm currently trying out the code for "Create a Customer Payment Instrument" and I am getting an error on this line

var configDictionary = new Configuration().GetConfiguration(); error is "The type or namespace 'Configuration' could not be found".

Quick fix shows me to add one of these two Using statements: using CyberSource.Client; or using CyberSource.Clients;.
This gives me another error - 'Configuration' does not contain a definition for 'GetConfiguration' and no accessible extension method 'GetConfiguration' accepting a first argument of type 'Configuration' could not be found."

Not sure what to do to fix it. I would appreciate any advice!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the code for “Create a Customer Payment Instrument” and inspect the referenced Configuration type and the failing GetConfiguration() call. Compare the available CyberSource.Client and CyberSource.Clients namespaces with the sample’s expected API; done means the sample resolves Configuration correctly and compiles without the reported errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.