Sha256: e2c82e86ce6e1fc4712ee99637f1d61803943c91a8354bbdae7f7aa82cadd549
Contents?: true
Size: 1.24 KB
Versions: 1
Compression:
Stored size: 1.24 KB
Contents
describe MangoPay::PayIn::PayPal::Web, 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('PAYPAL') expect(payin['ExecutionType']).to eq('WEB') # not SUCCEEDED yet: waiting for processing expect(payin['Status']).to eq('CREATED') expect(payin['ResultCode']).to be_nil expect(payin['ResultMessage']).to be_nil expect(payin['ExecutionDate']).to be_nil end describe 'CREATE' do it 'creates a paypal web payin' do created = new_payin_paypal_web expect(created['Id']).not_to be_nil check_type_and_status(created) end end describe 'FETCH' do it 'fetches a payin' do created = new_payin_paypal_web fetched = MangoPay::PayIn.fetch(created['Id']) expect(fetched['Id']).to eq(created['Id']) expect(fetched['CreationDate']).to eq(created['CreationDate']) expect(fetched['CreditedFunds']).to eq(created['CreditedFunds']) expect(fetched['CreditedWalletId']).to eq(created['CreditedWalletId']) check_type_and_status(created) check_type_and_status(fetched) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mangopay-3.0.25 | spec/mangopay/payin_paypal_web_spec.rb |