Sha256: 41cf04e79f24425cb6d914d235acb744c4a54f244ddd9d1b0ab38a282075f388

Contents?: true

Size: 851 Bytes

Versions: 13

Compression:

Stored size: 851 Bytes

Contents

describe MangoPay::PayIn::Ideal::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('IDEAL')
    expect(payin['ExecutionType']).to eq('WEB')
    expect(payin['Status']).to eq('CREATED')
  end

  describe 'CREATE' do
    it 'creates a ideal web payin' do
      created = new_payin_ideal_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_ideal_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

13 entries across 13 versions & 1 rubygems

Version Path
mangopay-3.28.0 spec/mangopay/payin_ideal_web_spec.rb
mangopay-3.27.0 spec/mangopay/payin_ideal_web_spec.rb
mangopay-3.26.1 spec/mangopay/payin_ideal_web_spec.rb
mangopay-3.26.0 spec/mangopay/payin_ideal_web_spec.rb
mangopay-3.25.1 spec/mangopay/payin_ideal_web_spec.rb
mangopay-3.25.0 spec/mangopay/payin_ideal_web_spec.rb
mangopay-3.24.1 spec/mangopay/payin_ideal_web_spec.rb
mangopay-3.24.0 spec/mangopay/payin_ideal_web_spec.rb
mangopay-3.23.0 spec/mangopay/payin_ideal_web_spec.rb
mangopay-3.22.0 spec/mangopay/payin_ideal_web_spec.rb
mangopay-3.21.0 spec/mangopay/payin_ideal_web_spec.rb
mangopay-3.20.0 spec/mangopay/payin_ideal_web_spec.rb
mangopay-3.19.0 spec/mangopay/payin_ideal_web_spec.rb