@timebox I looked at that page, and I can't find "incomplete_zip"
timebox
arkin: Ahhh, hmmm. Maybe there's another list. :)
deadghost_ has quit
arkin
I found this — validation_errorErrors triggered by our client-side libraries when failing to validate fields (e.g., when a card number or expiration date is invalid or incomplete).
But am struggling to find the client sisde list
timebox
juliopy: Those particular items are Payments, and I think the way they're being created will indicate what ends up in the Description there.
chad___
Hi, question here -- I'm seeing `com.stripe.exception.InvalidRequestException: Invalid hash` when I try to create a customer using v 5.7.1 of the java api
onkora
@timebox: this was the doc I was looking at, but under the customizing receipts section it seems like the only option is to upload a personal logo. What I'm wondering is if there's a way to layout other elements around the email?
chad___
I'm not sure what that means. I'm only passing metadata containing the user's id on my end
Still missing the incomplete_zip which I'm definitely getting :/
I suppose this helps though, thanks
timebox
chad___: Is that new code, or did you upgrade and it's now breaking?
chad___
new code
timebox
arkin: Hmmm.
davidyoung joined the channel
chad___: Can you share the code you're using here in a Gist or Pastebin?
onkora: No, there's no way to customize the email - if you want a custom receipt email you'll have to build that yourself.
Nicholas_Cardot has quit
Prelinks
Hello, I was hoping to get some help on the way to change the default payment method for a connected account - for example, from Destination Charges to Separate Charges & Transfers? (Non-technical right here, so would like to know if and how this can be achieved via our platform account's dashboard!)
juliopy
timebox: hmm, I see, I'm creating those payments (Charges on the API) with the description set to the name of the product paid for.
Nicholas_Cardot joined the channel
Nicholas_Cardot
Any Stripe experts around today?
timebox
juliopy: Hm. Weird. Can you share a Charge ID for on of them?
Prelinks: That will take some engineering work, as it will change the way your application works.
Nicholas_Cardot: Hi! What's up?
Nicholas_Cardot
So I'm working on a migration from WooCommerce over to Easy Digital Downloads
juliopy: It doesn't really matter - it's just an ID. It's meaningless outside of your account.
juliopy: ...But it's totally up to you. :)
juliopy
timebox: here you go ch_1AkEjtA8dHWzFxhYEGdo8203
Nicholas_Cardot
On the WooCommerce side, they never created subscriptions inside of Stripe, instead, they created a payment and when it's up for renewal they just use the API to request a follow up payment. On the Easy Digital Downloads side, they rely on subscriptiosn to be created inside of Stripe and then they wait for the inbound notifications via the webhook
in order to update or renew the subscription. So I need a way to create these subscriptions inside of Stripe.
juliopy
timebox: the description of the payment is STA217213000808
Nicholas_Cardot
So on the EDD side, they have a field in the database for the Profile ID which they use to match up those webhook notifications to the right subscription. The Profile ID is equal to the Subscription ID inside of Stripe.
freesmoke has quit
juliopy
timebox: but on the payout (po_1Al8zZA8dHWzFxhYJ9FFlmb3) it shows with the email of the customer.
@timebox Okay, so I shouldn't count on being able to simply change payment method? In which case, given that we will occasionally need to make use of SC&T, would you suggest using that as the default payment method during connect account creation? Our needs are best served by having flexibility over transfer of funds (in terms of timing and amounts - we will always be transferring funds to a single account for any given payment; no
Karim is now known as Guest78804
Nicholas_Cardot
So I was thinking that maybe I could migrate over the customer ID into that field and then set up a cron job that runs every morning at 12:01 AM and finds all the active subscriptions in Easy Digital Downloads that are supposed to renew that day, create the subscription inside of Stripe and then update the Subscriptions to have the subscription's I
D in that field to replace the customer's ID that I had placed in there during the migration.
Would something like that work?
Guest78804
is it possible to integration paypal with Stripe subscriptions
timebox
arkin: Awesome. :)
arkin
Luckily they all contain unique strings.
mezod joined the channel
Guest78804
we have subscriptions on our website implemented using Stripe subscription api, I want to know if it is possible to add Paypal as a way to accept payment to create a new subscription?
timebox
Prelinks: There's no setting for that - it's something that's built as part of your application - so you'll want to talk to your developers about how to make use of that.
Nicholas_Cardot: I think you'll probably want to export all the subscription details from WooCommerce, and then re-create those as actual Stripe Subscriptions, and then add those Subscription IDs to your EDD database - does that make sense?
Nicholas_Cardot
Yes, I didn't know that I could import them directly into Stripe.
Ferran-bl
@timebox, I have a code almost working (I think). The code you shared (http://jsfiddle.net/bfsvy9ka/) says "Make an AJAX post request using JQuery, change the first parameter to your charge script", and I guess it's referring to the $.post("/echo/html/",myData, line, because I see the request on my console trying to reach my-domain.com/echo/html and, obviously, does not work. Can you help me on this?
timebox
Guest78804: Unfortunately PayPal won't work as a payment method for Stripe Subscriptions, so you'd need to integrate/setup PayPal subscriptions for that.
Nicholas_Cardot
How is an import like that done? And how can I keep them linked once I move them to EDD?
RyanOstrom joined the channel
Guest78804
@timebox thanks for the info. Is ApplePay accepted as a payment in stripe?
Ferran-bl
(I don't have any "charge" script. The idea is to do it all from that single page (plus js)).
timebox
Nicholas_Cardot: You can't - you'd have to write a script to create them. And you'd want to use the `trial_end` parameter and set that to the next scheduled billing date so they aren't charged until then: https://stripe.com/docs/api#create_subscription...
Prelinks
@timebox - are you able to recommend to me which method of payment is preferable, given our specific business needs? Can I private message you?
RyanOstrom
@here, Regarding the Payment Export report, is there a way to remove columns that were added via Meta Data? I've changed the type of meta data columns I'm sending to stripe for payments, and am looking to no longer show the original meta data columns.
Prelinks: That's not really something I can help with here, so you'd be best to reach out to Support (https://support.stripe.com/email/login) and explain what you're trying to do, and they can point you in the right direction.
Prelinks
@timebox cheers, have a good one!
Prelinks has quit
timebox
Ferran-bl: You need to set that to the path that your PHP script is at.
Guest78804
@timebox timebox thanks. i will go through the documentation
Nicholas_Cardot
I was thinking about doing that, in fact. So I can just use the trial period to offset the renewal to the correct date. I can create them during the migration script so they are created an matched properly during the import.
I like that idea.
Ferran-bl
I don't have any PHP script. :o
timebox
RyanOstrom: I don't think so, but if you filtered by date to things that only included the new metadata types, it should only include those. But that's a better question for Support, to be honest: https://support.stripe.com/email/login
Guest78804: You're welcome! :)
Nicholas_Cardot: Sounds like you're on the right track. :)
Ferran-bl
Any sample code for that PHP script?
RyanOstrom
Thanks all for the quick answers, I appreciate it. Glad to hear that filtering by data would filter the meta types, that should work just fine
Ferran-bl
@timebox Should I create a simple PHP file containing the code from https://stripe.com/docs/charges ? (the PHP one). But that file should contain something else, right?
chad___: Sorry. So ... I ... don't know Scala at all, but I would guess that it's not structuring the request properly. Is there a request ID in the error stacktrace?
I mean, I know that Scala is a thing, but ... that's about as far as I got. :)
OK, let me see... that would be great! :) That php looks better
Nicholas_Cardot
@timebox When I run this migration script, it's going to be creating thousands of subscriptions inside of Stripe. Will I run into any rate limiting issues with that?
timebox
Nicholas_Cardot: If you're doing it in series - i.e., in a loop - and not in parallel, you should be completely fine.
RyanOstrom has quit
sc4 joined the channel
sc4
I am trying to update the dob of a connect custom account.... how is this not working ?? $acct-retrieve->legal_entity->dob->array("day" => $_POST['birth_day'], "month" => $_POST['birth_month'], "year" => $_POST['birth_year']);
timebox
juliopy: Sorry, didn't forget about you. I'm not sure why that's showing up that way, but it looks like the email might be what it defaults to there. Support might have a better idea as to the answer: https://support.stripe.com/email/login
Ferran-bl
Never used Composer, and stripe lib is not installed in my PHP, for sure. Trying to just include it downloading the code...
Nicholas_Cardot
Yeah, it's in a loop. Cool then.
timebox
Ferran-bl: That should work.
Nicholas_Cardot: Awesome. :)
sc4: I don't know if that's an updatable value...?
sc4
how do i know what is and isn't an updatable value?
juliopy
timebox: cool! thanks for looking into it!
Ferran-bl
But instead of doing require_once('vendor/autoload.php'); in config.php something else is needed... right?
timebox
juliopy: You're welcome - sorry I didn't have a less wishy-washy answer for you. :)
sc4
I was thinking that may not be an updatable value because most people wouldn't want to change their birthday
@timebox Got it. Everything has to literally use java.util.Map[String, Object]
sc4
ok thanks
timebox
chad___: Ahhhhh, ok. There you go. TIL. :)
chad___
I was able to convert the metadata map to that form and it works fine
sc4 has quit
timebox
chad___: Awesome. I feel like that makes sense, but ... I don't know why. ¯\_(ツ)_/¯
Ferran-bl
I am very close, but not yet. I have a page and the ajax request. This ajax should go to a php file, with the contents of https://stripe.com/docs/charges ? but that code does not even load config.php, etc...
timebox
Ferran-bl: What are you hosting the PHP file on? Are you following the checkout/php tutorial exactly?
ikazuchi
@timebox thanks for pointing it out about the shipping address issue I'm able to resolve it now. Is there a particular reason why the token doesn't automatically capture shipping like the billing?
Ferran-bl
No, let me follow just that page.
timebox
ikazuchi: Since the Token just represents the Card, 'shipping' isn't really relevant information there; rather, it's specific to - and variable based on - a Customer, or potentially even on a per-Charge basis. Does that make sense?
MaKu joined the channel
Godsson83
is there a limit of the amount of metadata items you send ??
@timebox I have an html page that displays the form plus the js for stripe. This worked fine but I was only getting the token, not actually making the payment (which is what I want). Then I am trying to do an ajax call, thinking that would be all. But I do see that the ajax call needs to "call" a .php file which is the one that will load the stripe-php etc etc. This php file is the one I am struggling with, now.
timebox
Ferran-bl: Right. How are you serving that PHP page?
Ferran-bl
Yes
how?
Mmm serving them in Apache? Don't understand the question, sorry
ah, "that" php page.. I am not serving it at all, yet!
timebox
Ferran-bl: Ya, the charge creation page. :) Once you've got that hosted you'll be able to work through debugging it and stuff.
Ferran-bl: Or rather, served/running/working/etc.
Json joined the channel
Json
Hi Stripe
Ferran-bl
I don't want that the user goes to that php page. It is not the "Thank you" page (although I could put the code in the thank you page, and do the charge there?)
Json is now known as Guest42816
timebox
Ferran-bl: You totally could put that in the Thank you page (as long as it's PHP or some other server-side script).
Ferran-bl
It's plain html but could be php just fine
Guest42816
Can you submit webhooks to the same endpoint using different Accounts?
timebox
Ferran-bl: ...And then decide to either thank them or tell them to try again, depending on if it fails or succeeds: https://stripe.com/docs/api/php#errors
Guest42816
My concern is with dupe event ids
timebox
Guest42816: It's just a URL that you enter, so you totally could; however, it would be difficult to determine which Stripe Account it came from (unless it's for Connected Accounts; then it'll contain an account ID).
Ferran-bl
So in the first page I do collect the info and it gets submitted (via POST) to the thank you page and it's actually when you load the thank you page that the payment gets triggered , I am righ?