Skip to content

Conversation

@adrian-tech-enthusiast-c
Copy link
Collaborator

@adrian-tech-enthusiast-c adrian-tech-enthusiast-c commented Jul 8, 2025

This PR introduces the following features to the SDK:

  1. New API request classes:

    • GetHostedPaymentPageRequest: Retrieves a token to launch the Accept Hosted form.
    • CreateCustomerProfileFromTransactionRequest: Creates a customer profile using a previous successful transaction.
  2. New data types:

    • HostedPaymentSettings: Represents a list of hosted payment configuration settings.
    • Setting: A single key/value setting used within HostedPaymentSettings.
  3. Enhancements:

    • GetCustomerProfileRequest: Adds support for the unmaskExpirationDate option.
  4. Test coverage:

    • Unit tests added for HostedPaymentSettings, GetHostedPaymentPageRequest, and CreateCustomerProfileFromTransactionRequest with both XML and JSON response validation.

These additions enable more robust integration with Authorize.Net's Accept Hosted and customer profile APIs.

…ion from transactions:

- Introduced 'GetHostedPaymentPageRequest' to retrieve a token for launching the Accept Hosted payment form.
- Added 'HostedPaymentSettings' and 'Setting' data types to manage hosted payment configuration settings.
- Created 'CreateCustomerProfileFromTransactionRequest' to generate a customer profile, payment profile, and shipping address from an existing transaction.
- Extended 'GetCustomerProfileRequest' with support for 'unmaskExpirationDate' flag.
- Added comprehensive tests for:
  - 'HostedPaymentSettings' and 'Setting' functionality.
  - 'GetHostedPaymentPageRequest' with various configuration scenarios.
  - 'CreateCustomerProfileFromTransactionRequest' using both XML and JSON formats.
- Minor update in 'CustomerProfileRequestTest' to explicitly set 'unmaskExpirationDate'.

This commit enhances integration with Authorize.Net Accept Suite and customer profile APIs, enabling hosted form usage and simplifying profile management.
- Updated hardcoded 'startDate' in ARBCreateSubscriptionRequestTest to use a dynamic future date (1 day ahead) instead of a fixed date.
- This resolves the API error: E00017: Start Date must not occur before the submission date.
@adrian-tech-enthusiast-c adrian-tech-enthusiast-c changed the title Add support for Accept Hosted payment page and customer profiles from transactions Add support for Accept Hosted Payment Page and Customer Profiles from transactions. Jul 8, 2025
- Introduced `AuthenticateTestRequest` class to support the `authenticateTestRequest` endpoint from Authorize.Net.
- Allows verification of merchant API login and transaction key via the SDK.
- Added `setMerchantAuthentication()` and `getMerchantAuthentication()` methods for credential injection.
- Includes full test coverage with `AuthenticateTestRequestTest` for both XML and JSON request formats.
Introduces the removeSetting() method to allow removing a specific hosted payment
configuration setting by name. Iterates through existing properties and unsets
the matching entry based on 'settingName'.
@jsacksick jsacksick merged commit bebf981 into commerceguys:master Oct 23, 2025
3 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants