Sha256: 191744a9570120736c43d4665e0fdc6d79522290b27b5c0fec404a8166b3af0f

Contents?: true

Size: 641 Bytes

Versions: 1

Compression:

Stored size: 641 Bytes

Contents

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

  describe 'payment' 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.payment(request) }

    it 'should success' do
      expect(response.attribute.first).to be_kind_of(Moneta::Api::Types::KeyValueAttribute)
      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/payment_request_spec.rb