Commit 268108a6 by Yvon

fix attribute access

parent d4cd8df1
...@@ -162,8 +162,7 @@ class PaymentController extends AbstractController ...@@ -162,8 +162,7 @@ class PaymentController extends AbstractController
$vads_identifier = $request->request->get("vads_identifier"); $vads_identifier = $request->request->get("vads_identifier");
foreach($recurringPayments as $rp) { foreach($recurringPayments as $rp) {
$details = json_decode($rp->getDetails(), true); if($rp->getDetails()['vads_identifier'] == $vads_identifier) {
if($details['vads_identifier'] == $vads_identifier) {
return new Response("Found matching recurring payment !"); return new Response("Found matching recurring payment !");
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment