Skip to content

Conversation

armando-rodriguez-cko
Copy link
Contributor

This pull request introduces support for requesting cardholder access tokens via a new form-url-encoded API endpoint, along with related infrastructure changes to the transport and client layers. The main changes include new request/response models, enhancements to the transport interface to support custom content types, and the addition of a new method to the issuing client for token requests.

Cardholder Access Token Feature:

  • Added RequestAnAccessTokenRequest and RequestAnAccessTokenResponse models to represent the request and response for the cardholder access token API. The request model includes a helper to convert itself to form parameters for URL-encoded submission. (src/main/java/com/checkout/cardissuing/cardholderaccesstokens/requests/RequestAnAccessTokenRequest.java, [1]; src/main/java/com/checkout/cardissuing/cardholderaccesstokens/responses/RequestAnAccessTokenResponse.java, [2]
  • Added a new method RequestAnAccessToken to the IssuingClient interface and its implementation, which submits a form-url-encoded request to the appropriate endpoint and returns the access token response. (src/main/java/com/checkout/issuing/IssuingClient.java, [1]; src/main/java/com/checkout/issuing/IssuingClientImpl.java, [2]

Transport and API Client Enhancements:

  • Extended the Transport interface and ApacheHttpClientTransport implementation to support a new invoke method with a custom contentType parameter, enabling form-url-encoded requests. (src/main/java/com/checkout/Transport.java, [1]; src/main/java/com/checkout/ApacheHttpClientTransport.java, [2]
  • Added postFormUrlEncodedAsync to ApiClient and its implementation, which serializes form parameters, encodes them, and submits them using the new transport method. (src/main/java/com/checkout/ApiClient.java, [1]; src/main/java/com/checkout/ApiClientImpl.java, [2]

Minor and Supporting Changes:

@armando-rodriguez-cko armando-rodriguez-cko requested a review from a team August 22, 2025 10:05
Copy link

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.

1 participant