Giter Club home page Giter Club logo

laravel-crypto-payment-gateway's People

Contributors

victorybiz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

laravel-crypto-payment-gateway's Issues

Some column were not filled

I made payment but in the message i received there was no userID and orderID is was labelled as unknown and in my database too it was empty.

Deposite Page

Fill in amount to proceed to Deposite

@csrf Pay
Payment Instruction

Your requirements could not be resolved to an installable set of packages.

When I try install just say this

Problem 1
- victorybiz/laravel-crypto-payment-gateway[dev-main, v0.0.1, v1.0.0, ..., v1.1.0] require illuminate/support ^8.0 -> found illuminate/support[v8.0.0, ..., 8.x-dev] but these were not loaded, likely because it conflicts with another require.
- Root composer.json requires victorybiz/laravel-crypto-payment-gateway * -> satisfiable by victorybiz/laravel-crypto-payment-gateway[dev-main, v0.0.1, v1.0.0, v1.0.1, v1.0.2, v1.1.0].
And I cant continue. Please help me to run it

Invalid Order ID - . Max: 50 symbols

After following all the required steps and setting up my payment controller, once I click the submit button, I get the error message Invalid Order ID - . Max: 50 symbols

`public static function ipn ($cryptoPaymentModel, $payment_details, $box_status)
{
if($cryptoPaymentModel){
$userOrder = Payment::where('payment_id', $cryptoPaymentModel->payment_id)->first();
if(!$userOrder){
Payment::create([
'payment_id' => $cryptoPaymentModel->payment_id,
'user_id' => Auth::user()->id,
'amount' => floatval($payment_details['amount']),
'amountusd' => floatval($payment_details['amountusd']),
'coinlabel' => $payment_details['coinlabel'],
'txconfirm' => $payment_details['confirmed'],
'status' => $payment_details['status'],
]);
}
if($userOrder && $box_status == "cryptobox_updated"){
$userOrder->txconfirm = $payment_details['confirmed'];
$userOrder->save();
}
if(!$cryptoPaymentModel->processed && $payment_details['confirmed']){
// add custom logic here

            $cryptoPaymentModel->setStatusAsProcessed();
        }
    }
    return true;
}`

payment Form

<div class="contact-form"> <form id="contact-form" class="form" name="payment" method="POST" action="{{ route('payments.crypto.pay') }}"> @csrf <div class="row"> <div class="form-group col-12 mb-3"> <label>Choose Plan:</label> <select class="form-select form-control" id="" name="plan"> <option value="starter">Starter</option> <option value="gold" selected>Gold</option> <option value="premium">Premium</option> </select> </div> <input type="hidden" name="user_id" value="{{ Auth::user()->id }}"> <div class="form-group col-12 mb-3"> <label>Enter your Amount:</label> <input name="amount" class="form-control" id="amountusd" required="required" type="text"> </div> <input type="hidden" name="redirect" value="{{ url()->full() }}"> <div class="form-group col-lg-12 mb-0 text-center"> <div class="actions"> <input value="Place Order" name="submit" id="submitButton" class="btn btn-contact-bg" type="submit"> <img src="assets/img/ajax-loader.gif" id="loader" style="display:none" alt="loading" width="16" height="16"> </div> </div> </div> </form> </div>

Route:

Route::get('/payment-process', [UserController::class, 'paymentProcessing'])->name('payment-process')->middleware('auth'); Route::match(['get', 'post'], '/payments/crypto/pay', Victorybiz\LaravelCryptoPaymentGateway\Http\Controllers\CryptoPaymentController::class)->name('payments.crypto.pay'); Route::post('/payments/crypto/callback', [App\Http\Controllers\Payment\PaymentController::class, 'callback'])->withoutMiddleware(['web', 'auth']);

Route Not defined

When I put the code in Web.php show this error,

image

I do the publish and is not working yet

โ€ข App\Http\Controllers\Victorybiz\LaravelCryptoPaymentGateway\src\Http\Controllers\CryptoPaymentController was not found: Controller class App\Http\Controllers\Victorybiz\LaravelCryptoPaymentGateway\src\Http\Controllers\CryptoPaymentController for one of your routes was not found. Are you sure this controller exists and is imported correctly?

I neeed publish the files manually?

Action is not definited

Hi.
When I execute

 $payment_url = LaravelCryptoPaymentGateway::startPaymentSession([
          'amount' => 0.0000001, // OR 'amount' when sending BTC value
          'orderID' => 1,
          'userID' => Auth::user()->id,
          'redirect' => url()->full(),
      ]);

My result is

Action Victorybiz\LaravelCryptoPaymentGateway\Http\Controllers\CryptoPaymentController not defined.

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.