GithubHelp home page GithubHelp logo

Comments (18)

taylorotwell avatar taylorotwell commented on May 3, 2024 4

Quit +1ing and someone make a pull request.

from cashier-stripe.

DannyFeliz avatar DannyFeliz commented on May 3, 2024 1

+1

from cashier-stripe.

tommymarshall avatar tommymarshall commented on May 3, 2024

Would be great 👍

from cashier-stripe.

anhskohbo avatar anhskohbo commented on May 3, 2024

👍

from cashier-stripe.

taylorotwell avatar taylorotwell commented on May 3, 2024

Yeah agree this would be cool.

from cashier-stripe.

davzie avatar davzie commented on May 3, 2024

Would totally be all over this. <3

from cashier-stripe.

JeffreyWay avatar JeffreyWay commented on May 3, 2024

Yeah - this would be vital.

from cashier-stripe.

 avatar commented on May 3, 2024

Looking for a way to send a user's email/username to Stripe so I can save them on a customer record for identification purposes. This would solve that problem.

from cashier-stripe.

danmatthews avatar danmatthews commented on May 3, 2024

+1 for all of this.

also @nitrammit, could this be done by passing extra metadata to the create() method for subscriptions to pass an email or description to identify the customer?

$user->subscription('monthly')->create($stripetoken, ['email' => '[email protected]']);

from cashier-stripe.

lildwitte avatar lildwitte commented on May 3, 2024

+1

I like what You had to add as well danmatthews, that would be quite useful.

from cashier-stripe.

scottzirkel avatar scottzirkel commented on May 3, 2024

I was able to pass an email through to Stripe by altering the StripeGateway.php It'll break as soon as I run composer of course, but it gets the job done in a pinch.

I added an $email parameter to both the create & createStripeCustomer functions

    public function create($token, $description = '', $customer = null, $email = null)
    {
        if ( ! $customer)
        {
            $customer = $this->createStripeCustomer($token, $description, $email);
        }

        $this->billable->setStripeSubscription(
            $customer->updateSubscription($this->buildPayload())->id
        );

        $this->updateLocalStripeData($this->getStripeCustomer($customer->id));
    }
    public function createStripeCustomer($token, $description, $email = null)
    {
        $customer = Stripe_Customer::create([
            'card' => $token,
            'description' => $description,
            'email' => $email

        ], $this->getStripeKey());

        return $this->getStripeCustomer($customer->id);
    }

from cashier-stripe.

cityzen avatar cityzen commented on May 3, 2024

+1 on this.

from cashier-stripe.

gwlortscher avatar gwlortscher commented on May 3, 2024

+1. The ability for customers to update credit card information is the missing piece in my case.

from cashier-stripe.

mavame avatar mavame commented on May 3, 2024

+1 is anyone working on this? Would be great.

from cashier-stripe.

decob avatar decob commented on May 3, 2024

+1

from cashier-stripe.

alexgarrettsmith avatar alexgarrettsmith commented on May 3, 2024

+1 for this, but bear in mind a customer can have several cards, but has a default card attached to them. I assume in this case you meant updating the default card with the above methods :)

from cashier-stripe.

 avatar commented on May 3, 2024

Has this been fixed in the latest release?

from cashier-stripe.

 avatar commented on May 3, 2024

I apologize. I was just curious if this commit:

Fix how credit cards are updated.

Had anything to do with this issue. I'll get to work on a pull request otherwise.

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.