Custom data from paypal JS button into webhook -


the javascript paypal button, http://paypal.github.io/javascriptbuttons/ allows custom data sent in data-custom field.

when using ipn, these data visible , usable.

however, don't find mention of custom data in webhook documentation; expect "sale completed" event receive custom data.

so question twofold:

  1. has managed data , knows field contains them?
  2. is there way simulate this, given webhook simulator not allow field entered?

webhooks not support custom data simulator. simulator provides sample of payload event. not allow other data field except url/eventtype. if want use custom data may use them , don't want use live account testing, can try sandbox account , go through flow webhook event type want send custom data.

also sample payment.sale.completed reference:

{   "id": "wh-2wr32451hc0233532-67976317fl4543714",   "create_time": "2014-10-23t17:23:52z",   "resource_type": "sale",   "event_type": "payment.sale.completed",   "summary": "a successful sale payment made $ 0.48 usd",   "resource": {     "id": "80021663de681814l",     "create_time": "2014-10-23t17:22:56z",     "update_time": "2014-10-23t17:23:04z",     "amount": {       "total": "0.48",       "currency": "usd"     },     "payment_mode": "echeck",     "state": "completed",     "protection_eligibility": "eligible",     "protection_eligibility_type": "item_not_received_eligible,unauthorized_payment_eligible",     "clearing_time": "2014-10-30t07:00:00z",     "parent_payment": "pay-1pa12106fu478450mkrets4a",     "links": [       {         "href": "https://api.paypal.com/v1/payments/sale/80021663de681814l",         "rel": "self",         "method": "get"       },       {         "href": "https://api.paypal.com/v1/payments/sale/80021663de681814l/refund",         "rel": "refund",         "method": "post"       },       {         "href": "https://api.paypal.com/v1/payments/payment/pay-1pa12106fu478450mkrets4a",         "rel": "parent_payment",         "method": "get"       }     ]   },   "links": [     {       "href": "https://api.paypal.com/v1/notifications/webhooks-events/wh-2wr32451hc0233532-67976317fl4543714",       "rel": "self",       "method": "get"     },     {       "href": "https://api.paypal.com/v1/notifications/webhooks-events/wh-2wr32451hc0233532-67976317fl4543714/resend",       "rel": "resend",       "method": "post"     }   ] } 

has managed data , knows field contains them? not supported. you may refer fields @ https://github.com/paypal/javascriptbuttons#editable-inputs

is there way simulate this, given webhook simulator not allow field entered? not supported


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -