First of all, this relates to a desktop application rather than an ASP .Net application.
I have added a web reference to my project, and have built up the various data objects such as PayerInfo, Address and CreditCard. The problem is though, how do i actually call the DoDirectPaymentRequest and pass in the objects? According to the documentation, i use a CallerService and ProfileFactory object, but i do not have these available to me.
Any ideas how i call the API from an EXE?
Regards
Use Service Reference instead of Web Reference in your project.
You should create an instance of PayPalAPIInterfaceClient or PayPalAPIAAInterfaceClient. After that you’ll have an ability to call DoDirectPayment.
Example: