test/stripe/order_test.rb in stripe-3.15.0 vs test/stripe/order_test.rb in stripe-3.17.0
- old
+ new
@@ -39,18 +39,18 @@
end
context "#pay" do
should "pay an order" do
order = Stripe::Order.retrieve("or_123")
- order = order.pay(token: "tok_123")
+ order = order.pay(source: "tok_123")
assert order.is_a?(Stripe::Order)
end
end
context "#return_order" do
should "return an order" do
order = Stripe::Order.retrieve("or_123")
- order = order.return_order(orders: [
+ order = order.return_order(items: [
{ parent: "sku_123" },
])
assert order.is_a?(Stripe::OrderReturn)
end
end