Closed devmartins closed 4 years ago
Is this repository abandoned ? @jaypatel512 Can you give a little help ?
Hey @devmartins !
Unfortunately I do not have access to these repositories anymore.
However, you should be able to validate webhook as shown here.
This is for .Net Framework. I'm using .Net Core. Is there other employee who can help? Thanks.
I have the same issue with validation webhook.
I have issue with validation webhook too. This is my code:
var apiContext = _payPalHelper.GetApiContext(); string requestBody; using (var reader = new StreamReader(Request.Body)) { requestBody = reader.ReadToEnd(); } var webhookEvent = JsonConvert.DeserializeObject<WebhookEvent>(requestBody); var nameValueCollection = new NameValueCollection(); foreach (var item in Request.Headers) { nameValueCollection.Add(item.Key, string.Join(",", item.Value)); } var isValid = WebhookEvent.ValidateReceivedEvent(apiContext, nameValueCollection, requestBody, _payPalSettings.WebhookId);
I get this Exception::
PayPal.PayPalException: 'Unable to load trusted certificate.'
Inner exception:
NullReferenceException: Object reference not set to an instance of an object.
In Request.Headers (NameValueCollection) I have key "Paypal-Cert-Url": https://api.paypal.com/v1/notifications/certs/CERT-360caa42-fca2a594-5edc0ebc
I'm using .net core 2.1
š Having this issue as well
@devmartins
Currently we do not have any stipulated timeline for the v2.0.0 release, but it may be available in near future.
Please Check PayPal Community andĀ MTS
Thanks!
How can I validate a message with the new SDK? I'm using C# with .Net Core 2.1.