Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6168143
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:38:10+00:00 2026-05-23T22:38:10+00:00

I’ve just implemented an interface with a third party payment service, for subscriptions to

  • 0

I’ve just implemented an interface with a third party payment service, for subscriptions to the site I’m busy with. The service is called PayFast, sort of like a local PayPal. I am currently saddled with umpteen items in my AppSettings config node with keys prefixed with ‘PayFast’, so I’m exploring options to factor these out of the main web.config file.

The simplest that comes to mine is to use an external .config file for these service specific settings, but this is cumbersome and I’m constrained by the key/value structure of the add elements. I would rather implement a custom section handler, section group, and sections, for each payment service (I plan to add PayPal later as well, and possibly more).

How should I structure this custom section handling so I can have multiple sections, one for local mocking of the service, one for online testing of the service, one for live use of the service etc. I think the outermost element should have attributes that determine which one of the inner sections to use, mock, test etc. I don’t have much trouble doing this in XML, and maybe a tool that could generate handlers from XML would be useful.

As an added bonus, I would ideally like the top level structures for each payment service to be grouped in a general PaymentServiceProviders node as well, but that is mere wishful thinking at the moment.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T22:38:10+00:00Added an answer on May 23, 2026 at 10:38 pm

    I am not sure what properties you need on each environment but I start with something like this:

    <environments>
        <environment name="test_env">
          [insert here whatever properties are specific for the test environment]
        </environment>
        <environment name="production">
          [insert here whatever properties are specific for the test environment]
          </environment>
    </environments>
    

    I am not sure how much you have done with custom configuration sections but in my experience it’s usually a pain in the butt to parse something complex as this inside a custom configuration in your web.config whereas it’s a breeze to do it as an external XML file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I would like to count the length of a string with PHP. The string
I've got a string that has curly quotes in it. I'd like to replace
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have some data like this: 1 2 3 4 5 9 2 6
That's pretty much it. I'm using Nokogiri to scrape a web page what has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.