Giter Club home page Giter Club logo

Comments (10)

kamiyar avatar kamiyar commented on July 17, 2024

سلام
اگر امکان هست نمونه کد خودتون رو برای بررسی قرار بدین؟

from gateway.

ehsannowrouzi avatar ehsannowrouzi commented on July 17, 2024

if($data['bankmethod']=='parsian'){
try {

            $gateway = Gateway::make(new Parsian());
            // $gateway->setCallback(url('/path/to/calback/route')); You can also change the callback
            $gateway->price($payableprice)->ready();
            $refId =  $gateway->refId();
            $transID = $gateway->transactionId();


            // Your code here

            return $gateway->redirect();


        } catch (Exception $e) {

            echo $e->getMessage();
        }
    }

CallbackUrl tooye config file set shodeh & payableprice ham meghdar dare.

from gateway.

kamiyar avatar kamiyar commented on July 17, 2024

من فکر میکنم مشکل از مقدار مبلغ هست. مجدد ساختار تولید اون رو بررسی کنین. و یک بار با مقدار دهی مستقیم مثلا 1000 تومان چک کنین؟

from gateway.

ehsannowrouzi avatar ehsannowrouzi commented on July 17, 2024

خیر ، مقدار دهی چه به صورت مستقیم و چه با متغیر همین ارور رو میده ، توی تصویر مشخص هست که قیمت رو داره میگیره مقدارش رو. تصویر ضمیمه شده رو ممنون میشم یه نگاه بندازید.

from gateway.

kamiyar avatar kamiyar commented on July 17, 2024

order Id رو خودتون می سازین؟ شاید مشکل از بزرگی اون هست؟

from gateway.

ehsannowrouzi avatar ehsannowrouzi commented on July 17, 2024

kheir , tooye classe Parsian , tabei hast be name sendPayRequest() , orderid yeki az parametrhaei hast ke tavassote function PinPaymentRequest samte bank ferestade mishe. albate orderid ro dare barabar ba transactionid gharar mideh khodesh be towre automatic , hame chiz dar banke mellat moshtarak hast va dorost kar mikone , amma moteassefane harchi hast az samte banke parsian hast ke ehtemalan parametr haei ba in format ro nemipazire. albate in chizi hast ke man fekr mikonam , motmaen nistam.

from gateway.

ehsannowrouzi avatar ehsannowrouzi commented on July 17, 2024

به نکته خیلی خوبی اشاره کردین ، این عدد توی محدوده Int32 نبود ، به صورت دستی مقدار دهی کردم و درست شد ، پس کد باید دستکاری بشه و این باگ فیکس بشه. به نظرتون چی بگذاریم ؟ آیا این عدد می تونه یک عدد رندوم باشه ؟

from gateway.

hpakdaman avatar hpakdaman commented on July 17, 2024

ما شماره تراکنش رو
bigInt
قرار دادیم .
از این نمیتونه باشه آیا ؟‌

from gateway.

akoSalman avatar akoSalman commented on July 17, 2024

@hpakdaman Absolutely the problem is with transactionId, now it has a length of 12, but it must be in the range of int32 length, setting it's length to 9 will solve the problem.

from gateway.

hpakdaman avatar hpakdaman commented on July 17, 2024

There are two fields should be type of BIGINT , one of them is the primary key field (id) exists in gateway_transactions table and another is the foreign key field (transaction_id) exists in gateway_transactions _logs table, check both and change them to BIGINT data type by hand and the problem will be fixed , finish .

from gateway.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.