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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user