mardi 23 mai 2023

Get data from adyen

How do we get liability shift, fraud score from adyen api which is integrate into laravel 5.4 as SDK?

    try {
        $adyen = new AdyenClient();
        $params = array(
            'merchantAccount' => 'MozillionLimitedMP',
            'originalReference' => $order->transcation_id // Replace with the actual PSP reference
        );

        $paymentResult = $adyen->service->getPaymentResult($params);
        $liabilityShift = $paymentResult['paymentResult']['liabilityShift'];
        $fraudScore = $paymentResult['paymentResult']['fraudResult']['score'];

        // Process the liability shift and fraud score accordingly
    } catch (\Exception $e) {
        dd($e);
        // Handle the error
        $bankAccountStatus = ['error' => $e->getMessage()];
    }


from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/EOGt3JB
via IFTTT

Aucun commentaire:

Enregistrer un commentaire