qr pay updates

- subscribe to action cable from cloud and listen
- callback from cloud to local and show success payment in real time
- payment service and process payment after callback
This commit is contained in:
Dev Team
2025-05-26 11:29:33 +06:30
parent a43f8ed4f6
commit 1768345299
5 changed files with 208 additions and 21 deletions

View File

@@ -677,8 +677,6 @@ scope "(:locale)", locale: /en|mm/ do
get 'sale/:sale_id' => 'sales#show'
get 'order/:order_id' => "orders#show"
get 'qrpay/payment_loading' => 'qrpay#payment_loading'
# Other Charges
get "/:sale_id/:type/other_charges" => "other_charges#index"
post "/:sale_id/other_charges" => "other_charges#create"
@@ -750,6 +748,8 @@ scope "(:locale)", locale: /en|mm/ do
get '/:sale_id/qrpay/init' => 'qrpay#init'
post 'qrpay/cancel' => 'qrpay#cancel'
get 'qrpay/test-payment' => 'qrpay#test_payment'
post 'qrpay/process_payment' => 'qrpay#create'
end
end
end