#Is tosspay accept domestic card?

75 messages · Page 1 of 1 (latest)

ornate gull
#

I try to create payment with some bank card like Hana bank, Kookmin Bank and other bank accounts card payment. i try to make payment with create random card number and random cvc/cvv code. But get incorrect or wrong message. How could i test those bank card?

warm crescentBOT
#
⏳ 잠시만 기다려주세요! 곧 답변드리겠습니다

오류 문의일 경우 아래 정보를 미리 전달해주시면, 빠른 답변에 도움이 됩니다.

- 주문번호(orderId) : - 문의 내용 :

(img를 함께 첨부해주시면 도움이됩니다)

dull wasp
#

You can do with correct bin number

ornate gull
#

@dull wasp I tried with many bin number. but the payment process can not complete.

#

The problem with cvv/cvc code.

dull wasp
#

Are you trying to pay with credit card or pay with tosspay?

#

@ornate gull

ornate gull
#

@dull wasp yes i try random card number

dull wasp
#

Are you paying with tosspay?

#

Credit card doesn't need CVC num

#

please screenshot where you are struggling with

ornate gull
#

@dull wasp please wait

dull wasp
#

Ok

ornate gull
#

this is my request payload

dull wasp
#

Are you using API for request payment?

ornate gull
#

i want to pay with hana bank

dull wasp
ornate gull
#

yes

dull wasp
#

Can I have a orderId and your MID please?

ornate gull
#

orderId: orderID7i
mid: tvivarepublica

dull wasp
#

Are you using test key that provided in docs?

ornate gull
#

yes

dull wasp
#

Do you have live MID for your company? Do your company has contract with tosspayments?

ornate gull
#

yes

dull wasp
#

then please test with your company's test key

#

and please let me know the orderId and MID

#

because test key that provided in docs is public, so there are too many logs going on

ornate gull
#

ok

#

please wait

ornate gull
#

@dull wasp i think my Credit card process done
but Samsungpay is not work when i click checkout link go to error page

{
"method":"간편결제",
"amount":10000,
"orderId":"{{orderIdN}}",
"orderName":"토스 티셔츠 외 2건",
"successUrl":"https://www.localhost.com/",
"flowMode": "DIRECT",
"easyPay" : "SAMSUNGPAY",
"failUrl":"https://www.errorhost.com/"
}

"mId": "tskytkomge6",
"lastTransactionKey": null,
"paymentKey": "ZDBYqJLQ1GKNbdOvk5rkj7lLGQEBKAVn07xlzmj6R9e4oPpE",
"orderId": "orderID6p",
dull wasp
ornate gull
#

after hit v1/payments/
get checkout url then if i click it take me failurl without showing any think

#

Code is PAY_PROCESS_ABORTED

#

Same for Account Transfer

dull wasp
#

give me all orderIds that you got error

#

then Tossteam will check the server log for it

ornate gull
#

for account transfer : orderIDic
For Samsungpay : orderIDq8

ornate gull
#

@dull wasp any update?

dull wasp
#

Toss team needs to investgate it, so it might be take some times

#

I think this issue will follow-up next Monday. Now it is evening(out of working hours) in Korea, so please understand us.

#

cc @coarse cloud

coarse cloud
ornate gull
#

@coarse cloud yes i do this

coarse cloud
#

I'm investigating the log regarding tskytkomge6, but it's never been called "v1/payment/confirm".

#

Would you try it again and let me know the orderId or paymentKey now?

#

@ornate gull I'll check while you're doing a test.

#

I can see your last orderId is "orderIDpk" about 10 miniutes ago, it was not also called /v1/payment/confirm.

ornate gull
#

@coarse cloud Sorry about that

i just call v1/payments/
for create payment

coarse cloud
#

That's right. The paymentKey you receieved is "mvbBAMKdpoeqRGgYO1r5P1WRMLn5AaVQnN2Eyazx0596wLj4" right?

ornate gull
#

from checkout url when i click on checkout url. it redirect me in failed url

coarse cloud
#

Ok. I'll also look into it.

ornate gull
#

{
"method":"계좌이체",
"amount":20000,
"orderId":"{{orderIdN}}",
"orderName":"Ecommerce Purches",
"successUrl":"https://localhost:8000/failurl",
"useEscrow": false,
"failUrl":"https://localhost:8000/failurl"
}

{
"mId": "tskytkomge6",
"lastTransactionKey": null,
"paymentKey": "WkABYDxNyJQbgMGZzorznjMvaOX7jrl5E1em4dKva7XL9njP",
"orderId": "orderIDpi",
"orderName": "Ecommerce Purches",
"taxExemptionAmount": 0,
"status": "READY",
"requestedAt": "2023-11-13T12:02:12+09:00",
"approvedAt": null,
"useEscrow": false,
"cultureExpense": false,
"card": null,
"virtualAccount": null,
"transfer": null,
"mobilePhone": null,
"giftCertificate": null,
"cashReceipt": null,
"cashReceipts": null,
"discount": null,
"cancels": null,
"secret": null,
"type": "NORMAL",
"easyPay": null,
"country": "KR",
"failure": null,
"isPartialCancelable": true,
"receipt": null,
"checkout": {
"url": "https://api.tosspayments.com/v1/payments/WkABYDxNyJQbgMGZzorznjMvaOX7jrl5E1em4dKva7XL9njP/checkout"
},
"currency": "KRW",
"totalAmount": 20000,
"balanceAmount": 20000,
"suppliedAmount": 18182,
"vat": 1818,
"taxFreeAmount": 0,
"method": null,
"version": "2022-11-16"
}

i try to make order again..

when i click checkout link it shows me

https://localhost:8000/failurl?code=PAY_PROCESS_ABORTED&message=Toss Payments와 계약된 결제수단이 아닙니다.&orderId=orderIDpi

this

#

@coarse cloud

coarse cloud
#

And you'll get response after authentication success, and redirected to the successUrl.
Then the successUrl contains paymentKey, orderId, and amount as query parameters as follow.

https://{ORIGIN}/success?paymentKey={PAYMENT_KEY}&orderId={ORDER_ID}&amount={AMOUNT}

ornate gull
#

we using api without sdk version.

#

we have to use api only.

#

@coarse cloud

#

without creating paymet how can i get paymentkey in /confirm..

coarse cloud
#

Oh, understood. I thought you're using sdk version as we provide only sdk version in docs now.

#

The error code you faced above is that your merchant has not contract "Bank Transfer", but your merchant has contract "Card" only. So it failed.

ornate gull
#

okay got it.

#

one more Q.
is it right way for creating order?
by calling
/v1/payment
@coarse cloud

coarse cloud
#

Yes, when you call /v1/payment and will get checkout.url as a response. checkout.url is to show the payment window for the customer.

ornate gull
#

@coarse cloud
Was tosspay provide any webhook for without "Expair"
for /v1/payments api?

coarse cloud
#

@ornate gull
What is "Expair" ?

ornate gull
#

@coarse cloud payment status. Which we get from webhook.
"EXPIRED"

#

Sorry for my misspelling.

coarse cloud
#

Oh got it. "EXPIRED" could be sent when there is no action after the payment window popped up.

ornate gull
#

yeah i know. our system is depends on webhook response. from webhook we get only "EXPIRED" status for
"v1/payment " api.

Suppose we hit this api then go to the checkout url. complete payment then did not call "confirm" api.
In here we will wait for the webhook responded. if get response then our system will call confirm api.

can we get any other status in webhook?

#

@coarse cloud

coarse cloud
#

For example, the blue colored status of the flow is the status which webhook called above the link.
So if you do not call confirm api, then you'll get "EXPIRED" only. The other status are received after calling either "confirm" api or "cancel" api.