lib/paykassa/order.rb in paykassa-0.1.18 vs lib/paykassa/order.rb in paykassa-0.1.19
- old
+ new
@@ -35,29 +35,33 @@
end
# Request for create order
def create_order(amount: , currency:, order_id:, paid_commision: , comment:, system:)
make_request(
- func: :sci_create_order,
- amount: amount,
- currency: currency,
- order_id: order_id,
- phone: "false",
- paid_commission: paid_commision,
- comment: comment,
- system: SYSTEM_IDS[system]
+ {
+ func: :sci_create_order,
+ amount: amount,
+ currency: currency,
+ order_id: order_id,
+ phone: "false",
+ paid_commission: paid_commision,
+ comment: comment,
+ system: SYSTEM_IDS[system]
+ }
)
end
def get_data(amount: , currency:, order_id:, paid_commission: , comment:, system:)
make_request(
- func: :sci_create_order_get_data,
- amount: amount,
- currency: currency,
- order_id: order_id,
- phone: "false",
- paid_commission: paid_commission,
- comment: comment,
- system: SYSTEM_IDS[system]
+ {
+ func: :sci_create_order_get_data,
+ amount: amount,
+ currency: currency,
+ order_id: order_id,
+ phone: "false",
+ paid_commission: paid_commission,
+ comment: comment,
+ system: SYSTEM_IDS[system]
+ }
)
end
# Check order status
def confirm_order(private_hash)
\ No newline at end of file