Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 456 Bytes

README.md

File metadata and controls

37 lines (24 loc) · 456 Bytes

iamport-ruby-example

Preparation

sudo gem install rails
sudo bundle

Serve

rails server

Test

Query payment details

GET localhost:3000/payment/[imp_uid]

Cancel payment

POST localhost:3000/payment

Request body (json example)

{
   "imp_uid" : "[imp_uid]",
   "merchant_uid" : "[merchant_uid]",
   "reason" : "[환불사유]",
   "cancel_request_amount" : [환불요청금액]
}