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?
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
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?
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
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
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
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.
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