Stefan Lam
Stefan Lam2y ago

Can i ask how to create product for this toss payment?

Hi, can I know how to create product which link to this toss payment?
56 Replies
토스페이먼츠 BOT
3/12 이후에 결제 연동을 해보신 분들을 찾습니다!🔎
제품 발전을 위해 설문에 참여해주세요! 추첨을 통해 선물을 드립니다. (1분 소요)
이실장
이실장2y ago
can you give me more details?
Stefan Lam
Stefan Lam2y ago
Hi, because if we use payment widget there is escrow product right
이실장
이실장2y ago
yeah payment widghet provide escrow function
Stefan Lam
Stefan Lam2y ago
normally we need to link this payment with which product anyway to link the product? because we need create product and like pay monthly possible? escrow function have id string ID of the product. This value must be unique. name string Product name. code string This is the product management code used by the store. unitPrice number The price of the product. This is the price per item, not the total price. quantity number The product purchase quantity. where to create product? This is the product management code used by the store. what store is that how to access
이실장
이실장2y ago
you dont have to create product, just send it to parameter when pay occur After that you have to use escrow API and manage it with that product ID you send it https://drive.google.com/drive/u/0/folders/1hNAsndJSSMMH5IgSYE3GbPlbvS3NRMl8 Here is escrow API but we only provide escrow API in legacy module
Stefan Lam
Stefan Lam2y ago
do u have english version? the product we manage ourself in our system? escrow API is used to link to get the payment details or automatic payment?
이실장
이실장2y ago
let me see
Stefan Lam
Stefan Lam2y ago
escrow is? what is escrow ya
이실장
이실장2y ago
Are you preparing global service? Or foreign developer for Korea company?
Stefan Lam
Stefan Lam2y ago
i m foreign developer for korea company we have representative at korea http://pgweb.tosspayments.com this is escrow? because normally payment u can create product right....then u know what this payment for
유부장
유부장2y ago
Hi Stefan, Let us conclude your requirement first, You mentioned that you are developer for Korea company. Is the company selling and sending the product to the customer via package?
Stefan Lam
Stefan Lam2y ago
is virtual electronic like virtual things u get what i mean
유부장
유부장2y ago
then you do not need to care about escrow, escrow is the one for the package
Stefan Lam
Stefan Lam2y ago
ooh for package? can have example? packaging u mean? like parcel
유부장
유부장2y ago
ex company selling the product and need to send the package to the customer if the customer would like to confirm the payment after they receive the things from company first, then customer can utilize escrow. yes parcel
Stefan Lam
Stefan Lam2y ago
ooh then how we keep track the payment for i saw have orderId and orderName these 2? order Id should be unique orderName only?
유부장
유부장2y ago
Ok, so now we are in another step Are you using Tosspayments jsSDK module? or API?
Stefan Lam
Stefan Lam2y ago
kind of widget payment widget
유부장
유부장2y ago
Widget, ok good And, you would like to inquiry the payment after the user complete the payment?
Stefan Lam
Stefan Lam2y ago
like user A made payment right we need to know he/she paid for what product then next time we can charge automatic payment like 6 months later etc
유부장
유부장2y ago
Firstly, when you request for the payment, you will pass the parameter orderId, orderName and etc to us. You will call the Approval API call to complete the payment, then you will get the API response from Tosspayments. Or, you can also receive webhook from us. ( you need to configure some) charge automatic payment is another product, it cannot be combined with Widget, you need to integrate the automatic payment product separately. (API, jsSDK)
Stefan Lam
Stefan Lam2y ago
payment widget only for single payment? if i need to do recurring payment need use jsSDK?
유부장
유부장2y ago
Need to use API or jsSDK, Yes. recurring payment (billing) is another product.
Stefan Lam
Stefan Lam2y ago
which link? can share? if you not mind a bit messy haha
유부장
유부장2y ago
You can refer to the link below how the billing integration need to be done https://docs.tosspayments.com/guides/billing/overview
자동 결제(빌링) 이해하기 | 토스페이먼츠 개발자센터
자동 결제를 사용하는 방법과 구독 서비스를 구현하는 방법을 소개합니다.
Stefan Lam
Stefan Lam2y ago
"orderId": "gOYhhlyokgcO2OYaVc4FJ", "orderName": "토스 프라임 구독", orderName is for us to key in what product is that? payment widget only for single payment?
유부장
유부장2y ago
Let's conclude the conversation. 1. Widget - for onetime payment. Widget has "Pro" version for the better experience to the customer and merchant manager. 2. Recurring payment (Billing) two kinds of integration method, one is jsSDK + API, another one is API only. orderName - what product is, Yes it is. You will pass this value to us.
Stefan Lam
Stefan Lam2y ago
okie noted
유부장
유부장2y ago
Good, I believe you need to communicate with Korea company first
Stefan Lam
Stefan Lam2y ago
okie....i will ask here if encounter issue again ok?
유부장
유부장2y ago
Sure, let us know anytime.
Stefan Lam
Stefan Lam2y ago
so if we use JsSDK+API...do we have default UI? we need custom ourself?
유부장
유부장2y ago
You will have default UI with jsSDK
유부장
유부장2y ago
like this
No description
Stefan Lam
Stefan Lam2y ago
jsSDK which link again ya can we have free 3 months no payment but later on have to pay? hello
유부장
유부장2y ago
billing jsSDK https://docs.tosspayments.com/guides/billing/integration what do you mean by free 3 months no payment but later on have to pay??
카드 등록 후 자동으로 결제하기 (빌링) | 토스페이먼츠 개발자센터
카드를 등록해두고 인증과정 없이 자동 결제를 할 수 있도록 연동해보세요.
Stefan Lam
Stefan Lam2y ago
let say we want to let user free 3 months but subscribed first later on 4th month we only charge possible? or we need manually update?
유부장
유부장2y ago
that will be your logic
Stefan Lam
Stefan Lam2y ago
i mean we cant have like discount coupon those? or promocode 2nd question, customerKey how do i get that it seems i cant get
이실장
이실장2y ago
you can read those docs link by using browser translate function customerKey is generate by merchat. generate ur own unique key and just send it.
Stefan Lam
Stefan Lam2y ago
means my system manually generate right
이실장
이실장2y ago
yes
Stefan Lam
Stefan Lam2y ago
have promocode support? toss payment or discount code
이실장
이실장2y ago
I think u r not familier with korean payment system. plz organize the questions at once and ask them all at the same time We will answer after checking after lunch. And if you have any questions related to the operation like the promotion code, please contact the Korean manager Then what we explain to the manager will help build business logic. only answer the above question, the promotion code function is not supported when you make a billing payment. You can just change the amount value among your business login and call the payment confirm API.
Stefan Lam
Stefan Lam2y ago
ooh ok thanks many and sorry for not organizing questions My Question have below: 1. since we cant have promotion code, what we can do is give free payment 0.00 on first month. if subsequent month we need the payment, we just call payment confirm API to change the amount so anything after that we can charge automatically to thier card? 2. Automatic payment API how to access? because i checked it requires additional agreement. 3. Is there any expiration data on reporting/API? like keep the data 30 days only? any1 here?
유부장
유부장2y ago
1. Nope. Within your logic, you do not need to perform any action for your free period, and when the payment need to be performed, then perform the payment at the time. * Not the Confirm API, You need to perform "v1/billing/{billingKey}" * https://docs.tosspayments.com/reference#%EC%B9%B4%EB%93%9C-%EC%9E%90%EB%8F%99-%EA%B2%B0%EC%A0%9C-%EC%8A%B9%EC%9D%B8 2. You can perform the test with test key. You need to ask Korea company for it. Korea company should have contracted merchant with Tosspayments. if not, then you need to ask them to perform the contract with Tosspayments, and also provide the test key for you. Korea company can see the test key from tosspayments.com. Please ask Korea company to follow up also. 3. No. there is no keeping period for the payment data inquiry.
코어 API | 토스페이먼츠 개발자센터
토스페이먼츠 API 엔드포인트(Endpoint)와 객체 정보, 파라미터, 요청 및 응답 예제를 살펴보세요.
Stefan Lam
Stefan Lam2y ago
Hi Can I ask about tech question here. About API I tried to use billing/xxx/issues to get authorize My header i pass secret key but return 500. can advise?
이실장
이실장2y ago
did you base64 encode it? with colon (:) ?
Stefan Lam
Stefan Lam2y ago
nope
이실장
이실장2y ago
인증 | 토스페이먼츠 개발자센터
토스페이먼츠 API 사용에 필요한 인증 방식을 알아봅니다.
토스페이먼츠 BOT
❤️ 기술문의 경험이 어떠셨나요?!
간단히 코멘트 남겨주세요! 제품 발전에 큰 힘이 됩니다.
neerosity
neerosity2y ago
Hi, I am using nestjs for backend and react for frontend now, I want to create some link using backend which I can give as response to frontend and it will pay using that link after payment completes, I can fetch that record using wehook is it possible? or how this is supposed to work
curl --request POST \
--url https://api.tosspayments.com/v1/payments \
--header 'Authorization: Basic dG...Og==' \
--header 'Content-Type: application/json' \
--data '{"method":"카드","amount":15000,"orderId":"a4CWyWY5m89PNh7xJwhk1","orderName":"토스 티셔츠 외 2건","successUrl":"http://localhost:8080/success","failUrl":"http://localhost:8080/fail"}'
curl --request POST \
--url https://api.tosspayments.com/v1/payments \
--header 'Authorization: Basic dG...Og==' \
--header 'Content-Type: application/json' \
--data '{"method":"카드","amount":15000,"orderId":"a4CWyWY5m89PNh7xJwhk1","orderName":"토스 티셔츠 외 2건","successUrl":"http://localhost:8080/success","failUrl":"http://localhost:8080/fail"}'
Kimoon Lee
Kimoon Lee2y ago
you can set up the webhook in the development portal
Kimoon Lee
Kimoon Lee2y ago
웹훅(Webhook) 연동하기 | 토스페이먼츠 개발자센터
웹훅은 데이터가 변경되었을 때 상점 서버에서 실시간으로 알림을 받을 수 있는 기능입니다. 웹훅을 연동해서 결제 상태 변경, 지급대행 실행, 브랜드페이 고객 결제수단 업데이트와 같은 변경 사항을 실시간으로 받아보세요.