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?
12 Replies
CDM_karidtjahh
I don't quite understand your question, could you clarify it?
@Ayaan
We use test keys from this profile.
Do we need to use a different profile type for the site?
yes
no? we using laravel
<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

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
yes
ok? 1 minute
i changed the keys
@Ayaan
ок
i change
yes
still completely different windows for payment
perhaps we need to update our profile to access card payments?
https://js.tosspayments.com/v1 perhaps there is a newer version of the library than in this link??
I change, but have some issue
yes
ok, i try again
i change
now
@Ayaan
and set method "카드"
yes

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