Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2017
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. ...
  2. using PayPal.PayPalAPIInterfaceService;
  3. using PayPal.PayPalAPIInterfaceService.Model;
  4.  
  5. namespace PayPalToDBMerch
  6. {
  7. class Program
  8. {
  9. static void Main(string[] args)
  10. {
  11. TransactionSearchRequestType request = new TransactionSearchRequestType();
  12. TransactionSearchReq wrapper = new TransactionSearchReq();
  13. wrapper.TransactionSearchRequest = request;
  14. Dictionary<string, string> configurationMap = Configuration.GetAcctAndConfig();
  15. PayPalAPIInterfaceServiceService service = new PayPalAPIInterfaceServiceService(configurationMap);
  16. TransactionSearchResponseType transactionDetails = service.TransactionSearch(wrapper);
  17. if (transactionDetails.Ack == AckCodeType.FAILURE)
  18. {
  19. Console.WriteLine("This is always the result."); //
  20. }
  21. else
  22. {
  23. Console.WriteLine("I never get here.");
  24. }
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement