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)
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