diff --git a/lib/authorize_net/api/api_transaction.rb b/lib/authorize_net/api/api_transaction.rb index 19eba9e..eb20b50 100644 --- a/lib/authorize_net/api/api_transaction.rb +++ b/lib/authorize_net/api/api_transaction.rb @@ -34,6 +34,8 @@ module Type API_GET_TRANSACTION_DETAILS = "getTransactionDetailsRequest" API_GET_UNSETTLED_TRANSACTION_LIST = "getUnsettledTransactionListRequest" API_GET_BATCH_STATISTICS = "getBatchStatisticsRequest" + + API_GET_HOSTED_PROFILE_PAGE = "getHostedProfilePageRequest" API_DECRYPT_PAYMENT_DATA = "decryptPaymentDataRequest" diff --git a/lib/authorize_net/api/schema.rb b/lib/authorize_net/api/schema.rb index 14d82f2..3d6e470 100644 --- a/lib/authorize_net/api/schema.rb +++ b/lib/authorize_net/api/schema.rb @@ -3570,7 +3570,7 @@ class GetHostedProfilePageRequest xml_accessor :merchantAuthentication xml_accessor :refId xml_accessor :customerProfileId - xml_accessor :hostedProfileSettings + xml_accessor :hostedProfileSettings, :as => Settings def initialize(merchantAuthentication = nil, refId = nil, customerProfileId = nil, hostedProfileSettings = nil) @merchantAuthentication = merchantAuthentication diff --git a/lib/authorize_net/api/transaction.rb b/lib/authorize_net/api/transaction.rb index 7cf231b..d54eead 100644 --- a/lib/authorize_net/api/transaction.rb +++ b/lib/authorize_net/api/transaction.rb @@ -172,6 +172,14 @@ def decrypt_payment_data(request) def authenticate_test_request(request) make_request(request,AuthenticateTestResponse,Type::API_AUTHENTICATE_TEST_REQUEST) end + + # This request enables confirm authentication values + # + # See spec/api_spec.rb for usage examples + def get_hosted_profile_page(request) + make_request(request,GetHostedProfilePageResponse,Type::API_GET_HOSTED_PROFILE_PAGE) + end + end end \ No newline at end of file