tighten / nova-stripe Goto Github PK
View Code? Open in Web Editor NEWEasily show information about Stripe charges and balances in your Nova dashboard
License: MIT License
Easily show information about Stripe charges and balances in your Nova dashboard
License: MIT License
Why am getting this on nova 4 ?
I am looking for a way to change the Resource aname from STRIPE in nova dashborad to something different. I do not want to change the chane it in the package files directly in vendor directory. So far I have found nothing to acheive so. Can you guide me to do it?
I am not sure if it is a issue but not finding any other place to ask this so posting here. If this is not the place let me know the place where I can ask and get answer.
Both API endpoints are returning a 404.
/nova-vendor/nova-stripe/stripe/charges
/nova-vendor/nova-stripe/stripe/balance
Any ideas why?
Hello,
i have the issue, that i cant get the plugin to work.
My environment contains a custom nova path "/admin" and i make the menu myself (so the tool doesnt register the menu, i must do that myself).
In this scenario, if i ever open the nova-stripe page routes, the router falls down to the catch all route.
With artisan route:list
i find all nova-stripe registered routes, but they dont work.
Do i need other steps to get this working? Or how can i debug this?
Regards
Eike
Nova::mainMenu
(MenuSection::make(
'Stripe',
[
MenuItem::make(__('Dashboard'), '/nova-stripe'),
MenuItem::make(__('Customers'), '/nova-stripe/customers'),
],
'credit-card'
)->collapsable())->canSee(function ($request) {
return $request->user()->hasRole('super-admin');
}),
public function tools()
{
return [
new \Tighten\NovaStripe\NovaStripe,
];
}
The dashboard lists transactions in a table without the ability to sort by attribute (e.g. charge id, amount, created, status)
Each attribute in the table should be sortable with an ascending or descending sort order.
I'm not sure why, but when Nova is at the root path, the View Link appears as /customers/${customer.id} without the /nova-stripe/ portion. Anyone have an idea why?
<InertiaLink :href="
${novaPath}/nova-stripe/customers/${customer.id}" :aria-label="__('View')" >
Upon further testing, it's when the nova path is set to '/' vs an empty string. Seems that InertiaLink interprets two consecutive forward slashes as skipping a directory. Not sure if it's worth putting a check on the Nova path for this case or not, but that appears to be the cause.
You end up with //nova-stripe/customers/${customer.id} (InertiaLink converts to /customers/${customer.id})
vs
/nova-stripe/customers/${customer.id}
We have configured a custom nova path /admin
but ChargesTable.vue
is hardcoded to /nova
<InertiaLink
:href="`/nova/nova-stripe/charges/${charge.id}`"
:aria-label="__('View')"
>
<HeroiconsOutlineEye />
</InertiaLink>
There are two routes with the same name "nova-stripe.customers" which causes error when trying to cache routes via artisan command route:cache
:
Unable to prepare route [nova/nova-stripe/customers/{customerId}] for serialization. Another route has already been assigned name [nova-stripe.customers]
Although a zero fee does fix this issue, I feel like further integration or investigation is required.
I currently have the pagination on the nova.php
set to load-more
, but the pagination on this package still uses simple
Create an index page allowing users to view customers
Create an index page allowing users to view subscriptions
Add a "Refund" button to the charge detail page
Considering there are probably lots of folks still running PHP 7.4, I think it's a reasonable ask to make the v2 tool compatible.
Problem 1
- tightenco/nova-stripe[v2.0.0, ..., v2.0.1] require php ^8.0|^8.1 -> your php version (7.4.24) does not satisfy that requirement.
- Root composer.json requires tightenco/nova-stripe ^2.0.0 -> satisfiable by tightenco/nova-stripe[v2.0.0, v2.0.1].
Originally posted by @dsingh09 in #44 (comment)
Tailwind preflight was breaking button styles in modal actions outside Nova Stripe.
Hi will this package be updated to work with the new Nova 4.0? I have noticed it has a similar abstract class issue as other Nova 3.0 packages at the moment.
Ths navigation should display an item for any core resources (e.g. charges, customers, etc). Currently, "charges" would be the only available option.
Add PHPUnit tests and Dusk tests to improve coverage of existing features
Hi,
I cant install the package as it requires stripe/stripe-php ^6.12 while laravel cashier only supports ^5.0.
Is there a specific reason for needing the newer stripe version?
Thanks
Daniel
All transactions are listed 10 per page by default on the dashboard.
Implement a dropdown that allows a "per page" selection
Implement search to allow users to search for transactions meeting specified criteria. At a minimum, we should support the attributed currently displayed on the dashboard table
After installing the package and configuring the stripe keys, I am getting an error:
Call to a member function authorize() on string
Any ideas what may be going on? I am using Nova version 2.12.0
Add a page that shows customer details. Include any available data from the Stripe API customer object
Successful and failed transactions are listed together on the stripe dashboard without an option to filter them.
Display a filter on the dashboard that allows transactions to be filtered by "successful" or "failed" status.
Hi,
The component looks awesome, I did encounter some issues when I initially tried to use it.
If there's an easy fix for it, I'd love to hear it, otherwise, I'll have a look at a PR in the weekend.
Two of the attributes a null instead of an object, which causes indefinite load.
Nova.request().get('/nova-vendor/nova-stripe/stripe/charges', { params: params }).then(function (response) {
_this.charges = response.data.charges.data; // Fails here because response.data.charges is null
_this.hasMore = response.data.charges.has_more;
_this.initialLoading = false;
_this.loading = false;
});
_vm._l(_vm.balance.available, function(available) { // Fails here because vm.balance is null
Hello, I gave this package a try and loving it currently!
One detail that I noticed working with a license in Nova 3 is the customer views shown in the README are only available in version 2 or newer, which requires Nova 4. I noticed the issues they were introduced in #33 and #36 were actually before the Nova 4 changes were made but there isn't a tagged version until after the v2 release.
I was wondering if it would be possible to get another tagged v1 release up to before #45 if it would be possible? I don't know if there's much interest but stumbled across this Laracasts thread beforehand, so there's at least one other person out there who might have interest ๐
Thank you!
Allow charge objects to be filtered by livemode
from the Stripe API
This package is fantastic, but I've noticed that Metadata and Fraud Details aren't parsed in the details view instead just displaying [object Object], and Dispute and Transfer Group probably aren't either.
If you retrieve the charge details you can see Metadata is provided from the api:
"metadata": {
"order_uuid": "c0238381-ed8c-4585-8ec7-f21e7a6ac6f0"
},
Likewise,
"fraud_details": {
"stripe_report": "fraudulent"
},
Although, because this doesn't provide much insight maybe it could be combined with the outcome field to give more info:
"outcome": {
"network_status": "not_sent_to_network",
"reason": "merchant_blacklist",
"risk_level": "highest",
"risk_score": 87,
"seller_message": "Stripe blocked this payment.",
"type": "blocked"
},
Or even:
"failure_code": "card_declined",
"failure_message": "Your card was declined.",
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.