Sha256: f7c527320794a7be1dd50694abdb5604406e12d9aa1996ffaedec50b8042dcd4

Contents?: true

Size: 663 Bytes

Versions: 5

Compression:

Stored size: 663 Bytes

Contents

# coding: utf-8

require_relative 'spec_helper'

RSpec.describe 'Iyzipay' do
  before :all do
    @options = Iyzipay::Options.new
    @options.api_key = 'your api key'
    @options.secret_key = 'your secret key'
    @options.base_url = 'https://sandbox-api.iyzipay.com'
  end

  it 'should cancel payment' do
    request = {
        locale: Iyzipay::Model::Locale::TR,
        conversationId: '123456789',
        paymentId: '1',
        ip: '85.34.78.112'
    }
    cancel = Iyzipay::Model::Cancel.new.create(request, @options)
    begin
      $stderr.puts cancel.inspect
    rescue
      $stderr.puts 'oops'
      raise
    end
  end

  after :each do
  end
end

Version data entries

5 entries across 5 versions & 3 rubygems

Version Path
erdem-iyzipay-1.1.0 spec/cancel_spec.rb
iyzipay-1.0.36 spec/cancel_spec.rb
iyzipay-1.0.35 spec/cancel_spec.rb
iyzipay-zebramo-1.0.36 spec/cancel_spec.rb
iyzipay-zebramo-1.0.35 spec/cancel_spec.rb