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?
@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
@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 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: 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 ?
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?
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