mollie / mollie-api-php

Mollie API client for PHP
http://www.mollie.com
BSD 2-Clause "Simplified" License
553 stars 191 forks source link

Feature request: Call webhook informatie for payment(s) #643

Closed erikkraijenoord closed 1 year ago

erikkraijenoord commented 2 years ago

Specifications

Read webhook events from a payment with transaction ID to determain if something hasn't worked correctly or stopped for some reason. The only possible way at this moment is on the user account itself and we do not have access to our clients only by oAuth2.

Describe the issue

We would like to be able to read the webhook events on a payment, this way we can show and/or read the information behind it. For example (my 2-cents):


$mollie = new \Mollie\Api\MollieApiClient();
$mollie->setAccessToken('access_xxxxxxxxxx');

try {

    $webhook = $mollie->webhooks->get('tr_xxxxx', /*attr*/);
    print_r($webhook); // Webhook events
}
catch(\Mollie\Api\Exceptions\ApiException $e) {
    die( $e->getMessage() );
}
sandervanhooft commented 2 years ago

Marking this as a feature request.

sandervanhooft commented 1 year ago

This feature request has found its way to Mollie's product teams and will be further investigated. Closing this issue here.