2017 © Pedro Peláez
 

library payment

A Laravel 5 package to verify and accept payments from bitcoin

image

jlp/payment

A Laravel 5 package to verify and accept payments from bitcoin

  • Friday, March 9, 2018
  • by jluispcardenas
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Screen, (*1)

Accept payments from bitcoin

This package enables you to accept payments from bitcoin., (*2)

Installation

The package can be installed through Composer:, (*3)

composer require jlp/payment

This service provider must be installed:, (*4)


//for laravel <=4.2: app/config/app.php 'providers' => [ ... 'Jlp\Payment\PaymentServiceProvider' ... ];

Use example

use Jlp\Payment\Gateways\Bitcoin\PaymentGateway as BitcoinPaymentGateway;

class CheckoutConfirmOrderController extends BaseController {


    /**
     * @var PaymentGateway
     */
    protected $paymentGateway;

    public function __construct(.. PaymentGateway $paymentGateway ...)
    {
        ...
        $this->paymentGateway = $paymentGateway;
        ...
    }
public function showOrderDetails()
    {
        $order = Order::findOrFail(1);

        $this->paymentGateway->setOrder($order);

        $this->paymentGateway->preparePayment();

        $paymentGateway = $this->paymentGateway;

        return view('store.payment')->with(compact('order', 'paymentGateway'));
     }

Ejemplo, (*5)

Remarks

This module is derived from the WooComerce module for bitcoin: http://www.bitcoinway.com/, (*6)

Licence

This project is licensed under the MIT License, (*7)

The Versions

09/03 2018

dev-master

9999999-dev https://github.com/jlp/payment

A Laravel 5 package to verify and accept payments from bitcoin

  Sources   Download

MIT

The Requires

 

by Jose Luis Perez

laravel payment gateway e-commerce bitcoin webshop