#stripe

/

      • bazonkers
        got it. ;)
      • hpar
        mdagosta: I'd definitely ask about why those don't match, as the advice should. CVC is a good thing to require though because it makes sure the person actually has the card in their hand
      • larafale has quit
      • mdagosta: so, if you have a token ID I could take a look and see if the information is included
      • cannon
        hpar req_VRBbvfEVRGgAVu
      • bazonkers
        for the record, i want to state that stripe is most awesome!
      • larafale joined the channel
      • hpar
        bazonkers: too kind, thanks :)
      • mdagosta
        hpar: yes I agree about the CVC fail. Except that we have had 0 actual disputes over it.
      • simonguertin
        @hpar thank you
      • bazonkers has quit
      • cannon
        bazonkers Agreed!
      • hpar
        cannon: yep, so this won't work. You need to attach the token to the customer, then charge the customer
      • jhere joined the channel
      • jhere has left the channel
      • sr2016 joined the channel
      • stripe791
        @hpar: when i'm creating an invoice to be paid manually, how can I get the related account number, routing number, swift code and all of that via the api?
      • NJ_
        Can anyone help us with our issue. There are no errors reported on our site yet payments are not reaching our dashboard?
      • chrisrosillo joined the channel
      • hpar
        stripe791: if you're using https://stripe.com/docs/subscriptions/ach-credit then it should be in the response
      • mdagosta
        hpar: I'm trying to find a token but we have too many logs. How about a card fingerprint or a charge id?
      • hpar
        NJ_: you need to debug your PHP code, there's no way around this. Stripe support / docs provide the code, but at the point you run it on your site it's your code to debug and maintain. It could be many, many different things
      • that's why I'd recommend using something like WP Simplepay, or any other integration that lets you set up a payments page without writing code
      • mdagosta: charge ID works
      • cannon
        hpar req_1a7j3aQC3lC4Uy
      • stripe791
        @hpar: not a subscription, after creating some line items I created an invoice with "send_invoice" billing and I want to know the details it will send by email, can't I do that?
      • larafale has quit
      • NJ_
        hpar, the code we're using was supplied by Stripe
      • hpar
        NJ_: yes, but it's running on your server and site. Stripe is a toolkit for building your payment page
      • I can help if you have a specific error but so far you've not shared any
      • what have you tried to debug your script? have you checked your server's error logs? etc
      • mdagosta
        hpar: awesome thanks. Here's a charge ID from someone who just created a subscription: ch_CPOBlIYqvblQ0v
      • m0ltar has quit
      • NJ_
        This is the code, in full... https://pastebin.com/iQbXWFSZ
      • How can we debug when no errors are reported?
      • mdagosta
        I double-checked that the customer name was adding during tokenization. And that the IP address at tokenization time was client_ip
      • I added email to the customer.
      • And client_ip metadata to the subscription.
      • chrisrosillo has quit
      • hpar
        NJ_: ok, so first of all, your PHP code is not running. It won't work inside a script tag, it has to be enclosed in <?php ?>
      • mdagosta
        Support wanted me to add IP address to charges, but I couldn't figure out how to do that since I am only creating subscriptions
      • NJ_
        We tried asking Stripe support about installation of the PHP libraries and they directed us to stripe-php-6.3.2.zip which contains a lot of data
      • Stripe support then provided no further information on how we install those libraries
      • hpar
        that's correct NJ_, there are a number of files involved in order to make it easy for a programmer to build a solution with Stripe
      • stripe791: I'm not too familiar with how ACH invoices work. It looks like maybe you create the ACH credit source separately if you want details
      • NJ_
        do we just upload everything in the "lib" folder to our server?
      • kies joined the channel
      • hpar
        cannon: I can't really follow what you're doing, can you share your code so I have a better idea? the process you want is: 1/ get token from Checkout/Stripe.js 2/ Create or update the customer *on the connected account* with that token, 3/ charge that customer *on the connected account*
      • stripe791
        but I see that when I create a new invoice then a source is created (and in testing, don't know if it's also in production, for multiple invoices there is only one source), but the only way I think I can get the source routing number and swift and all that is by requesting the source maybe? But how can I be sure this source is related to the invoice?
      • orbyt_ joined the channel
      • hpar
        mdagosta: so for that customer it looks like you're using Stripe.js to get the card details which is what you want. I'd bump the support ticket again and let them know
      • NJ_
        hpar enclosing the PHP code in <?php ?> is crsahing the entire page.
      • hpar
        NJ_: yes, and then you have to include the library in your code with, for example, require_once('/path/to/stripe-php/init.php');
      • mdagosta
        hpar the problem is I've bumped it 3 or 4 times
      • Tytygh has quit
      • and 48 hours with no response
      • The other issue is that support is holding our money hostage until we comply... and not verifying our compliance or responding
      • dqsf joined the channel
      • dqsf has quit
      • hpar
        NJ_: there are many pieces involved in this; *you* need to be the one to debug the PHP script. I can't help you write your payments page one line at a time, you need to sit back, take time to read the documentation, and approach the problem analytically
      • mdagosta: I sent you a DM, could you check on that?
      • NJ_
        hpar, I'm not asking you to do that, I'm just reporting back that despite inserting code provided by Stripe support, the integration still isn't working.
      • stripe791
        NJ_ you are mixing php with js
      • hpar
        NJ_: the code is not designed to be copy & pasted and work without further development. The code examples are illustrative so that a web developer can take that and build out a full system
      • NJ_
        stripe791 - the code was provided by Stripe support
      • Jason___ joined the channel
      • hpar - I have replaced the key information with our own information, along with product details, priving etc.
      • Jason___
        Hey need some help with my transaction it didn’t come threw
      • NJ_
        pricing*
      • Jason___
        Any people from stripe here ?
      • Is there a number I can call
      • stripe791
        @hpar, many messages to handle :D did you see my last response?
      • Xionkana joined the channel
      • david_in_az has quit
      • NJ_
        I have read the documentation, I've made the changes recommended in it, and it's still not working. If Stripe support won't/can't help with that, and there are no errors reported on the site in order to be able to debug, where does that leave us exactly?
      • larafale joined the channel
      • hpar
        Jason___: no number, you'd want to contact email or chat support at https://support.stripe.com/email/login
      • Xionkana has quit
      • __stanislaw joined the channel
      • simonguertin
        on the API - (void)createCustomerKeyWithAPIVersion:(nonnull NSString *)apiVersion completion:(nonnull STPJSONResponseCompletionBlock)completion {
      • I send null as the completion parameter as describe in the docs but I get a error.
      • I send null because I don't have a ephemeral key available.
      • How do I abort loading the customer in this case of network issue ?
      • hpar
        simonguertin: what's the error you get when you send null?
      • __stanislaw has quit
      • simonguertin
        *** Assertion failure in -[STPEphemeralKeyManager getCustomerKey:], /Users/bg/stripe/stripe-ios/Stripe/STPEphemeralKeyManager.m:106 2018-02-28 13:35:51.897573-0500 LiftReminder[560:229779] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not parse the ephemeral key response. Make sure your backend is sending the unmodified JSON of the ephemeral key to your app. For more info, see
      • NSError * errorClient; if(success == YES && JSON != nil) { completion(JSON, errorClient); } else { completion(nil, errorClient); }
      • hkhk
        NJ_ there's many issues on your snippet, one of the main things that stripe does is making it easy for people to integrate payments into their website as the credit card data is all handled by stripe - they generate a token (js code) and that needs to be sent to your server (php code) to send to Stripe to actually charge it
      • __stanislaw joined the channel
      • Jason___ has quit
      • simonguertin
        yes, I get error when null.
      • Customer is OK when I pass the JSON for Ephemeral Key
      • hkhk
        NJ_ if you don't include their PHP library at the top of your file then you won't be able to access anything like `\Stripe\Stripe::setApiKey(....`
      • NJ_
        hkhk this has not been easy by any means. We have followed instructions from Stripe support, to the letter, combined with extensive reading of the documentation. The tokens, according to support, are being generated but no charge is occuring.
      • stripe791
        @hpar: when I create a new invoice then a source is created (and in testing, don't know if it's also in production, for multiple invoices there is only one source), but the only way I think I can get the source routing number and swift and all that is by requesting the source, but how can I be sure this source is related to the invoice? I can't create a source and attach it to an invoice manually..
      • hkhk
        NJ_ the PHP library is a helper library they provide to make things easier for developers to interact with their server instead of writing all their own code to do the communication
      • simonguertin
        I am trying to pass null as in the STPJSONResponseCompletionBlock documentation
      • typedef void (^STPJSONResponseCompletionBlock)(NSDictionary * __nullable jsonResponse, NSError * __nullable error);
      • NJ_
        Stripe support haven't told us which library files we need to include so we're feeling a bit "thrown out the back of the car" since we signed up for an account with them.
      • __stanislaw has quit
      • hkhk
        NJ_ give me a few minutes i'll point you in the right direction - this is the library you'll need to use https://github.com/stripe/stripe-php if you want to use anything like `\Stripe\Stripe::setApiKey` etc
      • mdagosta
        lol NJ we've been with Stripe for almost 5 years and they are threatening to throw us out the back of the car too
      • devguy joined the channel
      • devguy
        hello everyone
      • for updating the source or payment of a customer can we use token to capture the card and do like the example in https://stripe.com/docs/sources/customers
      • Moose_ joined the channel
      • stripe791
        NJ you should know PHP before doing integrations in PHP..
      • Moose_ has quit
      • devguy
        meaning for source parameter can we use token as the source and then default that same source to the token as well?
      • NJ_
        charming stripe791
      • Moose_ joined the channel
      • stripe791
        I'm sorry but you can't expect stripe to teach you how to program PHP because it's one of their ways to integrate..
      • Moose_ has quit
      • NJ_
        just looking for a little help installing a <drum roll> payment button
      • Moose_ joined the channel
      • hpar
        devguy: I really don't understand what you're asking here, sorry. You can create a card source from a token and attach the card source to a customer
      • devguy
        ill provide a gist
      • hpar
        NJ_: there's no easy payment button with Stripe at the moment. It's two parts: 1/ you add the frontend JS (which you've done), and 2/ you write backend PHP code to create a charge from that token
      • NJ_
        hpar, Stripe support have provided us with the backend PHP code to create a charge from that token
      • hpar
        NJ_: as a programmer I've backed away from doing that on projects because I found it easier to just use one of the integrations. Got it done in an hour vs having to learn & debug.
      • digitalnomad91 has quit
      • NJ_
      • ...and it doesn't work.
      • If Stripe can't do it, what chance to do we have...PHP experts or not?
      • Manny joined the channel
      • hpar
        I'm saying, sometimes the most effective thing to do is _not_ write code
      • devguy: oh, your callbacks aren't nested correctly, you need to do the update inside your createSource callback
      • Manny
        Is it safe to assume that the first element of the array is the primary card on file when using this method \Stripe\Customer::retrieve({CUSTOMER_ID})->sources->all(array( "object" => "card" ));
      • devguy
        meaning i should do a then function instead?
      • __stanislaw joined the channel
      • NJ_
        uploading init.php to our server and calling it as <?php require_once('lib/init.php'); ?> is crashing the entire page (whiteout)
      • stripe791
        NJ_ did you also include the stripe library?
      • hpar
        devguy: sorry, on second look you're trying to *also* trying use the token twice, which won't work. You need to create the source, then update the customer's default_source to that source's ID (which is src_xxx, not tok_xxx)
      • stripe791
        @hpar, can I also get an answer please? sorry for all the questions.. my last message was - when I create a new invoice then a source is created (and in testing, don't know if it's also in production, for multiple invoices there is only one source), but the only way I think I can get the source routing number and swift and all that is by requesting the source, but how can I be sure this source is related to the invoice? I can't cr
      • devguy
        alright thanks.
      • NJ_
        which file is that stripe791?
      • stripe791
      • I didn't do an integration of stripe with php so i'm not sure i'm correct
      • hpar
        Manny: I wouldn't assume that, no, you want to check that it matches default_source
      • __stanislaw has quit
      • stripe791: sure, it's really busy today. I'm not 100% on how that works so I've been reading docs/testing on my end
      • NJ_
        stripe791, we call init.php on the page
      • it's uploaded to the server
      • it's completely crashing the entire page
      • bDreadz joined the channel
      • when we remove the call for init.php from the page, the page loads correctly. Must be something I'm doing.
      • hkhk
      • hpar
        stripe791: ok, so, if you are using ACH invoices then you will not get these details