Arslan277"
Arslan277"2y ago

Problems with testing

Good afternoon, colleagues. A question arose during the integration of your payment service on the site. When using a test key and when using a live key, completely different iframe windows appear. Is this normal? Also, when using different api keys, completely different payment methods come out, for some reason visa and mastercard are not available for my test key. If necessary, I can specify my test keys. Also, the question arose whether there are any universal test profiles for making payments, or is it necessary to use real data from other payment services?
No description
No description
No description
55 Replies
Ayaan
Ayaan2y ago
1. No, it is impossible. Can you share full code for requesting payment? 2. Yeah You have to make special contract for use some of special methods(like foreign card). If your client had a special contract, please let us know with your MID - then we can check for you 3. You must use real payment profile for testing. We don't have universal profiles. @Arslan277"
Arslan277"
Arslan277"2y ago
CDM_karidtjahh
Ayaan
Ayaan2y ago
Are you using a shopping mall hosting company?
Arslan277"
Arslan277"2y ago
I don't quite understand your question, could you clarify it? @Ayaan
Ayaan
Ayaan2y ago
Okay My question was "Are you using CodeMShop for developing?" @Arslan277"
Arslan277"
Arslan277"2y ago
We use test keys from this profile. Do we need to use a different profile type for the site?
Ayaan
Ayaan2y ago
Hmm.... your mid is starting with CDM, right? Are you using wordpress? @Arslan277"
Arslan277"
Arslan277"2y ago
yes no? we using laravel
Ayaan
Ayaan2y ago
I am not sure what is your problem; because CDM is codemshop's code. that means you using CodeMShop Plugin for Wordpress. @Arslan277" Okay, the mid problem is have to checking with tosspayments, I want to operating now for this problem:
A question arose during the integration of your payment service on the site. When using a test key and when using a live key, completely different iframe windows appear. Is this normal?
Can you share full code for requesting payment js? like tossPayments.requestPayment(...)'
Arslan277"
Arslan277"2y ago
<script src="https://js.tosspayments.com/v1"></script> <script> let tossPayments = TossPayments("MY_TEST_KEY"); function pay(method, amount, orderId, successUrl, failUrl) { let jsons = { "amount": amount, "orderId": 'kntc-'+orderId, "orderName": "토스 티셔츠 외 2건", "successUrl": successUrl, "failUrl": failUrl, "cardCompany": null, "cardInstallmentPlan": null, "maxCardInstallmentPlan": null, "useCardPoint": false, "customerName": "박토스", "customerEmail": null, "customerMobilePhone": null, "taxFreeAmount": null, "useInternationalCardOnly": false, "flowMode": "DEFAULT", "discountCode": null, "appScheme": null }; console.log(jsons); tossPayments.requestPayment(method, jsons) .catch(function(error) { if (error.code === "USER_CANCEL") {
} else { alert(error.message); } }); } </script> when I change the MY_TEST_KEY keys to real ones, the payment window changes
Arslan277"
Arslan277"2y ago
This window when we use live keys
No description
Arslan277"
Arslan277"2y ago
when we use test keys
No description
Ayaan
Ayaan2y ago
can i have a test website @Arslan277" the code is seems like normal(not problem)
Arslan277"
Arslan277"2y ago
http://185.246.153.46:8011/ customer@customer1.com password
Arslan277"
Arslan277"2y ago
No description
Arslan277"
Arslan277"2y ago
No description
Arslan277"
Arslan277"2y ago
test keys are now installed How to check write I will change to real and the payment window will change after the page is updated
Ayaan
Ayaan2y ago
currently, it is test key right?
Arslan277"
Arslan277"2y ago
yes
Ayaan
Ayaan2y ago
@Arslan277" can you change to another key please
Arslan277"
Arslan277"2y ago
ok? 1 minute
Ayaan
Ayaan2y ago
i meant the live key when you finish please mention me
Arslan277"
Arslan277"2y ago
i changed the keys @Ayaan
Ayaan
Ayaan2y ago
thanks, i will check it now Ooooh, i see.
Ayaan
Ayaan2y ago
@Arslan277" can you change attribute "카드" to "CARD"?
No description
Arslan277"
Arslan277"2y ago
ок
Ayaan
Ayaan2y ago
It is very serious problem
Arslan277"
Arslan277"2y ago
i change
Ayaan
Ayaan2y ago
it is same problem, right?
Arslan277"
Arslan277"2y ago
yes still completely different windows for payment
Ayaan
Ayaan2y ago
ok i will explain what is the problem this window is shown when method parameter is null or invalid and this window shown when the method parameter is "카드" or "CARD" so i tried the logging method parameter and they haven't problem
Arslan277"
Arslan277"2y ago
perhaps we need to update our profile to access card payments?
Ayaan
Ayaan2y ago
i am not sure i don't know why tosspayments ignore the method parameter
Arslan277"
Arslan277"2y ago
https://js.tosspayments.com/v1 perhaps there is a newer version of the library than in this link??
Ayaan
Ayaan2y ago
oh yeah this code is deprecated; can you change to https://js.tosspayments.com/v1/payment @Arslan277"
Ayaan
Ayaan2y ago
@유부장 평일에 출근하시면 확인해 주시면 좋겠습니다. method값을 다 확인해보았는데도, 라이브키에서만 method가 Null인것과 같은 UI가 보이고 있다는 문의입니다. 심지어 SDK에서 호출되는 Request.do 파라미터에서도 usablepay가 SC0010으로 카드로 정상세팅되어 있는걸 확인했습니다.
No description
Ayaan
Ayaan2y ago
혹 charset이 잘못들어가나 싶어 영문으로 호출하도록 말씀드리고 소스를 수정되었는데도 UI가 저렇게 나온다고 하네요. + 독립몰이라는데 MID가 CDM_이라고 해요. 이 부분도 확인해 주세요!
No description
Ayaan
Ayaan2y ago
No description
Arslan277"
Arslan277"2y ago
I change, but have some issue
Ayaan
Ayaan2y ago
the same issue, right?
Arslan277"
Arslan277"2y ago
yes
Ayaan
Ayaan2y ago
nono you didn't changed
Ayaan
Ayaan2y ago
No description
Ayaan
Ayaan2y ago
i refreshed but still... @Arslan277"
Arslan277"
Arslan277"2y ago
ok, i try again i change now @Ayaan and set method "카드"
Ayaan
Ayaan2y ago
I see same issue, right?
Arslan277"
Arslan277"2y ago
yes
Ayaan
Ayaan2y ago
I relayed to tosspayments you will have a response tomorrow sorry for inconvenience, but please wait by tomorrow
Arslan277"
Arslan277"2y ago
No description
Ayaan
Ayaan2y ago
yes i checked
Arslan277"
Arslan277"2y ago
ok, thanks for the quick help 👍
Kimoon Lee
Kimoon Lee2y ago
@Arslan277" it depends on the merchant setting. I have changed it. So please try it again.
토스페이먼츠 BOT
❤️ 기술문의 경험이 어떠셨나요?!
간단히 코멘트 남겨주세요! 제품 발전에 큰 힘이 됩니다.
Arslan277"
Arslan277"2y ago
Good day colleagues. Our leader gave us another account where the settings allow us to use the library and everything worked. Thanks a lot for the quick response. We look forward to further cooperation. Thank you. @Ayaan
Ayaan
Ayaan2y ago
Well checked, I hope me and toss payments's help are helped!