CyberSource / CyberSource/cybersource-rest-samples-csharp
Issue with Configuration().GetConfiguration()
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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