• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

8. The PayPal Web Services API > 89. Create a Wrapper Class for Your API Calls

Create a Wrapper Class for Your API Calls

Create a Windows DLL to call the API and eliminate need for the console application.

Using the API from a console application [Hack #88] is nice for testing, but for real-world applications, you’ll want to use an encapsulated module to handle calls to the API. That way, you can reuse the functionality in multiple applications.

Tip

This wrapper class DLL is written in C# and assembled in Visual Studio .NET.

The underlying architecture of the PayPal API is the same for each API method, all of which use four basic classes to complete a call:

Type

This is a generic term for a class that holds information. You fill out the properties in the type and add the type to the request object.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint