#stripe

/

      • quazimodo has quit
      • korben
        spala: I mean print it to a console or log somewhere so you can see what amount is before you submit it.
      • eacameron has quit
      • spala
        Korben: yes i echoed the variable even on the same page as the payment form and the amount displaced perfectly but it fails in the stripe\charge part
      • quazimodo joined the channel
      • Gsham has quit
      • eacameron joined the channel
      • spala has quit
      • eacameron has quit
      • eacameron joined the channel
      • flef joined the channel
      • flef
        does stripe provide a book on how to record tranasactions, for example should I store tax, price, and total price, or just tax and price
      • eacameron has quit
      • datafate is now known as cosmo
      • cosmo
        flufs!
      • Who needs a fluffer??
      • omg lol
      • I'm back!
      • eacameron joined the channel
      • simple
        I need help setting up stripe elements
      • where do I put the javascript part of the code
      • from the example here https://stripe.com/docs/elements
      • eacameron has quit
      • eacameron joined the channel
      • eacameron has quit
      • mfp__ has quit
      • Jon_ joined the channel
      • mino922 joined the channel
      • Jon_
        I'm struggling here. I'm building an app that integrates stripe express connect. I've been able to get the users setup and retrieve an account ID, added a login link for them to update their account information via the express platform. Can I charge one customer using their account ID and pay another using their account ID? I don't know what to put in my POST chargeCustomer call for source ...
      • quazimodo has quit
      • Gsham joined the channel
      • eacameron joined the channel
      • eacameron has quit
      • mino922 has quit
      • eacameron joined the channel
      • Moose has quit
      • Moose joined the channel
      • eric_lagergren has quit
      • SomeGuySomewhere joined the channel
      • eacameron has quit
      • eacameron joined the channel
      • kies has quit
      • ezl joined the channel
      • eacameron has quit
      • lessless joined the channel
      • ezl has quit
      • stripe408 joined the channel
      • stripe408
        hi - what are the best tools for examining stripe post parameters? for example, what other parameters are in $_POST besides 'stripeToken'?
      • eacameron joined the channel
      • Jon_
        Good luck getting a response.
      • Jon_ has quit
      • stripe408 has quit
      • eacameron has quit
      • eacamero_ joined the channel
      • eacamero_ has quit
      • eacameron joined the channel
      • eacameron has quit
      • eacameron joined the channel
      • kies joined the channel
      • eacameron has quit
      • Night joined the channel
      • Garbee has quit
      • Night is now known as Guest36464
      • eacameron joined the channel
      • Night___ has quit
      • deadghost_ has quit
      • quazimodo joined the channel
      • CoolBreeze joined the channel
      • eacameron has quit
      • Gsham has quit
      • justdl has quit
      • flef has quit
      • bschwind joined the channel
      • bschwind
        Does Stripe support prepaid Visa cards (specifically in Japan?) The test cards have an option for MasterCard Debit and MasterCard prepaid, but no test card for Visa prepaid. Does a Visa Prepaid just act exactly the same as a Visa Debit?
      • simple
        From my understanding prepaid cards are the same as real. But I'm not expert
      • simple has quit
      • lokanath joined the channel
      • kaylined
        bschwind, visa prepaids do work, yes. Not sure about Japan specifically, but I'm sure they do.
      • bschwind
        kaylined, great, thanks for the confirmation!
      • eacameron joined the channel
      • amishra joined the channel
      • amishra
        any stripe developers online?
      • cweiss joined the channel
      • hello cweiss
      • Do you currently use Stripe?
      • eacameron has quit
      • ftknox joined the channel
      • Ronan__ has quit
      • nexie joined the channel
      • ftknox has quit
      • anyone here uses Stripe yet?
      • nexie has quit
      • stripe675 joined the channel
      • ddellav
        amishra i've used stripe for awhile, whats up?
      • stripe675 has quit
      • amishra
        Trying to understand the learning curve on initial set up
      • ddellav
        it's a fairly small curve compared to other payment services I have integrated
      • besides something completely hands off like PayPal or some bitcoin services where you're literally just dropping a button on the page and thats it
      • but thats not "payment integration" thats a link to someone else
      • amishra
        Paypal was quite easy as you would create button and so forth on the page so you can see graphically how you want to customize before they give you embed code. Here it seems you have to know what you are creating.
      • ddellav
        right, this is actual integration with your app. You can go the easy route and use their quick checkout system
      • that is basically a popup that collects all the info and returns back a token for you to submit server-side
      • amishra
        Yeah, I hated that about Paypal where it redirects you to their page unless you pay for some kind of pro service.
      • ddellav
        right, stripe gives you full control
      • amishra
        There are essentially two types of set up I will need. One for donations button where users can have flexibility to the amount they want to pay. The other is a fixed amount, but user gets ability to type in the number of tickets they want to purchase.
      • This is going to be used on a non-profit website so down the road, I may also be interested in adding a subscription button for someone who may want to donate a fixed amount overtime on a regular basis.
      • ddellav
        ok, both of those remove your ability to use their simple checkout process only. You will have to create a form that captures the custom amount and any multipliers then calculates the proper amount and pops up the checkout modal
      • for them to enter their payment info
      • then that will submit to your server where you will take their token and submit the charge to stripe
      • amishra
        How difficult is what I am trying to achieve? Can I achieve all three?
      • bravo joined the channel
      • bravo
        Hello
      • ddellav
        fyi subscriptions can be tricky, they really require the development of a web hook to listen for subscription events and react to them. Though I suppose if you don't need to do anything if they don't pay or whatever you can maybe just ignore it
      • amishra you definitely can. I have actually coded all of those before
      • amishra
        Okay, I can let go of the subscription idea
      • Once I get more familiar with it, I can think of ways to add that later but in order to create a simple donation button giving free text for user to pay is fairly easy?
      • ddellav
        amishra here is the stripe docs i followed when setting up the custom amount payment page: https://stripe.com/docs/recipes/variable-amount...
      • bravo
        I actually used invoice.payment_success and invoice.payment_failed to grant or deny access to my subscription serve
      • service*
      • ddellav
        bravo correct, that is the normal way of doing things. You can also expand it by using other events to warn the users when their payments are coming up
      • bravo
        I should probably do that too lol
      • amishra
        that first line of code has fixed amount hard coded, but you are saying that is a variable amount?
      • ddellav
        you might also want to listen to the subscription cancelled event in case they cancel it through stripe
      • amishra that first line of code is showing you how to set the amount dynamically
      • so the idea is you could have your templating system input the amount into that button code
      • that would be the simplest way of doing things
      • but most likely you will have the button code on the same page as the form field for setting the amount
      • that would require some javascript to get working properly
      • amishra
        it has constraint data amount line, data-amount="2000">
      • ddellav
        i.e. to do it without having to submit the form and re-loading
      • amishra
        constant value*
      • ddellav
        amishra right, you could set that in your templating code if you used that type of system
      • so data-amount="{$post.amount}"
      • or $("#div").data('amount', 2000); with jquery
      • in that example it would be $(".stripe-button").data('amount', 2000);
      • additionally that first bit of code is showing HOW to set it beforehand, not how to set it dynamically
      • it's like "this is how you usually do it, but if you want variable, read on"
      • if that makes sense
      • amishra
        would it be possible to open up like a widget or layover payment screen (not popup but within page)?
      • bravo
        Thank you, I just wrote a note of that. I am just here to get some expert advice. What ids do you recommend me storing in my database to avoid extra work in the future. I am guessing, Customer ID and Subscriber ID?
      • ddellav
        amishra you can do whatever you want, as long as you have the coding experience to make it happen, sure
      • you could launch a bootstrap modal to do what you needed.
      • I'm just saying what is the easiest route
      • bravo personally i store customer_id, charge_id, and subscriber_id
      • along with the actual subscription they chose
      • but i err on the side of storing more than necessary
      • better to have it and not need it...
      • amishra
        you do any freelancing work? I may have to hire you to set one up :)
      • ddellav
        lol I do, feel free to PM if you want more info
      • eacameron joined the channel