DotNetInvoice Forums

DotNetInvoice Invoicing Script Discussion Forum
Welcome to DotNetInvoice Forums Sign in | Join | Help
in Search

API Credit Card Add

Last post 03-23-2010, 5:36 AM by JamesPeter. 1 replies.
Sort Posts: Previous Next
  •  09-19-2009, 2:38 PM 542

    API Credit Card Add

    I am currently in the process of changing all of my code over to use the API instead fo direct DB calls as I did in 2.5. I'm excited about this because this will mean that I will be able to easily upgrade DNI in the future without having to worry about what will happen to my custom code. The help you have given so far has been great, but Iv'e run into a wall.

    My web form that I use to input new users to DNI through API collect Credit Card information as well. I am able to input the end user information to DNI using the API, but I can not figure out how to attach a Credit Card through the API. In a previous post, I asked for example code and was told all of the DNI code now uses the API. However, when I look at the client-cards.aspx it uses a DB call instead of an API call. Please help me figure out how to add a CC to a customer profile using the API.

     Thanks!

    Rick

    Filed under: ,
  •  09-21-2009, 10:08 AM 543 in reply to 542

    Re: API Credit Card Add

    Rick,

    In the first release with the API we weren't able to transition everything to using the API.  We focused on Invoices, Recurring Invoices, Clients, and Payments.  Credit Card storage and retrieval was one of the pieces that we were not able to include in the 1.0 version of the API.  We expect to add this with our next release.  The two options that you have are to continuing using the stored procedures as you did in v2.5 or create your own Credit Card class to use as an API.  If you look at how we handled the other objects in the API, you can probably come really close to how we will end up coding the Credit Card class.

    Let us know if you have any other questions.


    ---
    Jeremy
    DotNetInvoice Support
View as RSS news feed in XML
Powered by Community Server (Personal Edition), by Telligent Systems