-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #223 from Mangopay/feature/google-pay-direct-v2
Feature/google pay direct v2
- Loading branch information
Showing
5 changed files
with
64 additions
and
20 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
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
describe MangoPay::PayIn::GooglePay::Direct, type: :feature do | ||
include_context 'payins' | ||
|
||
def check_type_and_status(payin) | ||
expect(payin['Type']).to eq('PAYIN') | ||
expect(payin['Nature']).to eq('REGULAR') | ||
expect(payin['PaymentType']).to eq('GOOGLE_PAY') | ||
expect(payin['ExecutionType']).to eq('DIRECT') | ||
expect(payin['Status']).to eq('CREATED') | ||
end | ||
|
||
describe 'CREATE' do | ||
it 'creates a googlepay direct payin' do | ||
pending("Cannot be tested due to impossibility to generate payment_data in test") | ||
created = new_payin_googlepay_direct | ||
expect(created['Id']).not_to be_nil | ||
check_type_and_status(created) | ||
end | ||
end | ||
end | ||
|
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