#stripe

/

      • applesandwich
        I want to use a customer instead of a charge id to retrieve a charge. Would I have to list all the charges and then loop through to find all with the correct customer id?
      • Aven joined the channel
      • ywain
        applesandwich: you can specify a customer ID when listing charges: https://stripe.com/docs/api#list_charges-customer
      • Jack_m: Stripe.js won't be disabled anytime soon
      • dopesong_ joined the channel
      • alex996_: the token can only be used in a single API request. If you use the token to create a customer, the token is consumed but the customer is created with a payment source that you can use to create multiple charges, either manually or via subscriptions
      • tonybeninate
        any sane way to retrieve all connected accounts which have a negative balance?
      • applesandwich has quit
      • dopesong has quit
      • Jack_m has quit
      • sunburn joined the channel
      • UAPHS-USA
        I'm sorry, what is this? https://stripe.com/docs/api#event_object ? I should copy that event before https://stripe.com/docs/webhooks#receiving-a-we... ?
      • Otherwise there is an error. Fatal error</b>: Uncaught Error: Class 'Stripe\Stripe' not found in stripe_receiver.php:7
      • Stack trace:
      • #0 {main}
      • Second link doesn't show where is incoming JSON POST is stored.
      • alex996_
        ywain: Thank you!
      • kaylined joined the channel
      • UAPHS-USA
        Anyone?
      • truepudding
        how does trial_period_days work when there is more than one plan? overrides all of them?
      • meant to say - how does it work on 'subscriptions'
      • olearyk joined the channel
      • Eeshan joined the channel
      • olearyk
        hello?
      • kaylined
        Hola.
      • Eeshan
        Hi, I connect stripe to an external application called Putler. I no longer have access to that external application. How do I cancel the authorization on Stripe?
      • Hi, I connected stripe to an external application called Putler. I no longer have access to Putler. How do I cancel the Putler authorization on Stripe?
      • olearyk
        I'm new to stripe and I'm using it with my android app. How can I tell if a stripe charge was successful or not?
      • kaylined
      • Eeshan
        Thank you!
      • Eeshan has quit
      • kaylined
        olearyk: You'll be able to tell by the response, and you'll be able to see it in your Dashboard.
      • But the Android App itself doesn't create charges(shouldn't), it just creates a Token which you pass to your server to handle the stripe interactions.
      • olearyk
        Yes, I have created tokens on the android app and I am passing those to my server which handles the token with a php file, but I don't know how to get a response on the php file
      • Nebual joined the channel
      • kaylined
        olearyk, when you create the charge(or customer) you will always get a response. Where you have this -> "\Stripe\Charge::create(array(());" make it $charge = \Stripe\Charge::create(array(()); and then var_dump($charge); and you'll be able to see the response in your Android dev tools debugger.
      • (assuming it's listening for a response)
      • frankdrey joined the channel
      • vincent joined the channel
      • vincent is now known as Guest33037
      • otherwise instead of var_dump($charge) you can use file_put_contents('test.txt', $charge); and then you'll be able to see the response inside the generated txt doc.
      • UAPHS-USA
        Where is incoming data get's declared? Doesn't make any sense
      • $_POST['blah'] where is it?
      • kaylined
        olearyk: or in here https://dashboard.stripe.com/test/payments if your request is making it to Stripe successfully you'll be able to see it in there as well.
      • UAPHS-USA are you using a webapp, or an android/ios app?
      • UAPHS-USA
        pure php
      • and your tutorial on the website makes no sense at all
      • kaylined
        Then $_POST should be coming from your frontend form, where you collect credentials etc.
      • s/credentials/card details/
      • So your front end of the app, will utilize Checkout or Elements, and those two will pass the Stripe token to your server via $_POST
      • UAPHS-USA
        You need to put more clarifications on https://stripe.com/docs/webhooks#receiving-a-we...
      • kaylined
        Oh - you're looking for webhooks?
      • UAPHS-USA
        it does use checkout and I can't change it's behavior to where send data, it's proprietary billing software
      • kaylined
        PS I'm not affiliated with Stripe.
      • UAPHS-USA
        yes
      • kaylined
        That webhook example is pretty good IMO.
      • UAPHS-USA
        \Stripe\Stripe::setApiKey("____");
      • no it's not
      • risto_ has quit
      • kaylined
        $input = @file_get_contents("php://input"); $event_json = json_decode($input);
      • $input = the data..
      • UAPHS-USA
        the object in't declared anywhere above this line
      • kaylined
        Because it isn't an Object
      • It's making Static calls.
      • UAPHS-USA
        Fatal error: Uncaught Error: Class 'Stripe\Stripe' not found
      • kaylined
        You should be including the Stripe library, either via composer or by downloading the stripe-php bindings manually.
      • UAPHS-USA
        Nice. And where is it says so on that doc page?
      • kaylined
        More info on that UAPHS-USA: https://github.com/stripe/stripe-php
      • UAPHS-USA
      • gingerale joined the channel
      • kaylined
        Well, it's listed 2 steps before that.
      • Guest34384 joined the channel
      • UAPHS-USA
        not even a word about library or references
      • olearyk
        <kaylined> when passing a token to the php file, do I need to pass it's string value the corresponding id? at the moment the parameter in the hhtp request is in the form 'com.stripe.android.model...'
      • UAPHS-USA
        well, why not to write in example? include() something. Example is incomplete and wastes the time
      • kaylined
        olearyk: You just need the token's id
      • will look like tok_xxxxxxx
      • UAPHS-USA: You're more than welcome to write into support(https://support.stripe.com/email) and let them know your thoughts, and they can probably provide clarity on the documentation for you.
      • UAPHS-USA
        I thought this channel is all about such things like coding
      • exarkun joined the channel
      • I'm working in support too and I know that incomplete examples are real pain in a butt for customers. You can write a tons of text above it, but example is more important.
      • kaylined
        It is all about the engineering side of things, and I've helped you out there. But I can't do anything about the wording in the documentation unfortunately, however Stripe's support most certainly can.
      • UAPHS-USA
        Thank you very much
      • kaylined
        No problem. If anything else comes up, feel free to ask away!
      • UAPHS-USA
        I didn't mean to be rude, but I just say how it felt
      • olearyk
        so I have added the var_dump($charge) to my php file but the result is still returning empty. Below is how I am calling the HTTp request, please let me know if you see any issues;
      • String result = ruc.sendPostRequest(Config.URL_STRIPE_CHARGE, data);
      • return result;
      • kaylined
        olearyk, can you put your PHP code into a gist/pastebin(remove your API keys) so I can see?
      • Also that first line looks okay to me, but doesn't mean there isn't an issue somewhere upstream.
      • olearyk
        sure, this is my first time using this chat sorry, how to I do that
      • kaylined
      • And then provide the link here
      • tonybeninate has quit
      • kes has quit
      • olearyk
      • tonybeninate joined the channel
      • tonybeninate has quit
      • Mark___ joined the channel
      • kaylined
      • Mark____ joined the channel
      • I commented on it with a fix that looks a little different.
      • shpx joined the channel
      • shpx has quit
      • shpx joined the channel
      • Mark____
        I'm trying to get Avalara sales tax info to display in real-time for iOS users when purchasing a subscription service using Apple Pay. How can I?
      • ashleyd joined the channel
      • The documentation appears to only support taxing after the invoice is sent
      • shpx has quit
      • Mark___ has quit
      • sugar_ has quit
      • sugar_ joined the channel
      • exarkun has left the channel
      • olearyk
        kaylined: the edited version did not work for me, I don't understand it fully, what is the purpose of ; $input = file_get_contents('php://input');
      • kaylined
        That's to get the post data that your app is sending.
      • ta_ joined the channel
      • olearyk
        ok, android is still returning an empty result for me
      • Mark____ has quit
      • kaylined
        Do your server logs show that your Android is making a connection at all?
      • If you were sending any post data at all, that would dump it.
      • Daniel joined the channel
      • Daniel is now known as Guest8276
      • des_ joined the channel
      • Guest8276
        I'm hoping to get a question answered regarding the oauth flow. Anyone available for that?
      • des_
        Hello. I am wondering if its possible to style the ::placeholder pseudo-class using classes instead of the style object.
      • olearyk
        I will check now, but it should be working, all other requests have been successful
      • des_
        i.e instead of doing style -> base -> ::placeholder I would like to style it as classes -> className -> className::placeholder in a separate CSS file.
      • jleclanche
        with the python API, if I do something like customer.email = customer.email; customer.save(); does it send an http write?
      • or is it smart enough not to send a noop?
      • Guest8276 has quit
      • sescob27 joined the channel
      • sescob27
        hi everybody, i have a question regarding stripe invoice, we are trying to create some invoice items assign them to an invoice and the try to pay it immediately, if an error happen we try to do a rollback deleting all created invoice items and then closing the invoice but we are getting an error (Can't delete an invoice item that is attached to an invoice that is no longer editable), but the invoice is not closed neither forgiven.
      • vincent joined the channel
      • dchimento joined the channel
      • dchimento
        Is it necessary to store the oauth access token after receiving it? It doesn't look like it's ever needed to make requests.
      • Only the stripe_account_id is required according to this documentation https://stripe.com/docs/building-integrations
      • ben-_ has quit
      • alex996_ has quit
      • stripe266 has quit
      • des_
        w/ Stripe.js, anyone have experience styling with classes instead of the style object for an element ?
      • mikey joined the channel
      • mikey is now known as Guest5460
      • Guest5460 has quit
      • mikey-stripe joined the channel
      • mikey-stripe
        I could view my external accounts not to long ago but now im getting an error. seems like i am getting this after the api update? Im currently using this but perhaps this is wrong now?
      • olearyk
        kaylined: I don't have logs set up to show that detail but I can't see how the server is not being accessed
      • omar__ joined the channel