Comments (10)
سلام
اگر امکان هست نمونه کد خودتون رو برای بررسی قرار بدین؟
from gateway.
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.
من فکر میکنم مشکل از مقدار مبلغ هست. مجدد ساختار تولید اون رو بررسی کنین. و یک بار با مقدار دهی مستقیم مثلا 1000 تومان چک کنین؟
from gateway.
خیر ، مقدار دهی چه به صورت مستقیم و چه با متغیر همین ارور رو میده ، توی تصویر مشخص هست که قیمت رو داره میگیره مقدارش رو. تصویر ضمیمه شده رو ممنون میشم یه نگاه بندازید.
from gateway.
order Id رو خودتون می سازین؟ شاید مشکل از بزرگی اون هست؟
from gateway.
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.
به نکته خیلی خوبی اشاره کردین ، این عدد توی محدوده Int32 نبود ، به صورت دستی مقدار دهی کردم و درست شد ، پس کد باید دستکاری بشه و این باگ فیکس بشه. به نظرتون چی بگذاریم ؟ آیا این عدد می تونه یک عدد رندوم باشه ؟
from gateway.
ما شماره تراکنش رو
bigInt
قرار دادیم .
از این نمیتونه باشه آیا ؟
from gateway.
@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.
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)
- خطای ۲۳ بانک ملت HOT 1
- خطا درگاه ایران کیش HOT 1
- ارور درگاه پاسارگاد HOT 2
- ارور درگاه سامان HOT 2
- این اصلا کار نمیکنه
- در ماگریشن اضافه کردن توضیحات به جدول تراکنشها به صورت مستقیم از نام جدول استفاده شده است که اشتباه است و باید از فایل کانفیگ خوانده شود
- خطا در اجرای ماگریشن در حالت تست
- مشکل در بارگزاری کلاس SoapClient HOT 1
- 502 Bad Gateway Error
- Looking for maintainers HOT 1
- Saman gateway
- خطای SQLSTATE[HY000]: General error: 1096 No tables used
- ارور در کال بک هنگام استفاده از زرین پال
- مشکل expired 419 HOT 2
- SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://sep.shaparak.ir/payments/referencepayment.asmx?wsdl' : failed to load external entity "https://sep.shaparak.ir/payments/referencepayment.asmx?wsdl" HOT 1
- خطاهای زرین پال کامل نیست
- ایرانکیش error stdClass
- اتصال به سداد
- هنگام برگشت از درگاه پارسیان ارور"تراکنشی یافت نشد" میدهد
- خطا در paypal
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gateway.