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