#stripe

/

      • ywain
        alex______: there is no pattern, so yeah chances are pretty slim. that said it doesn't sound like a very good idea to have a publicly available field to issue API requests
      • alex______
        @ywain okay i see, how would i be able to have the user cancel a subscription?
      • eXalleR-
      • alex______
        @ywain atm i am phrasing the sub id through hyperlink as a var and canceling it from there
      • eXalleR-
        @ywain, cat you tell me where is the mistake?
      • ywain
        alex______: you should store the customer ID and maybe the sub ID in your database
      • eXalleR-: looking in a minute
      • mehakkahlon has quit
      • alex______
        @ywain i have already done that
      • @ywain but i am confused as to how would i setup the script to cancel the subscription
      • ywain
        alex______: so if you have the sub ID, why do you need the user to enter it?
      • saikat has quit
      • dysk_
        ywain: thanks for the answer, the link you posted is very helpful, especially that this formula isn't that simple :) The soultion should work, however it'll not be possible to display the fee to a custmer before they decide to pay, right?
      • alex______
        @ywain what im doing atm is phrasing the sub id through hyperlink for example, cancel.php?id=sub_2342432423
      • @ywain and on cancel.php i am canceling the sub with the id in the link
      • ywain
        dysk_: well when you know the total (before the fee), you could use the formula to compute the fee and display it to your customer
      • alex______: I think it'd be preferable to use session variables and look up the sub ID from your database without relying on GET or POST parameters
      • ivanthemeh joined the channel
      • ivanthemeh
        hey guys I am having a tough time figuring out how to add the product id and count to the charge so the correct info gets sent in the invoice. Im looking at the docs and I see the amount field but not product?
      • alex______
        @ywain but then i run into the trouble of a user having multiple sub ids
      • @ywain how would i know which one to cancel if i am looking at the sub id from their session id
      • ivanthemeh
        nm I found it lol
      • ywain
        alex______: you'd retrieve the list of sub IDs from your database, maybe retrieve the sub objects from Stripe and display a list to choose from to your customer
      • alex______
        @ywain yeah that would add extra menus
      • @ywain you think it would be a problem if i phrase the sub id through hyperlink as a var?
      • ivanthemeh
        oh wait no I didnt, that was the product object..still need help with that please.
      • ywain
        alex______: I'm not saying it'd be less work, just that it'd be (potentially) more secure
      • ivanthemeh: with you in a minute
      • alex______
        @ywain alr thank you
      • Robarelli joined the channel
      • ywain
        hi ivanthemeh. what are you trying to do exactly?
      • dysk_
        ywain: ok, but before I calculate the fee I need to know the card details (credit or debit, domestic or international, visa or mastercard etc.) to apply correct calculation rules. To have this info I need to submit card details to Stripe and get response. But this happens after payment for is submitted so there is no time to display the fee before creating a charge. I can only show it to the customer afterwards.
      • ivanthemeh
        right now I have it set to send a total amount to stripe and charge it, what I want to do is separate the items and amounts of those items and send that info in a invoice/recipt
      • receipt
      • ywain
        dysk_: right. so what you can do is collect the card information with Stripe.js / Checkout, then on your server, retrieve the token object (https://stripe.com/docs/api#retrieve_token) where you can look up the card's brand and other information you need to compute the fee, and display the total to your user before actually creating the charge
      • robzilla has quit
      • ivanthemeh: so what you need to do is 1. create an invoice: https://stripe.com/docs/api#create_invoice, 2. add items to this invoice: https://stripe.com/docs/api#create_invoiceitem, 3. pay the invoice: https://stripe.com/docs/api#pay_invoice
      • YoY_ has quit
      • phpeek has quit
      • phpeek joined the channel
      • coopf joined the channel
      • ivanthemeh
        @ywain so using this method I would not use create a charge correct?
      • ywain
        ivanthemeh: correct, the charge would be automatically created for you when you issue the "pay invoice" call
      • dysk_
        ywain thank you, now I got it. I need to split my payment process and detach submitting card details from making a charge. It will result with an addtional step where I present the final amount and ask a customer to confirm the charge
      • ywain
        dysk_: exactly
      • ivanthemeh
        @ywain where do I add the product id?
      • saikat joined the channel
      • ywain
        ivanthemeh: product as in a product object? https://stripe.com/docs/api#product_object
      • saikat has quit
      • ivanthemeh
        @ywain I see that but Im not seeing in the invoice object where to add the products?
      • saikat joined the channel
      • Angel_ joined the channel
      • ywain
        ivanthemeh: no, i'm asking you, when you're talking about product ID, is that what you're referring to? or are you talking about an ID in your own database
      • ivanthemeh
        Im going to create products in the dashboard and use the id in my site and eventually create products from the site
      • Angel_
        does stripe have someone I can talk to on the phone?
      • ywain
        Angel_: we don't provide phone support yet unfortunately
      • ivanthemeh: "products" as in product objets are part of the Relay API: https://stripe.com/docs/relay
      • alex______ has quit
      • ivanthemeh: so you'd need to create products, SKUs, and orders as explained in the doc I just linked. not using invoices as I said earlier
      • saikat_ joined the channel
      • saikat_ has quit
      • ivanthemeh
        @ywain ok so this is going to be a whole different process then, not using checkout?
      • Customer111 joined the channel
      • jessejangell joined the channel
      • saikat has quit
      • Angel_
        ok thanks. I just have a few questions and its sometimes harder to try to explain this way. My first one would be does Stripe have a mobile app - iOS and Android that our church attendees would be downloading to access this and a widget we can add to our website?
      • kaspergrubbe joined the channel
      • Customer111
        Hello, Can anyone from Stripe clarify a question on Virtual Currency prohibition ?
      • flippyhead joined the channel
      • [o__o] joined the channel
      • ywain
        Angel_: I recommend you look into third party integrations, some of them probably offer the features you're looking for: https://stripe.com/docs/integrations#fundraising
      • Angel_
        ok thanks - if I've started putting info into the test dashboard, how do I delete it?
      • eXalleR- has quit
      • ywain
        Angel_: there's "Delete all test data" button in the settings: https://dashboard.stripe.com/account/data. or you can leave it as is, it's not going to have any ill effects :)
      • zkirill joined the channel
      • ivanthemeh: okay, in that case, I recommend you don't bother with products and use invoices + items as I described earlier
      • Angel_
        what about my bank account info - it didn't delete that
      • ivanthemeh
        @ywain I was missing where to add the items to the invoice, I am going to have to use an array because there will be multiple items with unique quantities.
      • ywain
        Angel_: it's not possible to remove the bank info. you can close the account if you're worried about this (there's a "Close this account" button on the same page that I linked earlier)
      • ivanthemeh: an "invoice item" is just a line on the invoice. you could create an item with a description of "3 x My awesome product" and the correct amount for 3 of your awesome product :)
      • saikat joined the channel
      • Angel_
        thanks for your help!
      • Angel_ has quit
      • ywain
        Angel_: you're very welcome! :)
      • ivanthemeh
        ywain: thanks alot Im gonna work on this till I get it going today. Is there no way to test invoices other than going live and spending the minimum?
      • ywain
        ivanthemeh: you can test invoices in test mode. the email won't be sent but in your dashboard there's a "preview receipt" link that shows you what the email would look like
      • ivanthemeh
        ywain: ok great!
      • Stripe ftw!
      • ywain
        \o/
      • ivanthemeh
        you guys really are SUPER helpful in here , Im hope your business thrives!
      • ywain
        Well... so do I ;) and thanks, your appreciation means a lot!
      • IgorP joined the channel
      • IgorP
        Hi all
      • anyone available for chat?
      • ywain
        hi IgorP, what's up?
      • IgorP
        Hi
      • I am having issues with building Stripe litest framework with xCode 7.1
      • phpeek has quit
      • I am getting error Stripe.framework/Stripe(STPCardValidator.o)' was built without full bitcode.
      • ywain
        IgorP: I don't have much experience with Xcode unfortunately, but I know that there are cache issues with our SDK sometimes. Can you try creating a new project and importing our SDK again?
      • ivanthemeh has quit
      • IgorP
        yes, but I deleted all cache related to project
      • but I can try that also
      • phpeek joined the channel
      • pyweb joined the channel
      • markin
      • pyweb
        HI Stripe! A very quick question, let say I receive some money from Alice CC, Now that alice did her things, I want to give this money to BOB's bank account one other of my customer. is that possible on stripe even if bob never made a CC paiment?
      • markin
        pyweb: You would need to make Bob a Stripe account, and tell Stripe that Alice's charge is meant for Bob
      • pyweb
        Cool, is it working in canada?
      • ajs_ joined the channel
      • markin
      • IgorP
        tnx Markin
      • pyweb
        Thank you! Finaly, I will not pay out bob before quite some time after Alice paid with her CC. is it still possible?
      • markin
        the maximum you could hold it would be 30 days
      • phpeek has quit
      • pyweb
        ok that may work! so it is impossible to take my business money and send it to bob simulating a more than 30 day holding?
      • like a payout of some sort
      • markin
        Not using Stripe, you could potentially do it outside of Stripe though there may be some legal implications with doing so
      • nemothekid joined the channel
      • YoY_ joined the channel
      • pyweb
        ok thank you Markin!<
      • markin
        So sissleandblake was looking into some api_errors, and it looks like it was partially fixed but I can reproducibly cause them req_7GBM240wRhBK6g
      • mehakkahlon joined the channel
      • pyweb has quit
      • ywain
        hey markin! thanks, I'll let her know
      • IgorP has left the channel
      • markin
        thanks, it looks like I can do lists up to 10 now, but anything beyond that throws the error
      • zkirill joined the channel
      • dixon joined the channel
      • dixon has quit
      • dixon joined the channel
      • rehunted has quit
      • rehunted joined the channel
      • mehakkahlon has quit
      • mehakkahlon joined the channel
      • startupality joined the channel
      • coopf has quit
      • p15 has quit
      • startupality has quit
      • richardr has quit
      • vmayoral has quit
      • startupality joined the channel
      • dqsf joined the channel
      • mikesea joined the channel
      • dqsf has quit
      • uri_ joined the channel
      • bee_keeper has quit
      • aligajani joined the channel
      • bee_keeper joined the channel