scenarios/example.rb in slidepay-0.0.5 vs scenarios/example.rb in slidepay-0.0.6

- old
+ new

@@ -10,22 +10,23 @@ SlidePay.configure(development: true) SlidePay.api_key = ENV["api_key"] # RestClient.proxy = "http://127.0.0.1:8888" +# a = ApiKey.new +# a["api_key_id"] = 17 +# a.is_new? +# a.id_attribute +# a.retrieve() + p = Payment.new -p["amount"] = 2.01 +p["amount"] = 1.01 p["method"] = "CreditCard" p["cc_number"] = "4111111111111111" p["cc_cvv2"] = "111" p["cc_billing_zip"] = "11111" p["cc_expiry_month"] = "10" p["cc_expiry_year"] = "14" r = p.process() -# p.refund() +p.refund() -p2 = Payment.new -p2['payment_id'] = p.id -p2.retrieve() -p2['under_review'] = 1 -p2.save() \ No newline at end of file