Sha256: 76d0f2394611d2b5682731d7f819028d3b1f493bd015be9066e60fdc22ee401f
Contents?: true
Size: 659 Bytes
Versions: 1
Compression:
Stored size: 659 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 approve payment item' do request = { locale: IyziPay::Model::Locale::TR, conversationId: '123456789', paymentTransactionId: '1' } approval = IyziPay::Model::Approval.new.create(request, @options) begin $stderr.puts approval.inspect rescue $stderr.puts 'oops' raise end end after :each do end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
iyzipay-zebramo-1.0.37 | spec/approval_spec.rb |