-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Add the fundingDestination field and fundingSource to authori…
…ze call" This reverts commit 9a46606.
- Loading branch information
1 parent
9a46606
commit 50d1387
Showing
3 changed files
with
0 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -440,25 +440,6 @@ def test_successful_authorize_with_no_address | |
assert_equal 'Authorised', response.message | ||
end | ||
|
||
def test_successful_authorize_with_fund_source_and_fund_destination | ||
fund_options = { | ||
fund_source: { | ||
additional_data: { fundingSource: 'Debit' }, | ||
first_name: 'Payer', | ||
last_name: 'Name', | ||
billing_address: @us_address, | ||
shopper_email: '[email protected]' | ||
}, | ||
fund_destination: { | ||
additional_data: { walletIdentifier: '12345' } | ||
} | ||
} | ||
|
||
response = @gateway.authorize(@amount, @credit_card, @options.merge!(fund_options)) | ||
assert_success response | ||
assert_equal 'Authorised', response.message | ||
end | ||
|
||
def test_successful_authorize_with_credit_card_no_name | ||
credit_card_no_name = ActiveMerchant::Billing::CreditCard.new({ | ||
number: '4111111111111111', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -661,33 +661,6 @@ def test_risk_data_sent | |
end.respond_with(successful_authorize_response) | ||
end | ||
|
||
def test_fund_source_and_fund_destination_sent | ||
fund_options = { | ||
fund_source: { | ||
additional_data: { fundingSource: 'Debit' }, | ||
first_name: 'Payer', | ||
last_name: 'Name', | ||
billing_address: @us_address, | ||
shopper_email: '[email protected]' | ||
}, | ||
fund_destination: { | ||
additional_data: { walletIdentifier: '12345' } | ||
} | ||
} | ||
|
||
stub_comms do | ||
@gateway.authorize(@amount, @credit_card, @options.merge(fund_options)) | ||
end.check_request do |_endpoint, data, _headers| | ||
fund_source = JSON.parse(data)['fundSource'] | ||
fund_destination = JSON.parse(data)['fundDestination'] | ||
assert_equal '[email protected]', fund_source['shopperEmail'] | ||
assert_equal 'Payer', fund_source['shopperName']['firstName'] | ||
assert_equal 'Name', fund_source['shopperName']['lastName'] | ||
assert_equal 'Debit', fund_source['additionalData']['fundingSource'] | ||
assert_equal '12345', fund_destination['additionalData']['walletIdentifier'] | ||
end.respond_with(successful_authorize_response) | ||
end | ||
|
||
def test_manual_capture_sent | ||
stub_comms do | ||
@gateway.authorize(@amount, @credit_card, @options.merge(manual_capture: 'true')) | ||
|