Sha256: 6acb7db4d48ab3f0d7a52a27af083af57f024035ed0c54c4112d53ca920d77da

Contents?: true

Size: 917 Bytes

Versions: 16

Compression:

Stored size: 917 Bytes

Contents

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

  describe 'CREATE' do
    it 'creates a satispay web payin' do
      created = new_payin_satispay_web
      expect(created['Id']).not_to be_nil
      expect(created['Country']).not_to be_nil
      check_type_and_status(created)
    end
  end

  describe 'FETCH' do
    it 'fetches a payin' do
      created = new_payin_satispay_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

16 entries across 16 versions & 1 rubygems

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