Project

General

Profile

Actions

QA #114

closed

[ADMIN/API] PG process

Added by Deca Park about 1 year ago. Updated 8 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Start date:
09/09/2023
Due date:
% Done:

0%

Estimated time:
Spent time:

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}"
 

Actions #1

Updated by Deca Park about 1 year ago

  • Subject changed from [ADMIN/AP{] PG process to [ADMIN/API] PG process
Actions #2

Updated by bryant bryant about 1 year ago

  • Status changed from New to Resolved
  • Assignee changed from bryant bryant to Deca Park
Actions #3

Updated by Deca Park about 1 year ago

  • Description updated (diff)
Actions #4

Updated by Deca Park about 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

Actions #5

Updated by Deca Park about 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)

Actions #6

Updated by Deca Park about 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

Actions #7

Updated by Deca Park 8 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF