@@ -76,6 +76,7 @@ def _request(
7676 method : RequestMethodType ,
7777 route : str ,
7878 json : dict [str , Any ] | None = None ,
79+ params : dict [str , Any ] | None = None ,
7980 headers : dict [str , str ] | None = None ,
8081 timeout : TimeoutTypes = DEFAULT_TIMEOUT ,
8182 action_desc : str = "UNDEFINED_ACTION" ,
@@ -84,6 +85,7 @@ def _request(
8485 method = method ,
8586 url = route ,
8687 json = json ,
88+ params = params ,
8789 headers = {"Authorization" : self ._access_token , "Content-Type" : "application/json" } | (headers or {}),
8890 timeout = timeout ,
8991 )
@@ -143,7 +145,11 @@ def register_or_update_prepared_payment(self, merchant_id: str, price: int) -> d
143145 raise PortOneExceptionGroup (f"결제금액 사전 등록 또는 수정에 실패했습니다. { merchant_id = } " , [e1 , e2 ])
144146
145147 def find_payment_info (self , imp_uid : str ) -> dict :
146- if payment_data := self ._request (method = "GET" , route = f"/payments/{ imp_uid } " ).get ("response" ):
148+ if payment_data := self ._request (
149+ method = "GET" ,
150+ route = f"/payments/{ imp_uid } " ,
151+ params = {"include_sandbox" : "true" },
152+ ).get ("response" ):
147153 return payment_data
148154
149155 raise PortOneException (f"결제 정보를 찾을 수 없습니다. { imp_uid = } " )
0 commit comments