Sha256: e6647b165e9a07c314f7218fb1b422af1550683839a51195845ebab2ffc35594

Contents?: true

Size: 612 Bytes

Versions: 25

Compression:

Stored size: 612 Bytes

Contents

describe MangoPay::PayIn::ApplePay::Direct, 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('APPLEPAY')
    expect(payin['ExecutionType']).to eq('DIRECT')
    expect(payin['Status']).to eq('SUCCEEDED')
  end

  describe 'CREATE' do
    it 'creates a applepay direct payin' do
      pending("no cards to test for")
      created = new_payin_applepay_direct
      expect(created['Id']).not_to be_nil
      check_type_and_status(created)
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
mangopay-3.11.1 spec/mangopay/payin_applepay_direct_spec.rb
mangopay-3.11.0 spec/mangopay/payin_applepay_direct_spec.rb
mangopay-3.10.0 spec/mangopay/payin_applepay_direct_spec.rb
mangopay-3.9.0 spec/mangopay/payin_applepay_direct_spec.rb
mangopay-3.1.0 spec/mangopay/payin_applepay_direct_spec.rb