lib/paykassa/order.rb in paykassa-0.1.23 vs lib/paykassa/order.rb in paykassa-0.1.24
- old
+ new
@@ -37,11 +37,11 @@
# Request for create order
def create_order(amount: , currency:, order_id:, paid_commision: , comment:, system:)
puts "system: #{system}"
data = {
func: :sci_create_order,
- amount: amount,
+ amount: amount.to_f,
currency: currency,
order_id: order_id,
phone: "false",
paid_commission: paid_commision,
comment: comment,
@@ -54,10 +54,10 @@
end
def get_data(amount: , currency:, order_id:, paid_commission: , comment:, system:)
puts "system: #{system}"
data = {
func: :sci_create_order_get_data,
- amount: amount,
+ amount: amount.to_f,
currency: currency,
order_id: order_id,
phone: "false",
paid_commission: paid_commission,
comment: comment,
\ No newline at end of file