Sha256: 20d52602c36f1fa03b4487c0f2683a8675f994068d9ef34e782df037bd3d72c9

Contents?: true

Size: 613 Bytes

Versions: 7

Compression:

Stored size: 613 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

7 entries across 7 versions & 1 rubygems

Version Path
mangopay-3.8.0 spec/mangopay/payin_applepay_direct_spec.rb
mangopay-3.7.0 spec/mangopay/payin_applepay_direct_spec.rb
mangopay-3.6.0 spec/mangopay/payin_applepay_direct_spec.rb
mangopay-3.5.0 spec/mangopay/payin_applepay_direct_spec.rb
mangopay-3.4.0 spec/mangopay/payin_applepay_direct_spec.rb
mangopay-3.3.0 spec/mangopay/payin_applepay_direct_spec.rb
mangopay-3.2.0 spec/mangopay/payin_applepay_direct_spec.rb