From 6c902d616534ab68f5444d69c45cd26116d13599 Mon Sep 17 00:00:00 2001 From: Christian Gambardella Date: Sun, 22 Nov 2015 14:21:18 +0100 Subject: [PATCH 1/2] Update checksum.rb Changed :client_id to :client --- lib/paymill/models/checksum.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/paymill/models/checksum.rb b/lib/paymill/models/checksum.rb index a2333ce..ed2b94e 100644 --- a/lib/paymill/models/checksum.rb +++ b/lib/paymill/models/checksum.rb @@ -18,7 +18,7 @@ def self.create_with?( incoming_arguments ) def self.allowed_arguments [ :checksum_type, :amount, :currency, :return_url, :cancel_url, :description, - :shipping_address, :billing_address, :items, :shipping_amount, :handling_amount, :client_id, + :shipping_address, :billing_address, :items, :shipping_amount, :handling_amount, :client, :require_reusable_payment, :reusable_payment_description, :fee_amount, :fee_payment, :fee_currency, :app_id ] From deb35475ac5b9aafc2657af1f943bb3b12ab0dd7 Mon Sep 17 00:00:00 2001 From: Christian Gambardella Date: Sun, 22 Nov 2015 14:33:17 +0100 Subject: [PATCH 2/2] Update checksum_spec.rb Changed :client_id to :client --- spec/paymill/models/checksum_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/paymill/models/checksum_spec.rb b/spec/paymill/models/checksum_spec.rb index 3295462..bbb20fc 100644 --- a/spec/paymill/models/checksum_spec.rb +++ b/spec/paymill/models/checksum_spec.rb @@ -47,11 +47,11 @@ module Paymill end it 'should create new checksum with minimum parameters and client', :vcr do - checksum = Checksum.create( checksum_type: 'paypal', amount: 4200, currency: 'EUR', description: 'Chuck Testa', return_url: 'https://testa.com', cancel_url: 'https://test.com/cancel', client_id: 'client_c43af14afac0e4f58f90' ) + checksum = Checksum.create( checksum_type: 'paypal', amount: 4200, currency: 'EUR', description: 'Chuck Testa', return_url: 'https://testa.com', cancel_url: 'https://test.com/cancel', client: 'client_c43af14afac0e4f58f90' ) expect( checksum.action ).to eq 'transaction' expect( checksum.checksum ).to be_a String - expect( checksum.data ).to eq 'amount=4200¤cy=EUR&description=Chuck+Testa&return_url=https%3A%2F%2Ftesta.com&cancel_url=https%3A%2F%2Ftest.com%2Fcancel&client_id=client_c43af14afac0e4f58f90' + expect( checksum.data ).to eq 'amount=4200¤cy=EUR&description=Chuck+Testa&return_url=https%3A%2F%2Ftesta.com&cancel_url=https%3A%2F%2Ftest.com%2Fcancel&client=client_c43af14afac0e4f58f90' expect( checksum.id ).to be_a String expect( checksum.type ).to eq 'paypal' expect( checksum.app_id ).to be_nil