Вы не авторизованы для просмотра этой страницы. Транзакция не была обработана - PullRequest
0 голосов
/ 18 февраля 2020

Мне необходимо интегрировать платежный шлюз CyberSource с laravel. Когда я нажимаю на оформление заказа, оно показывает ошибку ниже.

**You are not authorized to view this page. The transaction has not been processed.
If the problem persists please report your problem and quote the following Error Reference Number:
E-5EFB6D6C58554846ACC1CB9CB1D82558**

Это форма, которую я отправил



     $request_form_data = [
                        "access_key" => $this->access_key,
                        "profile_id" => $this->profile_id,
                        "transaction_type" => $this->transaction_type,
                        "reference_number" => $this->reference_number,
                        "amount" => $this->amount,
                        "locale" => $this->locale,
                        "transaction_uuid" =>$this->transaction_uuid,
                        "signed_date_time" => $this->signed_date_time,
                        "signed_field_names" => "access_key,profile_id,transaction_type,reference_number,amount,locale,transaction_uuid,signed_date_time,currency",
                        "unsigned_field_names" => "",
                        "currency" => $this->currency,
                        "signature" => $this->signature,

                    ];

                    $this->signature = $this->makeSignature($request_form_data);
                    $request_form_data["signature"] = $this->signature;
                    $log_data = ["ACTION" => "PAYMENT REQUEST", "FULL_REQUEST" => $request_form_data];
                    $this->apiLog($log_data);

                    echo '
                        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
                        <html xmlns="http://www.w3.org/1999/xhtml">
                            <head>
                                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                                <title>ShayInt Payment</title>
                            </head>
                            <body>
                                <h1 align="center">Processing your Transaction</h1>
                                <form method="post" action="' . $this->pay_url . '" name="checkout_form" style="display:none;"> 
                                    <div align="center">
                                        <input id="access_key" type="hidden" value="' . $this->access_key . '" name="access_key">
                                        <input id="profile_id" type="hidden" value="' . $this->profile_id . '" name="profile_id">
                                        <input id="transaction_type" type="hidden" value="' . $this->transaction_type . '" name="transaction_type">
                                        <input id="reference_number" type="hidden" value="' . $this->reference_number . '" name="reference_number">
                                        <input id="amount" type="hidden" value="' . $this->amount . '" name="amount" >
                                        <input id="locale" type="hidden" value="' . $this->locale . '" name="locale" >
                                        <input id="transaction_uuid" type="hidden" value="' . $this->transaction_uuid . '" name="transaction_uuid">
                                        <input id="signed_date_time" type="hidden" value="' . $this->signed_date_time . '" name="signed_date_time" >
                                        <input id="signed_field_names" type="hidden" value="' . $this->signed_field_names . '" name="signed_field_names" >
                                        <input id="unsigned_field_names" type="hidden" value="' . $this->unsigned_field_names . '" name="unsigned_field_names" >
                                        <input id="currency" type="hidden" value="' . $this->currency . '" name="currency" >
                                        <input id="signature" type="hidden" value="' . $this->signature . '" name="signature">                               
                                        <h3 align="center"> Please click on the Submit button to continue processing.<br>
                                        <input type="submit" value="Submit">
                                    </div>
                                </form>
                                <script>document.forms["checkout_form"].submit();</script>
                            </body>
                        </html>
    ```

**You are not authorized to view this page. The transaction has not been processed.
If the problem persists please report your problem and quote the following Error Reference Number:
E-5EFB6D6C58554846ACC1CB9CB1D82558**
...