Hey everyone,
Just working on a small project that uses PayPal’s C# AdaptivePayments SDK. I hit an error while attempting to make the following payment:
var service = new AdaptivePaymentsService(); payResponse = service.Pay(payRequest);
at PayPal.Manager.ConfigManager..ctor()
at PayPal.Manager.ConfigManager.get_Instance()
at PayPal.BasePayPalService..ctor()
at PayPal.AdaptivePayments.AdaptivePaymentsService..ctor()
It turns out that you need to add the following entries to your Web.config:
To get the account information you’ll need to do the following:
– Go to developer.paypal.com
– Login to your sandbox account
– Go to the dashboard
– Select accounts (from the list of all your sandbox accounts)
– Create a new one or select an existing business account
– Click profile
– Click API Credentials
Note that the steps required to get this configuration seem to change all the time. Hopefully this will be enough to get you on the right track.