Mastercard / mastercard-api-client-tutorial

Generating and Configuring a Mastercard API Client
https://mstr.cd/2AWz6pm
MIT License
58 stars 57 forks source link

Add fingerprint to payload encryption config #28

Closed Tony-Liou closed 2 years ago

Tony-Liou commented 2 years ago

Hi~

I setup the necessary credentials correctly, but I got a cryptography error after executing the test project. https://github.com/Mastercard/mastercard-api-client-tutorial/blob/0c24f778ad57a867eefd8aad44466a49f3f89826/csharp/Acme.App.MastercardApi.Client.Tests/TokenizeApiTest.cs#L17

After a few tries, I figured out the client encryption config is different from the documentation. https://github.com/Mastercard/mastercard-api-client-tutorial/blob/0c24f778ad57a867eefd8aad44466a49f3f89826/csharp/Acme.App.MastercardApi.Client.Tests/TokenizeApiTest.cs#L44

The sandbox fingerprint value is also from documentation.