amzn / amazon-pay-sdk-csharp

Amazon Pay C# SDK
https://payments.amazon.com/developer
Apache License 2.0
48 stars 42 forks source link

Problem with OffAmazonPaymentsNotifications.NotificationsParser.ParseRawMessage #8

Open KrzysztofPajak opened 8 years ago

KrzysztofPajak commented 8 years ago

Hi,

When we run method ParseRawMessage(header, json) we get this error (below). header and json - this paramaters comes from https://sellercentral.amazon.com/hz/me/hmi/ipn/main - sandbox account.

System.NullReferenceException: Object reference not set to an instance of an object. at OffAmazonPaymentsService.OffAmazonPaymentsServicePropertyCollection..ctor() at OffAmazonPaymentsService.OffAmazonPaymentsServicePropertyCollection.getInstance() at OffAmazonPaymentsNotifications.VerifyDataAspImpl.VerifyCertificateSubject(String subject) at OffAmazonPaymentsNotifications.VerifyDataAspImpl.VerifyCertIsIssuedByAmazon(ICertificate cert) at OffAmazonPaymentsNotifications.SnsSignatureVerification.VerifyMsgMatchesSignatureV1WithCert(Message snsMessage) at OffAmazonPaymentsNotifications.SnsMessageValidator.VerifySnsMessageWithVersion1SignatureAlgorithm(Message snsMessage) at OffAmazonPaymentsNotifications.SnsMessageValidator.ValidateMessageIsTrusted(Message snsMessage) at OffAmazonPaymentsNotifications.NotificationsParser.ParseRawMessage(NameValueCollection headers, String body)

Please help.

Regards Krzysztof