lib/paykassa.rb in paykassa-0.1.16 vs lib/paykassa.rb in paykassa-0.1.17
- old
+ new
@@ -49,9 +49,11 @@
phone: "false",
paid_commission: paid_commision,
comment: comment,
system: system
)
+ raise StandardError.new(order[:message]) if order[:error]
+ order
end
def create_order(amount: , currency:, order_id:, paid_commision: , comment: "from paykassa gem", system:)
order = @paykassa_order.create_order(
amount: amount,
currency: currency,