Comments (10)
I don't believe you have to include PhantomJS though. It's already included and loaded in Cashier. It's located in here:
vendors/laravel/cashier/src/Laravel/Cashier/bin
Are you saying you got it working by including your own?
from cashier-stripe.
I didn't even notice that it was included – thanks for pointing me to it @RyanHavoc.
I haven't tried including it on my own as I just used $user->findInvoiceOrFail($id)->render([]);
which returns an HTML invoice to the browser where the user is free to view & print it so I'm not really worried about PDFs anymore.
from cashier-stripe.
Ah, thanks for that. I would have preferred PDF but serving up the HTML invoice instead will be fine.
from cashier-stripe.
Hmm, I'm not sure. I am getting PDF invoices fine. Which operating system?
from cashier-stripe.
I'm running it on Homestead so Ubuntu 14.
On 24/06/2014 10:46 AM, "Taylor Otwell" [email protected] wrote:
Hmm, I'm not sure. I am getting PDF invoices fine. Which operating system?
Reply to this email directly or view it on GitHub
#74 (comment).
from cashier-stripe.
I'm working locally at the minute MAMP on Mac OSX.
from cashier-stripe.
I'm experiencing issue with PDFs as well. They won't open on Mac OSX. Laravel is hosted on a ubuntu VM.
from cashier-stripe.
If I don't want PDF invoices can I directly delete the bin folder?
from cashier-stripe.
For what it's worth, I just encountered the same problem. Turned out that it was just the permissions of phantomjs (no execution permissions, so it was failing).
As for running on OSX with MAMP, ran into a different problem but didn't spent too much time investigating. This might help though: http://stackoverflow.com/questions/19008960/phantomjs-on-mac-os-x-works-from-the-command-line-not-via-exec
from cashier-stripe.
I had the same issue on Mac OSX with Homestead VM.
I change phantamjs permissions it is working now.
cd <project>/vendor/laravel/cashier/src/Laravel/Cashier/bin/linux-x86_64
chmod a+x phantomjs
thanks manavo
from cashier-stripe.
Related Issues (20)
- 3D-Secure Card - Always Authenticate : Not Working when user try to Purchase a Subscription. HOT 2
- Stripe Tax: isTaxExempt() isNotTaxExempt() reverseChargeApplies() methods returns incorrect state HOT 4
- Payment behavior isn't being passed on like proration behavior is when updating the quantity from the subscription HOT 1
- updateDefaultPaymentMethod() should update subscription's default payment method HOT 2
- New subscription: The payment attempt failed because additional action is required before it can be completed. HOT 1
- Add support for quote HOT 2
- Dynamic Tax Rates for Subscriptions HOT 4
- Improvement: End the generic trial instead of clearing it when a subscription is started HOT 1
- Confirm payment screen not processing payment correctly HOT 1
- Use of anchorBillingCycleOn() for subscription checkout HOT 3
- Method hasPaymentMethod returns false if Stripe Link is enabled HOT 1
- check if user is subscribed? documentation says this should work? HOT 1
- Bug finding payment method causing error on payment.blade.php HOT 2
- Migrations do not create foreign key in "subscription_items" to "subscriptions" table HOT 1
- It would be great if Cashier had events HOT 4
- Trait method 'allowPromotionCodes' will not be applied because it collides with 'PerformsCharges' HOT 1
- Support for upcoming changes to Stripe Prefilling saved cards in Checkout HOT 3
- Support for additional important Stripe signals for fraud detection HOT 1
- trial_ends_at is getting marked as NULL when webhook is received HOT 3
- Make card default for subscriptions via Stripe checkout HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cashier-stripe.