Giter Club home page Giter Club logo

Comments (8)

hpakdaman avatar hpakdaman commented on August 15, 2024 1

مشکل حل شد

سه تا فایل تغییر داده شد

  • /src/Zarinpal/Zarinpal.php
  • /src/PortAbstract.php
  • /src/GatewayResolver.php

دستور زیر را بزنید تا تغیرات رو دریافت کنید :
composer update larabook/gateway

from gateway.

mehrdadshirvan avatar mehrdadshirvan commented on August 15, 2024

سلام برای درگاه پاسارگاد مشکل دارم
`
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.

hamed-ehtesham avatar hamed-ehtesham commented on August 15, 2024
$gateway = \Gateway::pasargad();

این اشتباه هست باید به شکل زیر بنویسید

$gateway = \Gateway::make(new \Pasargad());

from gateway.

mehrdadshirvan avatar mehrdadshirvan commented on August 15, 2024
$gateway = \Gateway::pasargad();

این اشتباه هست باید به شکل زیر بنویسید

$gateway = \Gateway::make(new \Pasargad());

الان عرور اینو میده میگه نمیشناسه کلاسشو

Class 'Pasargad' not found

from gateway.

mehrdadshirvan avatar mehrdadshirvan commented on August 15, 2024

سلام برای درگاه پاسارگاد مشکل دارم

میره رو درگاه ولی عرور میده

خطا در ارسال اطلاعات

در ابتدا عرور این بود که نمیرفت رو درگاه

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.

hamed-ehtesham avatar hamed-ehtesham commented on August 15, 2024
$gateway = \Gateway::pasargad();

این اشتباه هست باید به شکل زیر بنویسید

$gateway = \Gateway::make(new \Pasargad());

الان عرور اینو میده میگه نمیشناسه کلاسشو

Class 'Pasargad' not found

خب کلاس رو
import
کنید تا بشناسه

در ضمن در مورد کامنت بعدی که نوشتید باید بگم کدهای کلاس رو دستکاری نکنید!!

from gateway.

mahdidoraj avatar mahdidoraj commented on August 15, 2024

سلام
بنده هم همین مشکل رو دارم و زمانی که کلاس رو هم
import
میکنم بازم خطا میده!
متن خطا

Declaration of Larabookir\Gateway\Pasargad\Pasargad::ready($payment_id, $callback_url) must be compatible with Larabookir\Gateway\PortInterface::ready()

from gateway.

sevdasa avatar sevdasa commented on August 15, 2024
        $gateway = Gateway::make(new Zarinpal());

من اینو میسازم ارور میده
strtoupper() expects parameter 1 to be string, object given

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.