Files
sx-fc/app/controllers/api/payments_controller.rb
2017-04-11 13:51:09 +08:00

19 lines
489 B
Ruby

class Api::PaymentsController < ActionController::API
#Payment by Invoice ID
# Payment Method - [Cash | CreditNote | VISA | MASTER | etc..]
# Invoice No | Amount
# Output
# Status - [True/False] | Invoice | error_message (* when status false)
def create
@invoice = Sale.find(params[:invoice_id])
end
# Update of payment status from the external party
# Invoice No | Payment ID | External params [] (* third party references and status)
#
def update
end
end