Closed AlphaNimmi closed 1 year ago
Hi @AlphaNimmi ,
Can you share the error message with trace from your Laravel logs?
Hi @sandervanhooft
No error is showing in the log.
I actually need to get the payment status ,so i call
$payment = $mollie->payments->get($paymentId);
So for initializin mollie I call
$mollie = new MollieApiClient();
$mollie->setApiKey($api_key);
this giving the error in dashboard.
If I dont call this $mollie = new MollieApiClient(); $mollie->setApiKey($api_key); no error in mollie dashboard
Hi @AlphaNimmi ,
$paymentId = $this->session->userdata('payment_id');
as I suspect there is no active session available when handling the webhook call.mollie()
helper that takes care of wiring up the authentication. Why not use that?There's not much more I can do without an error message. Closing this for now.
NB consider grabbing the $payment_id
from the incoming request (see example here).
I have called webhook for the payment like this
And my webhook public function complete_payment() {
}
}
The code works fine and its updating .but mollie dashboard its showing Webhook failed with status code 500 (Internal Server Error)
Also webhooks works(Webhook called successfully, it took 0.1 seconds) when i commented all code $mollie = new MollieApiClient(); $mollie->setApiKey($api_key);.if i comment this code ans enter die it works