I'm trying to use Paypal for payment with credit card on my website that in asp.net mvc but every time I face a problem that it return with exception
(400) Bad Request.
so I tried to use the samples here specially the sample of PaymentWithCreditCard and it work very well but when I try to change the web.config with my clientId and clientSecret I get the same error !!
I'm sure I wrote my client id and secret code right on both my code and sample, but don't know why I get this error!!
sample work well with it's client id and secret,, but give me this error when I use my client id and secret id
and that the details of the error
The remote server returned an error: (400) Bad Request.
name: "UNKNOWN_ERROR"
message: An unknown error has occurred
information_link: https://developer.paypal.com/webapps/developer/docs/api/#UNKNOWN_ERROR
debug_id: 7f3c48e317bbb
hope you can help me with this problem.