Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
1.44/5 (2 votes)
See more:
we have to implement paypal sdk in desktop application which is based on c#.

if there is web application we can easily redirect to payment gateway and process payment ,but in win form how to manage payment request process ?

it will be great if any one have some suggestion about this issue.


thanks

What I have tried:

we have implemented rest api but it can not give proper flow of payment.

APIContext apiContext = WebApplication1.Models.Configuration.GetAPIContext();

Payment createdPayment = pymnt.Create(apiContext);

I have implemented using PayPal SDK but it always gives error of DUPLICATE_DEBUG ID

Any one have idea about this error ?


this gives error of duplicate debug id.
Posted
Updated 18-Apr-18 19:49pm
v2

1 solution

You should go to the PayPal website and study their documentation. It is likely that their SDK is designed only to work through their website, so your Desktop app would need to use some HTTP classes to access it.
 
Share this answer
 
Comments
Kinjal Sucess 19-Apr-18 1:46am    
thanks for reply.
APIContext apiContext = WebApplication1.Models.Configuration.GetAPIContext();

Payment createdPayment = pymnt.Create(apiContext);

I have implemented using PayPal SDK but it always gives error of DUPLICATE_DEBUG ID

Any one have idea about this error ?
Richard MacCutchan 19-Apr-18 3:37am    
I repeat, go to the PayPal developer website and look there. The use of this SDK and any errors you receive is very specific to their software.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900