Skip to content

Commit

Permalink
Fix method name
Browse files Browse the repository at this point in the history
Use the right method for a `byte[]`.
  • Loading branch information
martincostello authored Aug 13, 2024
1 parent 78ed7b5 commit 3387817
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ApplePayJS/Clients/MerchantCertificate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ private static X509Certificate2 LoadCertificateFromBase64String(string encoded,

return X509Certificate2.GetCertContentType(rawData) switch
{
X509ContentType.Pfx => X509CertificateLoader.LoadPkcs12FromFile(rawData, password),
X509ContentType.Pfx => X509CertificateLoader.LoadPkcs12(rawData, password),
_ => throw new NotSupportedException("The format of the encoded Apple Pay merchant certificate is not supported."),
};
}
Expand Down

0 comments on commit 3387817

Please sign in to comment.