Skip to content

paymentDetail API Response

Ashwini Chaudhary edited this page Aug 15, 2015 · 2 revisions

Instamojo Documentation does not specify the response we get from the paymentDetail([PAYMENT_ID]) API call.

Here's a vardump of the response.

array(24) {
  ["payment_id"] => string(20) "MOJO5815000CXXXXX279"
  ["quantity"] => int(1)
  ["status"] => string(6) "Credit"
  ["link_slug"] => string(44) "XXX...XXX"
  ["link_title"] => string(27) "XXX...XXX"
  ["buyer_name"] => string(13) "[NAME]"
  ["buyer_phone"] => string(10) "[NUMBER]"
  ["buyer_email"] => string(25) "[EMAIL]"
  ["currency"] => string(3) "INR"
  ["unit_price"] => string(5) "10.00"
  ["amount"] => string(5) "10.00"
  ["fees"] => string(4) "0.19"
  ["shipping_address"] => NULL
  ["shipping_city"] => NULL
  ["shipping_state"] => NULL
  ["shipping_zip"] => NULL
  ["shipping_country"] => NULL
  ["discount_code"] => NULL
  ["discount_amount_off"] => NULL
  ["variants"] => array(0) {
  }
  ["custom_fields"] => array(2) {
    ["Field_16003"] => array(4) {
      ["required"] => bool(true)
      ["type"] => string(4) "char"
      ["value"] => string(3) "[VALUE]"
      ["label"] => string(12) "[FIELD NAME]"
    }
    ["Field_38271"] => array(4) {
      ["required"] => bool(true)
      ["type"] => string(4) "char"
      ["value"] => string(9) "[VALUE]"
      ["label"] => string(14) "[FIELD NAME]"
    }
  }
  ["affiliate_id"] => NULL
  ["affiliate_commission"] => string(4) "0.00"
  ["created_at"] => string(24) "2015-08-15T16:33:08.974Z"
}
Clone this wiki locally