Sha256: b71a716aea24446e1a433f6747737b5b7b7555dd7e04cc92e85a6b77e2c42c76

Contents?: true

Size: 741 Bytes

Versions: 26

Compression:

Stored size: 741 Bytes

Contents

describe MangoPay::PayIn::Payconiq::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('PAYCONIQ')
    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 payconiq web payin' do
      created = new_payin_payconiq_web
      expect(created['Id']).not_to be_nil
      check_type_and_status(created)
    end
  end

end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
mangopay-3.11.1 spec/mangopay/payin_payconiq_web_spec.rb
mangopay-3.11.0 spec/mangopay/payin_payconiq_web_spec.rb
mangopay-3.10.0 spec/mangopay/payin_payconiq_web_spec.rb
mangopay-3.9.0 spec/mangopay/payin_payconiq_web_spec.rb
mangopay-3.8.0 spec/mangopay/payin_payconiq_web_spec.rb
mangopay-3.7.0 spec/mangopay/payin_payconiq_web_spec.rb