Sha256: dfc3d9ae96e41e0c95ca8e5a6cd4fb9bdb4bb56ec9c2458b6f6be0f4e1a6261b
Contents?: true
Size: 928 Bytes
Versions: 15
Compression:
Stored size: 928 Bytes
Contents
describe MangoPay::PayIn::Multibanco::Web, type: :feature do include_context 'wallets' 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('MULTIBANCO') expect(payin['ExecutionType']).to eq('WEB') expect(payin['Status']).to eq('CREATED') end describe 'CREATE' do it 'creates a multibanco web payin' do created = new_payin_multibanco_web expect(created['Id']).not_to be_nil expect(created['ReturnURL']).not_to be_nil check_type_and_status(created) end end describe 'FETCH' do it 'fetches a payin' do created = new_payin_multibanco_web fetched = MangoPay::PayIn.fetch(created['Id']) expect(fetched['Id']).to eq(created['Id']) check_type_and_status(created) check_type_and_status(fetched) end end end
Version data entries
15 entries across 15 versions & 1 rubygems