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?
55 Replies
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"
CDM_karidtjahh
Are you using a shopping mall hosting company?
I don't quite understand your question, could you clarify it?
@Ayaan
Okay
My question was "Are you using CodeMShop for developing?"
@Arslan277"
We use test keys from this profile.
Do we need to use a different profile type for the site?
Hmm....
your mid is starting with CDM, right?
Are you using wordpress?
@Arslan277"
yes
no? we using laravel
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(...)'
<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
} else { alert(error.message); } }); } </script> when I change the MY_TEST_KEY keys to real ones, the payment window changes
This window when we use live keys

when we use test keys

can i have a test website
@Arslan277"
the code is seems like normal(not problem)
http://185.246.153.46:8011/
customer@customer1.com
password


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
currently, it is test key right?
yes
@Arslan277" can you change to another key please
ok? 1 minute
i meant the live key
when you finish please mention me
i changed the keys
@Ayaan
thanks, i will check it now
Ooooh, i see.
@Arslan277" can you change attribute "카드" to "CARD"?

ок
It is very serious problem
i change
it is same problem, right?
yes
still completely different windows for payment
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
perhaps we need to update our profile to access card payments?
i am not sure
i don't know why tosspayments ignore the method parameter
https://js.tosspayments.com/v1 perhaps there is a newer version of the library than in this link??
oh yeah this code is deprecated;
can you change to https://js.tosspayments.com/v1/payment
@Arslan277"
@유부장 평일에 출근하시면 확인해 주시면 좋겠습니다.
method값을 다 확인해보았는데도, 라이브키에서만 method가 Null인것과 같은 UI가 보이고 있다는 문의입니다.
심지어 SDK에서 호출되는 Request.do 파라미터에서도 usablepay가 SC0010으로 카드로 정상세팅되어 있는걸 확인했습니다.

혹 charset이 잘못들어가나 싶어 영문으로 호출하도록 말씀드리고 소스를 수정되었는데도 UI가 저렇게 나온다고 하네요.
+ 독립몰이라는데 MID가 CDM_이라고 해요. 이 부분도 확인해 주세요!


I change, but have some issue
the same issue, right?
yes
nono you didn't changed

i refreshed but still...
@Arslan277"
ok, i try again
i change
now
@Ayaan
and set method "카드"
I see
same issue, right?
yes
I relayed to tosspayments
you will have a response tomorrow
sorry for inconvenience, but please wait by tomorrow

yes i checked
ok, thanks for the quick help
👍
@Arslan277" it depends on the merchant setting. I have changed it. So please try it again.
❤️ 기술문의 경험이 어떠셨나요?!
간단히 코멘트 남겨주세요! 제품 발전에 큰 힘이 됩니다.
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
Well checked, I hope me and toss payments's help are helped!