Comments (8)
مشکل حل شد
سه تا فایل تغییر داده شد
- /src/Zarinpal/Zarinpal.php
- /src/PortAbstract.php
- /src/GatewayResolver.php
دستور زیر را بزنید تا تغیرات رو دریافت کنید :
composer update larabook/gateway
from gateway.
سلام برای درگاه پاسارگاد مشکل دارم
`
try {
$gateway = \Gateway::pasargad();
$gateway->setCallback($back_url);
$gateway->price($final_price_rial)->ready();
$refId = $gateway->refId();
$transID = $gateway->transactionId();
return $gateway->redirect();
} catch (Exception $e) {
echo $e->getMessage();
}
عرور اینه
Declaration of Larabookir\Gateway\Pasargad\Pasargad::ready($payment_id, $callback_url) must be compatible with Larabookir\Gateway\PortInterface::ready()`
from gateway.
$gateway = \Gateway::pasargad();
این اشتباه هست باید به شکل زیر بنویسید
$gateway = \Gateway::make(new \Pasargad());
from gateway.
$gateway = \Gateway::pasargad();
این اشتباه هست باید به شکل زیر بنویسید
$gateway = \Gateway::make(new \Pasargad());
الان عرور اینو میده میگه نمیشناسه کلاسشو
Class 'Pasargad' not found
from gateway.
سلام برای درگاه پاسارگاد مشکل دارم
میره رو درگاه ولی عرور میده
خطا در ارسال اطلاعات
در ابتدا عرور این بود که نمیرفت رو درگاه
Declaration of Larabookir\Gateway\Pasargad\Pasargad::ready($payment_id, $callback_url) must be compatible with Larabookir\Gateway\PortInterface::ready()
بعد تابع
public function ready($payment_id, $callback_url)
{
$this->sendPayRequest($payment_id, $callback_url);
return $this;
}
رو کامنت کردم و اینو نوشتم و رفت رو درگاه اما عرور اینه الان
public function ready()
{
return $this;
}
عروری که درگاه میده
خطا در ارسال اطلاعات
هم کد خصوصی و مرچند کد و شماره ترمینال ارسال میشه به درگاه
from gateway.
$gateway = \Gateway::pasargad();
این اشتباه هست باید به شکل زیر بنویسید
$gateway = \Gateway::make(new \Pasargad());
الان عرور اینو میده میگه نمیشناسه کلاسشو
Class 'Pasargad' not found
خب کلاس رو
import
کنید تا بشناسه
در ضمن در مورد کامنت بعدی که نوشتید باید بگم کدهای کلاس رو دستکاری نکنید!!
from gateway.
سلام
بنده هم همین مشکل رو دارم و زمانی که کلاس رو هم
import
میکنم بازم خطا میده!
متن خطا
Declaration of Larabookir\Gateway\Pasargad\Pasargad::ready($payment_id, $callback_url) must be compatible with Larabookir\Gateway\PortInterface::ready()
from gateway.
$gateway = Gateway::make(new Zarinpal());
من اینو میسازم ارور میده
strtoupper() expects parameter 1 to be string, object given
from gateway.
Related Issues (20)
- خطا درگاه ایران کیش 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.