Skip to content

Commit

Permalink
Added function calls to enable GetHostedProfilePage function.
Browse files Browse the repository at this point in the history
  • Loading branch information
gnongsie committed Oct 9, 2015
1 parent 786fa86 commit 7b6dbe2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/authorize_net/api/api_transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion lib/authorize_net/api/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions lib/authorize_net/api/transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7b6dbe2

Please sign in to comment.