Sha256: 66fac034b9cf0e61b7df4ffd96b90f355f24bd7be6e412913d9520b7a2a22d21

Contents?: true

Size: 682 Bytes

Versions: 1

Compression:

Stored size: 682 Bytes

Contents

describe Moneta::Api::Requests::AuthoriseTransactionRequest, vcr: true do
  let(:service) { Moneta::Api::Service.new($username, $password) }

  describe '#authorise_transaction' do
    let(:request) do
      described_class.new.tap do |request|
        request.payee = 28988504
        request.payer = 10999
        request.amount = 10
        request.is_payer_amount = false
        request.payment_password = '12345'
      end
    end

    let!(:response) { service.authorise_transaction(request) }

    it 'should success' do
      expect(response).to be_kind_of(Moneta::Api::Responses::AuthoriseTransactionResponse)
      expect(response.id).to be_a_moneta_id
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
moneta-api-1.0.0 spec/lib/moneta/api/requests/authorise_transaction_request_spec.rb