You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.
The current webhook event response does not have provision to return any meta information.
It would be nice to have a property/field for meta information when the payment is created for eg:
'meta' => [
'cart_id' => 'SOMECARTID'
]
maybe via a setMeta()
publicfunctionsetMeta(array$meta)
{
$this->meta = array_merge($this->meta, $meta);
}
publicfunctiongetMeta()
{
return$this->meta;
}
/** * Can then be used to add meta info when creating payment * And then when webhook event response is returned * This meta info is returned in the event response */$this->setMeta([
'cart_id' => 'SOMECARTID',
'order_no' => '123456'
]);
And then when a webhook is subscribed for eg: PAYMENT.CAPTURE.COMPLETED the webhook event response returns this meta information within the response.
This would help in tracking down the record (database) corresponding to the captured event easily.
Currently the tracking has to be done via the payment/resource id returned by the webhook event response - which means to create one more index on the database on the payment_id column.
Ability to add and get meta information in webhook event response will help simplify the process of reconciliation.
The text was updated successfully, but these errors were encountered:
General information
This is not an issue but a request.
The current webhook event response does not have provision to return any meta information.
It would be nice to have a property/field for meta information when the payment is created for eg:
maybe via a
setMeta()
And then when a webhook is subscribed for eg:
PAYMENT.CAPTURE.COMPLETED
the webhook event response returns this meta information within the response.This would help in tracking down the record (database) corresponding to the captured event easily.
Currently the tracking has to be done via the payment/resource id returned by the webhook event response - which means to create one more index on the database on the
payment_id
column.Ability to add and get meta information in webhook event response will help simplify the process of reconciliation.
The text was updated successfully, but these errors were encountered: