GithubHelp home page GithubHelp logo

Comments (10)

RyanHavoc avatar RyanHavoc commented on May 2, 2024

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.

nfeiglin avatar nfeiglin commented on May 2, 2024

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.

RyanHavoc avatar RyanHavoc commented on May 2, 2024

Ah, thanks for that. I would have preferred PDF but serving up the HTML invoice instead will be fine.

from cashier-stripe.

taylorotwell avatar taylorotwell commented on May 2, 2024

Hmm, I'm not sure. I am getting PDF invoices fine. Which operating system?

from cashier-stripe.

nfeiglin avatar nfeiglin commented on May 2, 2024

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.

RyanHavoc avatar RyanHavoc commented on May 2, 2024

I'm working locally at the minute MAMP on Mac OSX.

from cashier-stripe.

thomaspalmer avatar thomaspalmer commented on May 2, 2024

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.

sushantaryal avatar sushantaryal commented on May 2, 2024

If I don't want PDF invoices can I directly delete the bin folder?

from cashier-stripe.

manavo avatar manavo commented on May 2, 2024

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.

korayguclu avatar korayguclu commented on May 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.