Rest api 단건결제 프로세스

Hi,

The request for Mono-settlement process is defined in the docs as following.

curl -v -X POST ‘https://kapi.kakao.com/v1/payment/ready
-H ‘Authorization: KakaoAK xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx’
–data-urlencode ‘cid=TC0ONETIME’
–data-urlencode ‘partner_order_id=partner_order_id’
–data-urlencode ‘partner_user_id=partner_user_id’
–data-urlencode ‘item_name=초코파이’
–data-urlencode ‘quantity=1’
–data-urlencode ‘total_amount=2200’
–data-urlencode ‘vat_amount=200’
–data-urlencode ‘tax_free_amount=0’
–data-urlencode ‘approval_url=https://developers.kakao.com/success’
–data-urlencode ‘fail_url=https://developers.kakao.com/fail’
–data-urlencode ‘cancel_url=https://developers.kakao.com/cancel’

This structure seems to only fit orders with just one item in the basket. How can I represent a transaction with multiple items? For example, the user is attempting to buy a chocolate pie and a soda drink. Is there a different format that can support this?

Hi, is this the best medium for these kind of questions? Is there a dedicated email I can use for support? Thanks

@jfern096 I think KakaoPay API supports multiple items per one request. And we didn’t have a dedicated email for support. sorry :disappointed:

@fintech.dev Could you review this topic?

Hello @jfern096

We don’t provide any special format for multiple items in a basket.
For example, the user added 3 items to buy a chocolate, a soda drink and a cake.
In this case, you can send POST request like ’item_name=chocolate and 2 items’, 'quantity=3’.
You can send ‘item_name’ and ‘quantity’ parameters depending on your situation.

If you would like to use Kakaopay REST API in your real service(app/web) or business,
please leave a reply and tag us @fintech.dev and we will contact you quickly.

Thank you for your question and interest.

Kakaopay Team

@michael 땡큐요~

1개의 좋아요

@michael
@fintech.dev Thanks both for the help. In regards to the question at hand, the item name support up to 100 characters which I fear is not enough to fit the different combinations of products in some large orders. Is there any issue with perhaps building the request as following.

–data-urlencode ‘item_name=DeliciousBakery.com order’ \ //The name of the merchant
–data-urlencode ‘quantity=1’ \ //always 1
–data-urlencode ‘total_amount=2200’ \ //total of all the items+tax in the basket
–data-urlencode ‘vat_amount=0’ \ //always set to 0, the tax is included in total_amount field. Is there any tax regulation in KakaoPay side that requires this to be populated with non-zero amount?

Thanks in Advance.