Sha256: 212ea0e6e202a796a7661607a33e858aad08038561285d977c22b3d77f1aaef8

Contents?: true

Size: 742 Bytes

Versions: 10

Compression:

Stored size: 742 Bytes

Contents

require 'spec_helper'
require 'atpay/session'
require 'atpay/token/invoice'

describe AtPay::Token::Invoice do
  let(:partner_id)        { 1 }
  let(:private_key)       { 'xx5okSjkqJu30biXEFI/y05B68JRCr7ReSdufmtrILY=' }
  let(:public_key)        { 'gOVRRMKRwCHD0nkGiQ1/1EKcSUjO/einHq7MZ/AMkzQ=' }
  let(:atpay_public_key)  { 'x3iJge6NCMx9cYqxoJHmFgUryVyXqCwapGapFURYh18=' }
  let(:atpay_private_key) { '' }

  let(:session)       { AtPay::Session.new(partner_id, public_key, private_key) }
  let(:amount)        { 20.0 }
  let(:email_address) { 'http://example.com/' }
  let(:user_data)     { 'sku-123' }

  it 'creates a new token without exception' do
    AtPay::Token::Invoice.new(session, amount, email_address, user_data).to_s
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
atpay_ruby-0.0.17 spec/token/invoice_spec.rb
atpay_ruby-0.0.16 spec/token/invoice_spec.rb
atpay_ruby-0.0.15 spec/token/invoice_spec.rb
atpay_ruby-0.0.13 spec/token/invoice_spec.rb
atpay_ruby-0.0.12 spec/token/invoice_spec.rb
atpay_ruby-0.0.11 spec/token/invoice_spec.rb
atpay_ruby-0.0.10 spec/token/invoice_spec.rb
atpay_ruby-0.0.9 spec/token/invoice_spec.rb
atpay_ruby-0.0.8 spec/token/invoice_spec.rb
atpay_ruby-0.0.5 spec/token/invoice_spec.rb