lib/paykassa/order.rb in paykassa-0.1.20 vs lib/paykassa/order.rb in paykassa-0.1.21
- old
+ new
@@ -34,35 +34,37 @@
@test = test
end
# Request for create order
def create_order(amount: , currency:, order_id:, paid_commision: , comment:, system:)
+ data = {
+ func: :sci_create_order,
+ amount: amount,
+ currency: currency,
+ order_id: order_id,
+ phone: "false",
+ paid_commission: paid_commision,
+ comment: comment,
+ system: SYSTEM_IDS[system]
+ }
+ puts data.inspect
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]
- }
+ data
)
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]
- }
- )
+ data = {
+ 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]
+ }
+ puts data.inspect
+ make_request(data)
end
# Check order status
def confirm_order(private_hash)
make_request(func: :sci_confirm_order, private_hash: private_hash)
\ No newline at end of file