Laravel Nova icon Nova Packages

Installation Instructions

You can install the package in to a Laravel app that uses Nova via composer:

composer require naif/paypal

Usage:

Add the below to the card function in app/Providers/NovaServiceProvider.php


protected function cards()
{
    return [
      (new Paypal())

      //you can set days to retrieve transacitons
      (new Paypal())->days(3)  //default last 5 days

      //you can specifivy how many transactions to retreive
      (new Paypal())->count(5) //default is 10 transactions

      //you can hide PayPal logo
      (new Paypal())->hideLogo(true) //default false

     //Example for all options
     (new Paypal())->days(3)->count(5)->hideLogo(true)
    ];
}

If there is any error occurs it will appear in the card with error code and description from PayPal

Here are a list of all errors from PayPal you can lookup by error code: https://developer.paypal.com/docs/classic/api/errors/

Get your API access from PayPal website

https://www.paypal.com/businessprofile/mytools/apiaccess/firstparty/signature

Paypal > Profile > Profile and settings > My selling tools > API access > NVP/SOAP API integration (Classic)

Note: The maximum number of transactions that can be returned from PayPal API is 100.

Add API details to your .env file


NOVA_PAYPAL_USERNAME=##############
NOVA_PAYPAL_PASSWORD=##############
NOVA_PAYPAL_SIGNATURE=#############

Support:

naif@naif.io

https://www.linkedin.com/in/naif

License:

The MIT License (MIT). Please see License File for more information.

Readme

Nova PayPal Card

A Laravel Nova card to display PayPal current balance and latest transactions.

Installation:

You can install the package in to a Laravel app that uses Nova via composer:

composer require naif/paypal

Usage:

Add the below to the card function in app/Providers/NovaServiceProvider.php

protected function cards()
{
    return [
      (new Paypal())
      
      //you can set days to retrieve transacitons
      (new Paypal())->days(3)  //default last 5 days
      
      //you can specifivy how many transactions to retreive
      (new Paypal())->count(5) //default is 10 transactions
      
      //you can hide PayPal logo
      (new Paypal())->hideLogo(true) //default false
      
     //Example for all options
     (new Paypal())->days(3)->count(5)->hideLogo(true)
    ];
}

Support:

naif@naif.io

https://www.linkedin.com/in/naif

License:

The MIT License (MIT). Please see License File for more information.

Back to Top
Added 6 years ago
Last updated 6 Years Ago
Version v1.7
Composer
naif/paypal
GitHub stars 12
Packagist downloads 355

Favorites

3 users favorited

Rating

5.00
(out of 5)
★★★★★
★★★★
★★★
★★
1 ratings

Tags

Brought to you by Tighten

Issues/Feature Requests Stats Package Ideas