Project

General

Profile

New Function #99

Updated by Deca Park about 1 year ago

<p><strong>[API] POST /api/online_order, POST /api/store_order</strong><br /> 
 1.process (append following logic)<br /> 
 &nbsp; 1) <strong>if payment_amount = 0</strong><br /> 
 &nbsp; &nbsp; a) <strong>if use_point param &gt; 0</strong><br /> 
 &nbsp; &nbsp; &nbsp; a-1) INSERT st_user_use_point<br /> 
 &nbsp; &nbsp; &nbsp; &nbsp; - user_seq : user_seq of id param<br /> 
 &nbsp; &nbsp; &nbsp; &nbsp; - mall_code / use_point : set by parameter<br /> 
 &nbsp; &nbsp; &nbsp; &nbsp; - order_no : created order_no<br /> 
 &nbsp; &nbsp; &nbsp; &nbsp; - reg_date : current time<br /> 
 &nbsp; &nbsp; b) <strong>&nbsp;if use_money param &gt; 0</strong><br /> 
 &nbsp; &nbsp; &nbsp; b-1) INSERT st_user_use_money<br /> 
 &nbsp; &nbsp; &nbsp; &nbsp; - user_seq : user_seq of id param<br /> 
 &nbsp; &nbsp; &nbsp; &nbsp;- mall_code / use_money : set by parameter<br /> 
 &nbsp; &nbsp; &nbsp; &nbsp; - order_no : created order_no<br /> 
 &nbsp; &nbsp; &nbsp; &nbsp;- reg_date : current time<br /> 
 &nbsp; 2) else<br /> 
 &nbsp; &nbsp; &nbsp;- SKIP</p> 

 <p><strong>[API] POST pay_confirm</strong><br /> 
 1.process (append following logic)<br /> 
 &nbsp; 1)<strong> if PG payment is sucess (st_order_payment.payment_status = &#39;PS10&#39;)</strong><br /> 
 &nbsp; &nbsp; a) <strong>if st_order.use_point &gt; 0</strong><br /> 
 &nbsp; &nbsp; &nbsp; a-1) INSERT st_user_use_point<br /> 
 &nbsp; &nbsp; b) <strong>if st_order.use_money &gt; 0</strong><br /> 
 &nbsp; &nbsp; &nbsp; b-1) INSERT st_user_use_money<br /> 
 &nbsp; 2) if PG payment is fail<br /> 
 &nbsp; &nbsp; - SKIP</p> 

 <p><strong>[API] &nbsp;POST /hook (VBank deposit complete process - 가상계좌 웹훅) - Issue #79</strong><br /> 
 1.process (append following logic)<br /> 
 &nbsp; 1)<strong> if PG payment is sucess (st_order_payment.payment_status = &#39;PS21&#39;)</strong><br /> 
 &nbsp; &nbsp; a)<strong> if st_order.use_point param &gt; 0</strong><br /> 
 &nbsp; &nbsp; &nbsp; a-1) INSERT st_user_use_point<br /> 
 &nbsp; &nbsp; b) <strong>&nbsp;if st_order.use_money param &gt; 0</strong><br /> 
 &nbsp; &nbsp; &nbsp; b-1) INSERT st_user_use_money<br /> 
 &nbsp; 2) if PG payment is fail<br /> 
 &nbsp; &nbsp; - SKIP</p> 

 <p><strong>[ADMIN] 주문 취소 처리 (order cancel) - Issue #82</strong><br /> 
 &nbsp; <strong>온라인몰 관리 &gt; 주문/배송 관리 (/onlineOrder) &gt; 상세 (Modify)<br /> 
 &nbsp; 스마트 오더 관리 &gt; 주문 관리 (/storeOrder) &gt; 상세 (Modify)</strong><br /> 
 1.process (append following logic)<br /> 
 &nbsp; 1)<strong> if payment cancel is success</strong><br /> 
 &nbsp; &nbsp; a) <strong>if st_order.use_point &gt; 0</strong><br /> 
 &nbsp; &nbsp; &nbsp; a-1) <strong>DELETE </strong>st_user_use_point<br /> 
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - condition: user_seq={st_order.user_seq} AND order_no = {st_order.order_no}<br /> 
 &nbsp; &nbsp; b) &nbsp;<strong>if st_order.use_money &gt; 0</strong><br /> 
 &nbsp; &nbsp; &nbsp; b-1) <strong>DELETE</strong> st_user_use_money<br /> 
 &nbsp; &nbsp; &nbsp; &nbsp; - condition: user_seq={st_order.user_seq} AND order_no = {st_order.order_no}<br /> 
 &nbsp; &nbsp; <span style="color:#e74c3c;">c) <strong>if&nbsp;st_order.coupon_code is NOT empty (if coupon was used on payment)</strong><br /> 
 &nbsp; &nbsp; &nbsp; c-1) UPDATE&nbsp;st_user_coupon<br /> 
 &nbsp; &nbsp; &nbsp; &nbsp; -&nbsp;use_yn = &#39;N&#39;, mod_date<br /> 
 &nbsp; &nbsp; &nbsp; &nbsp; - condition:&nbsp;coupon_code= {the&nbsp;coupon_code} AND user_seq =&nbsp;{st_order.user_seq}</span></p> {st_order.order_no}</p> 

Back