Skip to content

Conversation

@armando-rodriguez-cko
Copy link
Contributor

This pull request introduces support for Network Tokens in the Checkout SDK, along with enhancements to the Forward API. The changes include the addition of a NetworkTokenClient with various methods for managing network tokens, updates to the CheckoutApi interface and implementation to include the new client, and improvements to the Forward API with clearer documentation. Below is a summary of the most important changes grouped by theme:

Network Tokens Support

  • Added NetworkTokenClient and INetworkTokenClient to manage network tokens, including methods to provision, retrieve, request cryptograms, and delete tokens. This includes detailed documentation for each method. ([[1]](https://github.com/checkout/checkout-sdk-net/pull/489/files#diff-acbff404abb3c18bde06f8fed363130d5361c894efaa42a4fc378943730d2335R1-R59), [[2]](https://github.com/checkout/checkout-sdk-net/pull/489/files#diff-d584ecc1d3a5841aaf3dbec6dcaecc259e38fe895999cda5ca0df93bdf536bc0R1-R108))
  • Introduced new response models (Card, NetworkToken, NetworkTokenResponse, NetworkTokenByIdResponse) and enumerations (NetworkTokenType, StateType) to represent network token details. ([[1]](https://github.com/checkout/checkout-sdk-net/pull/489/files#diff-5fc773f230794a4cbcbe179968decd3fdfa015a0bb668ebb6ad4eb99e0f256bdR1-R14), [[2]](https://github.com/checkout/checkout-sdk-net/pull/489/files#diff-814597a22f0fd75e6aa28227910bc5ccabc8a9e91bd83007858b2ca8d97ed0c1R1-R45), [[3]](https://github.com/checkout/checkout-sdk-net/pull/489/files#diff-c6452fd176e752bee7d2531513b1262d9b706611f520b2a75bba30904ab13018R1-R16), [[4]](https://github.com/checkout/checkout-sdk-net/pull/489/files#diff-44ed0b26de198a5d2d59d5dd072b6c2da7f471627f245345fc0e8f739356dbddR1-R9), [[5]](https://github.com/checkout/checkout-sdk-net/pull/489/files#diff-135c656e1bd85294a95569d5e9bdafcd65a2b9c8b56d58e4558196acbb02aa1fR1-R12), [[6]](https://github.com/checkout/checkout-sdk-net/pull/489/files#diff-9522c5ddbca9378774385f2b1eb27252583a849076eb3291d23e508d5ddb2084R1-R22))
  • Added request models for cryptograms and token deletion, including enumerations for deletion reasons (ReasonType) and initiators (InitiatedByType). ([[1]](https://github.com/checkout/checkout-sdk-net/pull/489/files#diff-1511768ad8230041a3ef9f9f0066a92c0c0e672a6c5c5dd4dc2329ebb1a07530R1-R8), [[2]](https://github.com/checkout/checkout-sdk-net/pull/489/files#diff-c9da9b2827e70b496a5211e9ec35d362942c9abc4d53d3b8ce131971549d26f0R1-R9), [[3]](https://github.com/checkout/checkout-sdk-net/pull/489/files#diff-a090f5c5f7ee910c7f989cdb4e8ff3f2e908a46c0449e965770bda73b62025a2R1-R13), [[4]](https://github.com/checkout/checkout-sdk-net/pull/489/files#diff-619bf9d664b2e7fbb4b5ce203e48d6882dcc79e399e30b63bf492661494eecb0R1-R14))

Integration with CheckoutApi

  • Updated CheckoutApi and ICheckoutApi to include the NetworkTokenClient as a new dependency and exposed it via a NetworkTokenClient() method. ([[1]](https://github.com/checkout/checkout-sdk-net/pull/489/files#diff-2ed32f167318b0497e1628526efe32b7fd2fb067c43a87d685ceee5aeac2803dR49), [[2]](https://github.com/checkout/checkout-sdk-net/pull/489/files#diff-2ed32f167318b0497e1628526efe32b7fd2fb067c43a87d685ceee5aeac2803dR80), [[3]](https://github.com/checkout/checkout-sdk-net/pull/489/files#diff-2ed32f167318b0497e1628526efe32b7fd2fb067c43a87d685ceee5aeac2803dR218-R223), [[4]](https://github.com/checkout/checkout-sdk-net/pull/489/files#diff-82040b1a280ecee6b490283637ab28130670e02c1aa525fb3d65d5e474b31a29R69-R70))

Forward API Enhancements

  • Added detailed XML documentation to ForwardClient and IForwardClient methods, improving clarity on the purpose and usage of the Forward API. ([[1]](https://github.com/checkout/checkout-sdk-net/pull/489/files#diff-966b26144f734e0305d6f11ba080e85160d2a1c289858d13ccebd47a3a642617R20-R25), [[2]](https://github.com/checkout/checkout-sdk-net/pull/489/files#diff-966b26144f734e0305d6f11ba080e85160d2a1c289858d13ccebd47a3a642617R38-R42), [[3]](https://github.com/checkout/checkout-sdk-net/pull/489/files#diff-4856e1390fa7d188aee257391b39c76ce14f99b3cc6a4bd5c96c917d341f247eR8-R24))

Miscellaneous

  • Added a new method GetCryptogramLink() in the Resource class to retrieve cryptogram-related links. ([src/CheckoutSdk/Common/Resource.csR26-R30](https://github.com/checkout/checkout-sdk-net/pull/489/files#diff-fbb3b1d7cccd30c3cf2adb2f2a458b77bd8cfe808b3d1e3794c2f12d9b07f839R26-R30))

@armando-rodriguez-cko armando-rodriguez-cko requested a review from a team July 11, 2025 11:51
@armando-rodriguez-cko armando-rodriguez-cko force-pushed the feature/add-network-token-endpoint branch from d04fce7 to 31bca2a Compare July 11, 2025 11:52
@armando-rodriguez-cko armando-rodriguez-cko changed the title Add Network Token API endpoints and related models feat: Add Network Token API endpoints and related models Jul 11, 2025
@armando-rodriguez-cko armando-rodriguez-cko force-pushed the feature/add-network-token-endpoint branch 4 times, most recently from be2d3cc to 4d3b1ed Compare July 11, 2025 12:14
@armando-rodriguez-cko armando-rodriguez-cko force-pushed the feature/add-network-token-endpoint branch from 4d3b1ed to 2a68a14 Compare July 11, 2025 12:21
@sonarqubecloud
Copy link

@armando-rodriguez-cko armando-rodriguez-cko merged commit f6a936f into master Jul 11, 2025
13 of 16 checks passed
@armando-rodriguez-cko armando-rodriguez-cko deleted the feature/add-network-token-endpoint branch July 11, 2025 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants