jlp/payment is a Laravel package for a laravel 5 package to verify and accept payments from bitcoin.
It currently has 0 GitHub stars and 5 downloads on Packagist.
Install it with composer require jlp/payment.
Discover more Laravel packages by jlp
or browse all Laravel packages to compare alternatives.
Last updated

This package enables you to accept payments from bitcoin.
The package can be installed through Composer:
composer require jlp/payment
This service provider must be installed:
//for laravel <=4.2: app/config/app.php
'providers' => [
...
'Jlp\Payment\PaymentServiceProvider'
...
];
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'));
}

This module is derived from the WooComerce module for bitcoin: http://www.bitcoinway.com/
This project is licensed under the MIT License