apple-pay-decrypt icon indicating copy to clipboard operation
apple-pay-decrypt copied to clipboard

Unable to Extract Merchant ID from Payment Processing Certificate (x509 Parsing Issue)

Open ShankarSinghC opened this issue 1 year ago • 1 comments

The current implementation of the merchantId function in the PaymentToken class relies on parsing the merchant certificate using the x509 package. However, when attempting to parse the certificate using the same x509 package in my own implementation, I encountered the issue where the extensions field was not present in the parsed certificate.

I made sure to use the x509 package, just as the original code does, to ensure consistency in the parsing process. However, it seems that in some cases, the x509 package does not correctly handle the extraction of the extensions field.

I appreciate your attention to this matter and look forward to a resolution that enables seamless decryption of Apple Pay tokens.

ShankarSinghC avatar Jul 18 '23 14:07 ShankarSinghC

The current implementation of the merchantId function in the PaymentToken class relies on parsing the merchant certificate using the x509 package. However, when attempting to parse the certificate using the same x509 package in my own implementation, I encountered the issue where the extensions field was not present in the parsed certificate.

I made sure to use the x509 package, just as the original code does, to ensure consistency in the parsing process. However, it seems that in some cases, the x509 package does not correctly handle the extraction of the extensions field.

I appreciate your attention to this matter and look forward to a resolution that enables seamless decryption of Apple Pay tokens.

Same issue here. Did you find any solution? Thank you!

yassinVazquezPaz avatar May 23 '24 17:05 yassinVazquezPaz