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" : [환불요청금액]
}