naif/paypal

一个Laravel Nova卡片,用于显示PayPal当前余额和最新交易

v1.7 2019-01-18 13:22 UTC

This package is not auto-updated.

Last update: 2024-09-21 16:03:51 UTC


README

一个Laravel Nova卡片,用于显示PayPal当前余额和最新交易。

安装

您可以通过composer在使用Nova的Laravel应用程序中安装此包

composer require naif/paypal

使用方法

将以下内容添加到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)
    ];
}

支持

naif@naif.io

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

许可证

MIT许可证(MIT)。请参阅许可证文件以获取更多信息。