QA #114
closed[ADMIN/API] PG process
Description
[API] /api/pg_confirm
1.PG confirm API is success
1) when UPDATE DB(st_order_payment)
- set pg_secret by API response.secret (it's used on /hook)
(currently, this is not set)
2.server log
1) API is success
a) leave log (level: info)
- "[PG confirm API] success - paymentKey: {paymentKey}, orderId: {orderId}"
2) API is fail
a) leave log (level: error)
- "[PG confirm API] fail - paymentKey: {paymentKey}, orderId: {orderId}, error code: {code}, error message: {message}"
[ADMIN] PG cancel API (OnlineOrder / StoreOrder)
1.logic
1) if API is fail
- return error and alert error msg including pg error code and message
(server logic is not applied)
2.server log
1) API is success
a) leave log (level: info)
- "[PG cancel API] success - paymentKey: {paymentKey}, orderId: {orderId}"
2) API is fail
a) leave log (level: error)
- "[PG cancel API] fail - paymentKey: {paymentKey}, orderId: {orderId}, error code: {code}, error message: {message}"
[API] /hook
1.logic
1) if reponse status = 'DONE'
a) DB process is done
- return 200 status (its status is responsed to PG)
- if not, don't return 200 status (currently, 200 is always returned)
1) add check logic
if param order's payment_method = 'PV02' (VBank)
- leave log (level: debug)
if (orderPayment.pg_secret = NULL OR orderPayment.pg_secret = param.secret)
if ("DONE" = param.status)
- do the process as current
always, return 200 status
2.server log
1) common
a) leave log (level: debug)
- "[PG hook callback] " + request object string
2) if reponse status = 'DONE'
a) leave log (level: info)
- "[PG hook callback] success - orderId: {orderId}"
Updated by Deca Park over 1 year ago
- Subject changed from [ADMIN/AP{] PG process to [ADMIN/API] PG process
Updated by bryant bryant over 1 year ago
- Status changed from New to Resolved
- Assignee changed from bryant bryant to Deca Park
Updated by Deca Park over 1 year ago
[ADMIN/API]
1.st_order_payment
1) payment_status = 'PS02' (결제실패 - payment fail)
- REMOVE this code from sources because this code is not used
Updated by Deca Park over 1 year ago
[ADMIN] OrderService Source
1.save()
1) update logic problem (line 102 ~ 103) & order products
a) when UPDATE st_order
- currently, there's no order product change (fix the logic)
Updated by Deca Park over 1 year ago
[ADMIN] online order, store order
1.저장(save)
1) if status is updated with cancel
a) if payment_amount = 0
UPDATE DB(st_order_payment)
payment_status='PS11',cancel_amount=0
cancel_proc_date / cancel_user_seq