Skip to content

Commit

Permalink
fix: use PaymentClient
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwiyou committed Dec 19, 2024
1 parent c379ec2 commit 789ba83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ app = FastAPI()
items = {item.id: item for item in [Item("shoes", "신발", 1000, "KRW")]}
${({ section }) => section("server:portone-api-secret")`
portone_client = portone.PortOneClient(secret=os.environ["V2_API_SECRET"])
portone_client = portone.PaymentClient(secret=os.environ["V2_API_SECRET"])
`}
${({ section }) => section("server:complete-payment")`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def create_app():
items = {item.id: item for item in [Item("shoes", "신발", 1000, "KRW")]}
${({ section }) => section("server:portone-api-secret")`
portone_client = portone.PortOneClient(secret=os.environ["V2_API_SECRET"])
portone_client = portone.PaymentClient(secret=os.environ["V2_API_SECRET"])
`}
@app.get("/api/item")
Expand Down

0 comments on commit 789ba83

Please sign in to comment.