jason
jason3mo ago

didn't find the add card and save card ID flow

We would like to add Card from the mobile App (developed in Flutter) and save card ID in backend database, from backend we will charge customer from that saved card when needed, so how do we do that? We have checked this already, checked almost whole document but didn't find the execat flow to add card and save card in backend. We find remove card api, charge customer api, but didn't find the add card and save card ID flow.
36 Replies
토스페이먼츠 BOT
⏳ 잠시만 기다려주세요! 곧 답변드리겠습니다
오류 문의일 경우 아래 정보를 미리 전달해주시면, 빠른 답변에 도움이 됩니다.
- 주문번호(orderId) : - 문의 내용 :
(img를 함께 첨부해주시면 도움이됩니다)
* 계약관련 내용은 1544-7772로 문의주세요. * 주말/공휴일에는 답변이 늦을 수 있어요.
Ayaan
Ayaan3mo ago
Good afternoon @jason, thank you for reach us. Which product are you trying to use? Is it paymentWidget? billing payment? brandpay?...
jason
jason3mo ago
It's brand pay @Ayaan
Ayaan
Ayaan3mo ago
Got it. First, just for clarify, you cannot save the card number because of the Korean law. Why do you want to save card information on your service?
sunil008
sunil0083mo ago
Hi @Ayaan , We not want to save card info, we want to save card on payment gateway and want to save card ID on our server, so later on we can charge customer using that card id
Ayaan
Ayaan3mo ago
Yes, Toss saves card data with CustomerKey that you sent on our SDK. So you dont need to get any card information including card ID data, just simply save the customerKey and query to Toss API with the customerKey params.
sunil008
sunil0083mo ago
Hi @Ayaan thanks, can you share document if it is avialble, I will check it and try
Ayaan
Ayaan3mo ago
Only Korean version is available. But I hope you can use in-browser google translate feature in Chrome Browser. If you are using Brandpay with PaymentWidget SDK which is newly deployed: https://docs.tosspayments.com/guides/payment-widget/integration-brandpay If you are using BrandPay SDK: https://docs.tosspayments.com/guides/brandpay/integration
sunil008
sunil0083mo ago
Hi @Ayaan , Thanks, let me check it
sunil008
sunil0082mo ago
Hi @Ayaan , I have checked it, What I need is automatic payment using billing key. I am not able to find How can I add card from Flutter App and get "authKey", can you please let me know this? Or is there any other mode available where I can use Featue like "automatic payment using billing key"
No description
Ayaan
Ayaan2mo ago
authKey should be returned on your redirectUrl(if you are using webview to implement this) or return event(if you are using SDK directly). @sunil008
sunil008
sunil0082mo ago
I am not able to find it in SDK, can you share me the document url if possible? Also In webhook I am not able to find webhook for "Add Card" response
Ayaan
Ayaan2mo ago
Which document did you found that information?
sunil008
sunil0082mo ago
코어 API | 토스페이먼츠 개발자센터
토스페이먼츠 API 엔드포인트(Endpoint)와 객체 정보, 파라미터, 요청 및 응답 예제를 살펴보세요.
Ayaan
Ayaan2mo ago
This is not brandpay, this is billing payment which is completely different product.
sunil008
sunil0082mo ago
okay
Ayaan
Ayaan2mo ago
Are you actually want to use BrandPay? I want to clarify this first.
sunil008
sunil0082mo ago
Can you help me with the flow which one I should use? I want automatic payment with Billing key
Ayaan
Ayaan2mo ago
Automatic Payment?
sunil008
sunil0082mo ago
Yes Because I want to save card referenceId (BillingKey) to server and want to charge using that
Ayaan
Ayaan2mo ago
Our automatic product is designed for case of regularly over a set period of time. Do you think your business is suitable with this?
sunil008
sunil0082mo ago
No, I want save customer card and I charge after the use of service
Ayaan
Ayaan2mo ago
So you are going to use automatic payment without any scheduled, regularly payment right?
sunil008
sunil0082mo ago
Yes, automatic payment without any scheduled
Ayaan
Ayaan2mo ago
Alright. For this case, "BrandPay with BillingPayment" is more suitable I guess. If you want, you can use normal billingpayment, but you will get very hard screening processes on this case. There is a document (sadly only Korean supported, but as I mentioned you can use in-browser translation for this) that allows you to look at it.
sunil008
sunil0082mo ago
Sorry, but can you please share link for "BrandPay with BillingPayment" ?
Ayaan
Ayaan2mo ago
브랜드페이 JavaScript SDK | 토스페이먼츠 개발자센터
브랜드페이 JavaScript SDK를 추가하고 메서드를 사용하는 방법을 알아봅니다.
브랜드페이 API | 토스페이먼츠 개발자센터
브랜드페이에서 제공하는 API 엔드포인트(Endpoint)와 객체 정보, 파라미터, 요청 및 응답 예제를 살펴보세요.
Ayaan
Ayaan2mo ago
Please note, All Billing Payment products needs extra contract and needs the extra screening process to make contract. If you want to learn more about contract and screening, please contact contract@tosspayments.com
sunil008
sunil0082mo ago
Hi @Ayaan , Thanks for this info. I have checked this "https://docs.tosspayments.com/reference/brandpay-sdk#requestagreement%EC%95%BD%EA%B4%80-%ED%95%AD%EB%AA%A9" but We are using Flutter App for Client interface, I have try to find same method of add card using Flutter but didn;t find It. can you help me with this as well.
브랜드페이 JavaScript SDK | 토스페이먼츠 개발자센터
브랜드페이 JavaScript SDK를 추가하고 메서드를 사용하는 방법을 알아봅니다.
Ayaan
Ayaan2mo ago
Sorry it seems like Toss doesn't support flutter for brandpay yet. I suggest you to develop your brandpay system with Web frameworks and use inappwebview to load this. @sunil008
sunil008
sunil0082mo ago
@Ayaan , instead of that can I use automatic payment? So from mobile App I can call the API of Add card and send auth key to server. is this a good way instead of web view?
Ayaan
Ayaan2mo ago
It may has a risk of skipping verification steps, which known as 3DS in overseas. If you can't use webview and you should use API, yes you can, but it can be cause an issue on screening process by card companies in Korea. More for this, I suggest you to message to Toss's contract team because I am not Toss Employee and I can't make you sure.
sunil008
sunil0082mo ago
Hi @Ayaan Thank You for your support. I will check the Flutter flow else will make the webview as you suggested.
jason
jason2mo ago
혹시 한국어도 가능하신가요? @Ayaan
Ayaan
Ayaan2mo ago
네 가능합니다. 한국어 영어 가능하고, 저는 베트남어로도 조금 소통할 수 있어 편하신 언어로 문의주시면 됩니다. Yes, thank you for your understanding. Toss only supports official Flutter library just for normal transactions (not repeated), so please kindly understand that situation. Please left your message here if you need any further help. I & Toss team will review and reply for you.
토스페이먼츠 BOT
❤️ 기술문의 경험이 어떠셨나요?!
간단히 코멘트 남겨주세요! 제품 발전에 큰 힘이 됩니다.
More Posts
브랜드페이 결제 비밀번호 입력창 높이 오류브랜드 페이 결제 비밀번호 입력 창에서 사진에서와 같이 스크롤이 생깁니다. 아래에 비밀번호 입력 부분이 높이에 포함되어 발생하는 문제 같습니다. 별도로 iframe하에 스타일을 조카드번호 결제 문의카드 번호 결제 API 테스트 Request Body의 필수 값만 채우면 결제에는 문제가 없는건가요? 카드 비밀번호 앞 두자리라던가 이런 부분이 필수값이 아니여서 문의 드립니다. 지급요청 관련 문의입니다!지급요청 API를 제외한 상점 홈에서 지급 요청을 진행할 수 있는 방법이 있을까요? (구)상점관리자 페이지의 지급요청 사이트에는 들어가지지 않아서 문의합니다!결제완료 - 웹훅 누락안녕하세요 3월15일 23시29분경 발생한 결제에 대해 웹훅 발송이 누락되어 원인을 찾고있습니다. 웹훅이 누락되어 웹훅 후처리 로직이 전부 제외되어 문제가 발생했습니다 원인을 알바이버페이 issuerCode companyCode안녕하세요 테스트 환경에서 바이버페이 등록을 테스트 중인데, issuerCode 필드 값이 33으로만 세팅돼서 들어오고 있습니다. companyCode는 정상적으로 응답되고 있는포인트 현금화 API현재사용자에게 포인트를 부여하여 포인트를 현금화하는 서비스를 기획하고 있는데 토스에서 관련 API를 지원하는지 궁금합니다. 전체적인 플로우는 다음과 같습니다. 1. 특정 작업이 승인 API 호출시 발생하는 에러 처리하기수고하십니다! 오늘도 파팅! '실패내용은 error body code 와 error body message 를 사용하시면 됩니다. ' 에서 내용의 예시 문구가 무엇이 있을까요?페이팔 해외카드 커스텀 추가문의/*해외 카드 커스텀 결제수단으로 연동하기*/ `paymentMethods.on("customRequest", paymentMethodKey => { if (paymentMet빌링키 결제 시 에러 대응 문의빌링키 결제 시, 빌링키 등록은 정상적으로 되나, 특정 카드에 한에 결제를 진행하면 "대표가맹점 PG하위몰 미등록(단독가맹은 안심클릭/ISP 결제요망)"에러가 발생합니다. 어떤 상가상계좌 주문 건의 환불계좌 조회 문의가상계좌를 통해 결제된 주문에 대해서 사용자가 환불하셨는데, 실제로 어느계좌로 환불될 예정인지 알 수 있는 방법이 있을까요? 고객분이 취소하셨다고 하시는데, 환불계좌를 입력한적이