Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
… into release
  • Loading branch information
SoloJr committed Mar 25, 2021
2 parents 93bf5d8 + 9bd31dc commit d5f550b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spec/mangopay/payin_applepay_direct_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def check_type_and_status(payin)

describe 'CREATE' do
it 'creates a applepay direct payin' do
pending("no cards to test for")
#pending("no cards to test for")
created = new_payin_applepay_direct
expect(created['Id']).not_to be_nil
check_type_and_status(created)
Expand Down
1 change: 1 addition & 0 deletions spec/mangopay/payin_card_direct_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def check_type_and_status(payin)
it 'creates a card direct payin' do
created = new_payin_card_direct
expect(created['Id']).not_to be_nil
expect(created['Requested3DSVersion']).not_to be_nil
check_type_and_status(created)
end
end
Expand Down
1 change: 1 addition & 0 deletions spec/mangopay/preauthorization_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
expect(created['PaymentStatus']).to eq('WAITING')
expect(created['PaymentType']).to eq('CARD')
expect(created['ExecutionType']).to eq('DIRECT')
expect(created['Requested3DSVersion']).to eq('V1')
end
end

Expand Down
6 changes: 4 additions & 2 deletions spec/mangopay/shared_resources.rb
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,8 @@ def create_new_payin_card_direct(to_wallet, amnt = 1000)
CardType: 'CB_VISA_MASTERCARD',
CardId: cardreg['CardId'],
SecureModeReturnURL: 'http://test.com',
Tag: 'Test PayIn/Card/Direct'
Tag: 'Test PayIn/Card/Direct',
Requested3DSVersion: 'V1'
)
end

Expand All @@ -385,7 +386,8 @@ def create_new_card_preauthorization(cardreg, amnt = 1000)
CardId: cardreg['CardId'],
SecureMode: 'DEFAULT',
SecureModeReturnURL: 'http://test.com',
Tag: 'Test Card PreAuthorization'
Tag: 'Test Card PreAuthorization',
Requested3DSVersion: 'V1'
)
end

Expand Down

0 comments on commit d5f550b

Please sign in to comment.