Guest User

Sub Success

a guest
Jan 1st, 2019
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 20.92 KB | None | 0 0
  1. /* 1 */
  2. {
  3.     "_id" : ObjectId("5c2b082b7680699e780610ef"),
  4.     "createdAt" : ISODate("2018-12-28T13:31:57.325Z"),
  5.     "updatedAt" : ISODate("2018-12-28T13:31:57.325Z"),
  6.     "signature" : "9cc25bb60e7622d263c3e672619f2531fca91ae6cd0e5aa77d8b5487c86fd877",
  7.     "razorPayBody" : {
  8.         "entity" : "event",
  9.         "account_id" : "acc_BaKtSrzkVIcegp",
  10.         "event" : "payment.captured",
  11.         "contains" : [
  12.             "payment"
  13.         ],
  14.         "payload" : {
  15.             "payment" : {
  16.                 "entity" : {
  17.                     "id" : "pay_Beg2OGSn3xCU9q",
  18.                     "entity" : "payment",
  19.                     "amount" : 122,
  20.                     "currency" : "INR",
  21.                     "status" : "captured",
  22.                     "order_id" : "order_Beg2FvMMrg9uDi",
  23.                     "invoice_id" : "inv_Beg2FsjxSNQHsW",
  24.                     "international" : false,
  25.                     "method" : "card",
  26.                     "amount_refunded" : 0,
  27.                     "refund_status" : null,
  28.                     "captured" : true,
  29.                     "description" : "Plan 3",
  30.                     "card_id" : "card_Beg2PSBeajxy0A",
  31.                     "card" : {
  32.                         "id" : "card_Beg2PSBeajxy0A",
  33.                         "entity" : "card",
  34.                         "name" : "Kumar Swamy",
  35.                         "last4" : "5558",
  36.                         "network" : "MasterCard",
  37.                         "type" : "credit",
  38.                         "issuer" : "KARB",
  39.                         "international" : false,
  40.                         "emi" : false
  41.                     },
  42.                     "bank" : null,
  43.                     "wallet" : null,
  44.                     "vpa" : null,
  45.                     "email" : "rohitdalal11@code-brew.com",
  46.                     "contact" : "+919599459741",
  47.                     "customer_id" : "cust_BcHdvjtZGJCs6a",
  48.                     "notes" : {
  49.                         "serverSubscriptionId" : "5c2b0818ff9fec2935f6cd73"
  50.                     },
  51.                     "fee" : 5,
  52.                     "tax" : 0,
  53.                     "error_code" : null,
  54.                     "error_description" : null,
  55.                     "created_at" : 1546324001
  56.                 }
  57.             }
  58.         },
  59.         "created_at" : 1546324003
  60.     },
  61.     "responseSent" : {
  62.         "success" : 0,
  63.         "statusCode" : 500,
  64.         "msg" : "event is not defined"
  65.     },
  66.     "resExtraDetails" : {},
  67.     "status" : "Error500",
  68.     "event" : "payment.captured",
  69.     "__v" : 0
  70. }
  71.  
  72. /* 2 */
  73. {
  74.     "_id" : ObjectId("5c2b082b7680699e780610f0"),
  75.     "createdAt" : ISODate("2018-12-28T13:31:57.325Z"),
  76.     "updatedAt" : ISODate("2018-12-28T13:31:57.325Z"),
  77.     "signature" : "222a88d756f217cab75351cbfdddd3ae0fcc78666a742f606bd30ac19cd895a1",
  78.     "razorPayBody" : {
  79.         "entity" : "event",
  80.         "account_id" : "acc_BaKtSrzkVIcegp",
  81.         "event" : "payment.authorized",
  82.         "contains" : [
  83.             "payment"
  84.         ],
  85.         "payload" : {
  86.             "payment" : {
  87.                 "entity" : {
  88.                     "id" : "pay_Beg2OGSn3xCU9q",
  89.                     "entity" : "payment",
  90.                     "amount" : 122,
  91.                     "currency" : "INR",
  92.                     "status" : "authorized",
  93.                     "order_id" : "order_Beg2FvMMrg9uDi",
  94.                     "invoice_id" : "inv_Beg2FsjxSNQHsW",
  95.                     "international" : false,
  96.                     "method" : "card",
  97.                     "amount_refunded" : 0,
  98.                     "refund_status" : null,
  99.                     "captured" : false,
  100.                     "description" : "Plan 3",
  101.                     "card_id" : "card_Beg2PSBeajxy0A",
  102.                     "card" : {
  103.                         "id" : "card_Beg2PSBeajxy0A",
  104.                         "entity" : "card",
  105.                         "name" : "Kumar Swamy",
  106.                         "last4" : "5558",
  107.                         "network" : "MasterCard",
  108.                         "type" : "credit",
  109.                         "issuer" : "KARB",
  110.                         "international" : false,
  111.                         "emi" : false
  112.                     },
  113.                     "bank" : null,
  114.                     "wallet" : null,
  115.                     "vpa" : null,
  116.                     "email" : "rohitdalal11@code-brew.com",
  117.                     "contact" : "+919599459741",
  118.                     "customer_id" : "cust_BcHdvjtZGJCs6a",
  119.                     "notes" : {
  120.                         "serverSubscriptionId" : "5c2b0818ff9fec2935f6cd73"
  121.                     },
  122.                     "fee" : null,
  123.                     "tax" : null,
  124.                     "error_code" : null,
  125.                     "error_description" : null,
  126.                     "created_at" : 1546324001
  127.                 }
  128.             }
  129.         },
  130.         "created_at" : 1546324003
  131.     },
  132.     "responseSent" : {
  133.         "success" : 0,
  134.         "statusCode" : 500,
  135.         "msg" : "event is not defined"
  136.     },
  137.     "resExtraDetails" : {},
  138.     "status" : "Error500",
  139.     "event" : "payment.authorized",
  140.     "__v" : 0
  141. }
  142.  
  143. /* 3 */
  144. {
  145.     "_id" : ObjectId("5c2b082b7680699e780610f1"),
  146.     "createdAt" : ISODate("2018-12-28T13:31:57.325Z"),
  147.     "updatedAt" : ISODate("2018-12-28T13:31:57.325Z"),
  148.     "signature" : "da2a047f55bba2a38239e66bbeb0073ec090f1cffc67cccf27b7f3c8c12b24d2",
  149.     "razorPayBody" : {
  150.         "entity" : "event",
  151.         "account_id" : "acc_BaKtSrzkVIcegp",
  152.         "event" : "subscription.activated",
  153.         "contains" : [
  154.             "subscription",
  155.             "payment"
  156.         ],
  157.         "payload" : {
  158.             "subscription" : {
  159.                 "entity" : {
  160.                     "id" : "sub_Beg2FpSOkDt0tG",
  161.                     "entity" : "subscription",
  162.                     "plan_id" : "plan_BaNuwggBTArPaA",
  163.                     "customer_id" : "cust_BcHdvjtZGJCs6a",
  164.                     "status" : "active",
  165.                     "current_start" : 1546324001,
  166.                     "current_end" : 1548959400,
  167.                     "ended_at" : null,
  168.                     "quantity" : 1,
  169.                     "notes" : [],
  170.                     "charge_at" : 1548959400,
  171.                     "start_at" : 1546324001,
  172.                     "end_at" : 1548959400,
  173.                     "auth_attempts" : 0,
  174.                     "total_count" : 2,
  175.                     "paid_count" : 1,
  176.                     "customer_notify" : true,
  177.                     "created_at" : 1546323992
  178.                 }
  179.             },
  180.             "payment" : {
  181.                 "entity" : {
  182.                     "id" : "pay_Beg2OGSn3xCU9q",
  183.                     "entity" : "payment",
  184.                     "amount" : 122,
  185.                     "currency" : "INR",
  186.                     "status" : "captured",
  187.                     "order_id" : "order_Beg2FvMMrg9uDi",
  188.                     "invoice_id" : "inv_Beg2FsjxSNQHsW",
  189.                     "international" : false,
  190.                     "method" : "card",
  191.                     "amount_refunded" : 0,
  192.                     "refund_status" : null,
  193.                     "captured" : true,
  194.                     "description" : "Plan 3",
  195.                     "card_id" : "card_Beg2PSBeajxy0A",
  196.                     "card" : {
  197.                         "id" : "card_Beg2PSBeajxy0A",
  198.                         "entity" : "card",
  199.                         "name" : "Kumar Swamy",
  200.                         "last4" : "5558",
  201.                         "network" : "MasterCard",
  202.                         "type" : "credit",
  203.                         "issuer" : "KARB",
  204.                         "international" : false,
  205.                         "emi" : false
  206.                     },
  207.                     "bank" : null,
  208.                     "wallet" : null,
  209.                     "vpa" : null,
  210.                     "email" : "rohitdalal11@code-brew.com",
  211.                     "contact" : "+919599459741",
  212.                     "customer_id" : "cust_BcHdvjtZGJCs6a",
  213.                     "notes" : {
  214.                         "serverSubscriptionId" : "5c2b0818ff9fec2935f6cd73"
  215.                     },
  216.                     "fee" : 5,
  217.                     "tax" : 0,
  218.                     "error_code" : null,
  219.                     "error_description" : null,
  220.                     "created_at" : 1546324001
  221.                 }
  222.             }
  223.         },
  224.         "created_at" : 1546324003
  225.     },
  226.     "responseSent" : {
  227.         "success" : 0,
  228.         "statusCode" : 500,
  229.         "msg" : "event is not defined"
  230.     },
  231.     "resExtraDetails" : {},
  232.     "status" : "Error500",
  233.     "event" : "subscription.activated",
  234.     "__v" : 0
  235. }
  236.  
  237. /* 4 */
  238. {
  239.     "_id" : ObjectId("5c2b082b7680699e780610f2"),
  240.     "createdAt" : ISODate("2018-12-28T13:31:57.325Z"),
  241.     "updatedAt" : ISODate("2018-12-28T13:31:57.325Z"),
  242.     "signature" : "2517c0b0e0bcda899b837d66f5ec27eeea8433a918044f90ad8c44b3aea78f4f",
  243.     "razorPayBody" : {
  244.         "entity" : "event",
  245.         "account_id" : "acc_BaKtSrzkVIcegp",
  246.         "event" : "invoice.paid",
  247.         "contains" : [
  248.             "payment",
  249.             "order",
  250.             "invoice"
  251.         ],
  252.         "payload" : {
  253.             "payment" : {
  254.                 "entity" : {
  255.                     "id" : "pay_Beg2OGSn3xCU9q",
  256.                     "entity" : "payment",
  257.                     "amount" : 122,
  258.                     "currency" : "INR",
  259.                     "status" : "captured",
  260.                     "order_id" : "order_Beg2FvMMrg9uDi",
  261.                     "invoice_id" : "inv_Beg2FsjxSNQHsW",
  262.                     "international" : false,
  263.                     "method" : "card",
  264.                     "amount_refunded" : 0,
  265.                     "refund_status" : null,
  266.                     "captured" : true,
  267.                     "description" : "Plan 3",
  268.                     "card_id" : "card_Beg2PSBeajxy0A",
  269.                     "card" : {
  270.                         "id" : "card_Beg2PSBeajxy0A",
  271.                         "entity" : "card",
  272.                         "name" : "Kumar Swamy",
  273.                         "last4" : "5558",
  274.                         "network" : "MasterCard",
  275.                         "type" : "credit",
  276.                         "issuer" : "KARB",
  277.                         "international" : false,
  278.                         "emi" : false
  279.                     },
  280.                     "bank" : null,
  281.                     "wallet" : null,
  282.                     "vpa" : null,
  283.                     "email" : "rohitdalal11@code-brew.com",
  284.                     "contact" : "+919599459741",
  285.                     "customer_id" : "cust_BcHdvjtZGJCs6a",
  286.                     "notes" : {
  287.                         "serverSubscriptionId" : "5c2b0818ff9fec2935f6cd73"
  288.                     },
  289.                     "fee" : 5,
  290.                     "tax" : 0,
  291.                     "error_code" : null,
  292.                     "error_description" : null,
  293.                     "created_at" : 1546324001
  294.                 }
  295.             },
  296.             "order" : {
  297.                 "entity" : {
  298.                     "id" : "order_Beg2FvMMrg9uDi",
  299.                     "entity" : "order",
  300.                     "amount" : 122,
  301.                     "amount_paid" : 122,
  302.                     "amount_due" : 0,
  303.                     "currency" : "INR",
  304.                     "receipt" : null,
  305.                     "offer_id" : null,
  306.                     "offers" : {
  307.                         "entity" : "collection",
  308.                         "count" : 0,
  309.                         "items" : []
  310.                     },
  311.                     "status" : "paid",
  312.                     "attempts" : 1,
  313.                     "notes" : [],
  314.                     "created_at" : 1546323992
  315.                 }
  316.             },
  317.             "invoice" : {
  318.                 "entity" : {
  319.                     "id" : "inv_Beg2FsjxSNQHsW",
  320.                     "entity" : "invoice",
  321.                     "receipt" : null,
  322.                     "invoice_number" : null,
  323.                     "customer_id" : "cust_BcHdvjtZGJCs6a",
  324.                     "customer_details" : {
  325.                         "id" : "cust_BcHdvjtZGJCs6a",
  326.                         "name" : null,
  327.                         "email" : "rohitdalal11@code-brew.com",
  328.                         "contact" : "+919599459741",
  329.                         "gstin" : null,
  330.                         "billing_address" : null,
  331.                         "shipping_address" : null,
  332.                         "customer_name" : null,
  333.                         "customer_email" : "rohitdalal11@code-brew.com",
  334.                         "customer_contact" : "+919599459741"
  335.                     },
  336.                     "order_id" : "order_Beg2FvMMrg9uDi",
  337.                     "subscription_id" : "sub_Beg2FpSOkDt0tG",
  338.                     "payment_id" : "pay_Beg2OGSn3xCU9q",
  339.                     "status" : "paid",
  340.                     "expire_by" : null,
  341.                     "issued_at" : 1546323992,
  342.                     "paid_at" : 1546324003,
  343.                     "cancelled_at" : null,
  344.                     "expired_at" : null,
  345.                     "sms_status" : null,
  346.                     "email_status" : null,
  347.                     "date" : 1546323992,
  348.                     "terms" : null,
  349.                     "partial_payment" : false,
  350.                     "gross_amount" : 122,
  351.                     "tax_amount" : 0,
  352.                     "taxable_amount" : 122,
  353.                     "amount" : 122,
  354.                     "amount_paid" : 122,
  355.                     "amount_due" : 0,
  356.                     "first_payment_min_amount" : null,
  357.                     "currency" : "INR",
  358.                     "description" : null,
  359.                     "notes" : [],
  360.                     "comment" : null,
  361.                     "short_url" : "https://rzp.io/i/LR9WcN2",
  362.                     "view_less" : true,
  363.                     "billing_start" : null,
  364.                     "billing_end" : null,
  365.                     "type" : "invoice",
  366.                     "group_taxes_discounts" : false,
  367.                     "supply_state_code" : null,
  368.                     "user_id" : null,
  369.                     "created_at" : 1546323992
  370.                 }
  371.             }
  372.         },
  373.         "created_at" : 1546324003
  374.     },
  375.     "responseSent" : {
  376.         "success" : 0,
  377.         "statusCode" : 500,
  378.         "msg" : "event is not defined"
  379.     },
  380.     "resExtraDetails" : {},
  381.     "status" : "Error500",
  382.     "event" : "invoice.paid",
  383.     "__v" : 0
  384. }
  385.  
  386. /* 5 */
  387. {
  388.     "_id" : ObjectId("5c2b082c7680699e780610f3"),
  389.     "createdAt" : ISODate("2019-01-01T06:26:52.172Z"),
  390.     "updatedAt" : ISODate("2019-01-01T06:26:52.172Z"),
  391.     "signature" : "a1494586c3a91348790aacf6aa2ba44b9a9ec53467af9044c7b0e5d4ddbaf0c3",
  392.     "razorPayBody" : {
  393.         "entity" : "event",
  394.         "account_id" : "acc_BaKtSrzkVIcegp",
  395.         "event" : "subscription.charged",
  396.         "contains" : [
  397.             "subscription",
  398.             "payment"
  399.         ],
  400.         "payload" : {
  401.             "subscription" : {
  402.                 "entity" : {
  403.                     "id" : "sub_Beg2FpSOkDt0tG",
  404.                     "entity" : "subscription",
  405.                     "plan_id" : "plan_BaNuwggBTArPaA",
  406.                     "customer_id" : "cust_BcHdvjtZGJCs6a",
  407.                     "status" : "active",
  408.                     "current_start" : 1546324001,
  409.                     "current_end" : 1548959400,
  410.                     "ended_at" : null,
  411.                     "quantity" : 1,
  412.                     "notes" : [],
  413.                     "charge_at" : 1548959400,
  414.                     "start_at" : 1546324001,
  415.                     "end_at" : 1548959400,
  416.                     "auth_attempts" : 0,
  417.                     "total_count" : 2,
  418.                     "paid_count" : 1,
  419.                     "customer_notify" : true,
  420.                     "created_at" : 1546323992
  421.                 }
  422.             },
  423.             "payment" : {
  424.                 "entity" : {
  425.                     "id" : "pay_Beg2OGSn3xCU9q",
  426.                     "entity" : "payment",
  427.                     "amount" : 122,
  428.                     "currency" : "INR",
  429.                     "status" : "captured",
  430.                     "order_id" : "order_Beg2FvMMrg9uDi",
  431.                     "invoice_id" : "inv_Beg2FsjxSNQHsW",
  432.                     "international" : false,
  433.                     "method" : "card",
  434.                     "amount_refunded" : 0,
  435.                     "refund_status" : null,
  436.                     "captured" : true,
  437.                     "description" : "Plan 3",
  438.                     "card_id" : "card_Beg2PSBeajxy0A",
  439.                     "card" : {
  440.                         "id" : "card_Beg2PSBeajxy0A",
  441.                         "entity" : "card",
  442.                         "name" : "Kumar Swamy",
  443.                         "last4" : "5558",
  444.                         "network" : "MasterCard",
  445.                         "type" : "credit",
  446.                         "issuer" : "KARB",
  447.                         "international" : false,
  448.                         "emi" : false
  449.                     },
  450.                     "bank" : null,
  451.                     "wallet" : null,
  452.                     "vpa" : null,
  453.                     "email" : "rohitdalal11@code-brew.com",
  454.                     "contact" : "+919599459741",
  455.                     "customer_id" : "cust_BcHdvjtZGJCs6a",
  456.                     "notes" : {
  457.                         "serverSubscriptionId" : "5c2b0818ff9fec2935f6cd73"
  458.                     },
  459.                     "fee" : 5,
  460.                     "tax" : 0,
  461.                     "error_code" : null,
  462.                     "error_description" : null,
  463.                     "created_at" : 1546324001
  464.                 }
  465.             }
  466.         },
  467.         "created_at" : 1546324003
  468.     },
  469.     "responseSent" : {
  470.         "success" : 0,
  471.         "statusCode" : 400,
  472.         "msg" : "Server Subscription id is invalid"
  473.     },
  474.     "status" : "SerSubscriptionInvalid",
  475.     "event" : "subscription.charged",
  476.     "__v" : 0
  477. }
  478.  
  479. /* 6 */
  480. {
  481.     "_id" : ObjectId("5c2b082d7680699e780610f4"),
  482.     "createdAt" : ISODate("2018-12-28T13:31:57.325Z"),
  483.     "updatedAt" : ISODate("2018-12-28T13:31:57.325Z"),
  484.     "signature" : "69e2e87599724575b31edc70741565eb2108cd8b748aca36cd40754a1864f876",
  485.     "razorPayBody" : {
  486.         "entity" : "event",
  487.         "account_id" : "acc_BaKtSrzkVIcegp",
  488.         "event" : "order.paid",
  489.         "contains" : [
  490.             "payment",
  491.             "order"
  492.         ],
  493.         "payload" : {
  494.             "payment" : {
  495.                 "entity" : {
  496.                     "id" : "pay_Beg2OGSn3xCU9q",
  497.                     "entity" : "payment",
  498.                     "amount" : 122,
  499.                     "currency" : "INR",
  500.                     "status" : "captured",
  501.                     "order_id" : "order_Beg2FvMMrg9uDi",
  502.                     "invoice_id" : "inv_Beg2FsjxSNQHsW",
  503.                     "international" : false,
  504.                     "method" : "card",
  505.                     "amount_refunded" : 0,
  506.                     "refund_status" : null,
  507.                     "captured" : true,
  508.                     "description" : "Plan 3",
  509.                     "card_id" : "card_Beg2PSBeajxy0A",
  510.                     "card" : {
  511.                         "id" : "card_Beg2PSBeajxy0A",
  512.                         "entity" : "card",
  513.                         "name" : "Kumar Swamy",
  514.                         "last4" : "5558",
  515.                         "network" : "MasterCard",
  516.                         "type" : "credit",
  517.                         "issuer" : "KARB",
  518.                         "international" : false,
  519.                         "emi" : false
  520.                     },
  521.                     "bank" : null,
  522.                     "wallet" : null,
  523.                     "vpa" : null,
  524.                     "email" : "rohitdalal11@code-brew.com",
  525.                     "contact" : "+919599459741",
  526.                     "customer_id" : "cust_BcHdvjtZGJCs6a",
  527.                     "notes" : {
  528.                         "serverSubscriptionId" : "5c2b0818ff9fec2935f6cd73"
  529.                     },
  530.                     "fee" : 5,
  531.                     "tax" : 0,
  532.                     "error_code" : null,
  533.                     "error_description" : null,
  534.                     "created_at" : 1546324001
  535.                 }
  536.             },
  537.             "order" : {
  538.                 "entity" : {
  539.                     "id" : "order_Beg2FvMMrg9uDi",
  540.                     "entity" : "order",
  541.                     "amount" : 122,
  542.                     "amount_paid" : 122,
  543.                     "amount_due" : 0,
  544.                     "currency" : "INR",
  545.                     "receipt" : null,
  546.                     "offer_id" : null,
  547.                     "status" : "paid",
  548.                     "attempts" : 1,
  549.                     "notes" : [],
  550.                     "created_at" : 1546323992
  551.                 }
  552.             }
  553.         },
  554.         "created_at" : 1546324003
  555.     },
  556.     "responseSent" : {
  557.         "success" : 0,
  558.         "statusCode" : 500,
  559.         "msg" : "event is not defined"
  560.     },
  561.     "resExtraDetails" : {},
  562.     "status" : "Error500",
  563.     "event" : "order.paid",
  564.     "__v" : 0
  565. }
Add Comment
Please, Sign In to add comment