Brand Pay Implementation Inquiry

Hi, We are a foreign business trying to make a shop in Korea. Google Translate did not seem to work in correctly translating the steps to the implementation. We are confused about the part of applying a redirect URI. We have the widget visible on our site (melotomorrow.com) but after inputting the card information, the widget spits out: "Uncaught (in promise) Error: The redirect URL is not registered. Please register on the development information page." We can speak a little Korean but not to the extent of following the guide. Thank you for your assistance.
21 Replies
멜로투모로
멜로투모로OP2y ago
Thank you so much for the reply! We understand that we have to register the redirectURL on our admin page. We don't understand what the redirect URL is and how to implement it in our code. On a side note, our company does not have a login function, so items are all purchased without logging in. HI, we really need to start selling by the 31st. If we apply for paymentWindow or paymentWidget, would we be able to access the functions by then? Again, thank you so much for your assistance
멜로투모로
멜로투모로OP2y ago
Also, with this brand pay, do we need to make our own authorization? We tried setting the redirect URI to https://google.com just to test it out, and it spit out this:
Google
Search the world's information, including webpages, images, videos and more. Google has many special features to help you find exactly what you're looking for.
멜로투모로
멜로투모로OP2y ago
No description
MrPeterss
MrPeterss2y ago
for right now, is it ok to store the access token and regresh token in cookies? sounds like security risk we don't have time to implment full auth or should we just apply for the paymentWindow? payment widget with brand pay i’m using nextjs
MrPeterss
MrPeterss2y ago
GitHub
GitHub - tosspayments/payment-widget-sample: 토스페이먼츠 결제위젯 샘플 앱입니다.
토스페이먼츠 결제위젯 샘플 앱입니다. . Contribute to tosspayments/payment-widget-sample development by creating an account on GitHub.
MrPeterss
MrPeterss2y ago
i’m following the nextjs example from this repo is this what you mean? i don’t know why we are getting the error ok does it use the same widget though? is there a js example for the brand pay? thank you what is the usage for this npm package?
MrPeterss
MrPeterss2y ago
npm
@tosspayments/brandpay-sdk
TossPayments.js Brand Pay SDK. Latest version: 1.5.2, last published: 2 months ago. Start using @tosspayments/brandpay-sdk in your project by running npm i @tosspayments/brandpay-sdk. There is 1 other project in the npm registry using @tosspayments/brandpay-sdk.
MrPeterss
MrPeterss2y ago
how can i initialize the brandpay we are still getting a 403 error I set up an api rout and added it to the developer center "Failed to load resource: the server responded with a status of 403"
토스페이먼츠 BOT
❤️ 기술문의 경험이 어떠셨나요?!
간단히 코멘트 남겨주세요! 제품 발전에 큰 힘이 됩니다.
MrPeterss
MrPeterss2y ago
hi sorry what is the best way to go about implmeneting it then
MrPeterss
MrPeterss2y ago
we are still using brandpay the weird thing is its working just payment is not getting taken like it gets all the way to the end i don't know what sdk to use there are too many sdks yes please
멜로투모로
멜로투모로OP2y ago
we don't get any toss related errors till the end everything payment related goes through
MrPeterss
MrPeterss2y ago
first we should understand what sdk we have to use we are using brandpay and i would prefer to use the widget because i don't want to implment it fully myself i don't have the time for that right now thhank you for your help ok we want the second option we don't have a login ok we only have access to brand pay at this moment, so how can i ensure we are using the payment-widget-sdk with brandpay?
MrPeterss
MrPeterss2y ago
so is it safe to follow this nextjs example. because previously you said it wasn't https://github.com/tosspayments/payment-widget-sample/tree/main/nextjs
GitHub
payment-widget-sample/nextjs at main · tosspayments/payment-widget-...
토스페이먼츠 결제위젯 샘플 앱입니다. . Contribute to tosspayments/payment-widget-sample development by creating an account on GitHub.
MrPeterss
MrPeterss2y ago
but i believe we only have access to brandpay we don't have the other yes
멜로투모로
멜로투모로OP2y ago
cp_melrotzjti
MrPeterss
MrPeterss2y ago
^ crap we are not in the best spot to be implmenting full auth right now should we apply for the other one? thats ok we can push the date but we still have to solve this asap what would you recomend? full auth? i can do it it will just be a pain the way i solved the "user identifier" problem was i just assigned a new random id and store it in the cookies of the site ok its probably best for us to just apply to the other thank you for the help
멜로투모로
멜로투모로OP2y ago
It's okay we applied for the other one thank you for your help
MrPeterss
MrPeterss2y ago
that makes sense
토스페이먼츠 BOT
토스페이먼츠 결제연동팀
빠르고 정확한 결제연동 경험을 위해, 디스코드에서는 기술 문의만 받고 있습니다. 계약 및 운영 관련 문의는 1544-7772나 홈페이지 상담을 이용해주세요. 감사합니다.

Did you find this page helpful?