#stripe

/

      • irctc386
        I see. that makes sense. also, what are the hours for this chat service?
      • nemothekid has quit
      • markin
        There aren't any official hours. I tend to be around whenever I'm awake
      • nemothekid joined the channel
      • siraj joined the channel
      • irctc386
        ok, thanks man!
      • i apprciate your help
      • ta has quit
      • irctc386 has quit
      • nerdfiles has quit
      • nerdfiles joined the channel
      • saikat joined the channel
      • shpoont joined the channel
      • max-b has quit
      • nemothekid has quit
      • zeitgist joined the channel
      • max-b joined the channel
      • cmhavoc has quit
      • nerdfiles has quit
      • nerdfiles joined the channel
      • rfj001 has quit
      • zeitgist has quit
      • scott918 has quit
      • ta joined the channel
      • Craigy has quit
      • nerdfiles joined the channel
      • nerdfiles has quit
      • ta has quit
      • scott918 joined the channel
      • ericjung has quit
      • nerdfiles joined the channel
      • Craigy joined the channel
      • Laertiades joined the channel
      • Laertiades
        Hello
      • siraj joined the channel
      • nerdfiles has quit
      • nerdfiles joined the channel
      • I would like to set up a system whereby a user could make a single purchase and the proceeds would be divided among multiple vendors. Is Stripe Connect the way to go for this?
      • ta joined the channel
      • zeitgist joined the channel
      • ericjung joined the channel
      • ta has quit
      • ericjung has quit
      • markin
        Laertiades: You'd need to use the Transfers API for that. Connect is one charge per vendor
      • Onivoi has quit
      • zeitgist has quit
      • scott918 has quit
      • Craigy has quit
      • barandclubstats joined the channel
      • barandclubstats
        hey i am trying to end a subscription trial immidiately after updating a card... please advise
      • rfj001 joined the channel
      • markin
        barandclubstats: set trial_end to now
      • drale2k joined the channel
      • wsmoak has quit
      • barandclubstats_ joined the channel
      • barandclubstats_
        i did but its not working
      • markin
        barandclubstats_: what do you mean its not working?
      • wsmoak joined the channel
      • barandclubstats has quit
      • barandclubstats_
        t
      • the card update is working but its not letting me update the subscription
      • markin
        are you getting an error message?
      • barandclubstats_
        no thats the weird part
      • i am using the stripe php wrapper
      • markin
        Do you see the request in the logs section of the Stripe dashboard?
      • aracodex joined the channel
      • nemothekid joined the channel
      • barandclubstats_
        i am getting your card was declined
      • message: "Your card was declined." type: "card_error" code: "card_declined"
      • but my card definately works so I am confused
      • aracodex has quit
      • shpoont has quit
      • ? markin
      • eddieh joined the channel
      • eddieh
        Hi
      • markin
        barandclubstats_: are you in test mode or live mode?
      • eddieh: Hi
      • brightoak joined the channel
      • brightoak
        is it 2.9% regardless of the card type?
      • markin
        brightoak: yup
      • brightoak
        and if we are in the US and and the client is in Canada... do you know much extra that will be?
      • lets say for a $1000 trnasaction
      • is there a link or something i can look at?
      • markin
        If you charge them in USD nothing, if you charge them in CAD there is a 2% conversion fee as listed at stripe.com/pricing
      • barandclubstats_
        live mode
      • markin
        barandclubstats_: then you should contact your bank
      • There are a ton of reasons why a bank may decline a charge
      • eddieh
        How would you recommend I record my Stripe fees on my own accounts? Does stripe produce invoices/receipts for their own fees that I can add to my own expenses / purchase invoices?
      • In terms of my own bookkeeeping for my business
      • markin
        if you do an export from the dashboard it will list the fee
      • or you can get the fee from the API
      • barandclubstats_
        markin: do you know why my card could be declined?
      • rfj001 joined the channel
      • markin
        It could just be your bank thought the charge was suspicious. In general doing testing stuff with live card numbers is gonna cause weirdness because multiple charge attempts looks funky to a bank
      • barandclubstats_
        all 3 of mine were declinde
      • i first add the card. Then i made it default. then i try to end the trial and it is saying card declined
      • markin
        So you're able to add the card successfully?
      • eddieh has quit
      • barandclubstats_
        yes
      • heavysixer has quit
      • markin
        So if you were to view the customer in the dashboard your card appears?
      • barandclubstats_
        markin: yes its there
      • but when i go to end the trial its saying card denied
      • markin
        how much is the subscription?
      • barandclubstats_
        6 x 19.99 a month
      • drale2k has quit
      • brightoak has quit
      • markin
        and how are you ending the trial?
      • through the api by updating it with trial_end now? I would call up your bank. The fact that the card got added means it was verified but they might think a $1 authorization followed by a $120 charge is odd
      • barandclubstats_
        I am going to try by adding the card by updating the subscription
      • which is correct?
      • $subscription = $cu->subscriptions->retrieve($sub_id); $subscriptions->array("card" => array("number"=>$number,"exp_month"=>$expmm,"exp_year"=>$expyy,"cvc"=>$cvc)); $subscription->trial_end='now'; $subscription->save();
      • markin
        whoa, the card number should never, ever be touched in php code
      • barandclubstats_
        DISREGARD PREVIOUS
      • $subscription->array("card" => array("number"=>$number,"exp_month"=>$expmm,"exp_year"=>$expyy,"cvc"=>$cvc));$subscription->trial_end='now';$subscription->save();
      • or
      • pedstrom joined the channel
      • markin
        So you're still massively violating PCI
      • and subscription->array("card" => array("number"=>$number,"exp_month"=>$expmm,"exp_year"=>$expyy,"cvc"=>$cvc)); looks really wrong
      • zeitgist joined the channel
      • barandclubstats_
        markin
      • should i use stripe token instead?
      • markin
        its not should, you must
      • barandclubstats_
        I dont see what the big deal is
      • markin
        Its the rules of PCI, which govern all merchants that handle credit card info. You cannot have card numbers touch your server-side code without a fairly large compliance burden
      • zeitgist has quit
      • barandclubstats_
        Its just for testing
      • is that why its not working in prod
      • markin
        if its for testing you shouldn't use your real credit card number and live api key
      • you definitely shouldn't be using that code in production
      • AlexMorse joined the channel
      • AlexMorse
        Is there a way to void a transaction instead of refund?
      • markin
        AlexMorse: node
      • *nope
      • AlexMorse
        Blast, thanks for the quick answer though!
      • markin
        AlexMorse: you're welcome, Sorry I couldn't give you the answer you wanted
      • stripe298 joined the channel
      • stripe298
        Hello
      • I have a quick question
      • i want to use my own "buy now" button for my upsell pages. so the user will have already bought my initial product
      • and thus entered their credit card info
      • so i want to be able to use the "1 click" buy now but how can I use my own button?
      • AlexMorse has quit
      • markin
        stripe298: you would have your own button, when they click that, you'd trigger some server-side code to create a new charge for that customer
      • stripe298
        exactly yeah. how would i do that? my code so far is this...
      • <form action="" method="POST"> <script src="https://checkout.stripe.com/checkout.j...; class="stripe-button" data-key="pk_test_COB5SH6Wuk79FFJmNvluFdkB" data-amount="29700" data-name="The MC3 Project" data-description="Dating Service ($297.00)" data-image=""> </script> </form>
      • but i dont want to use the stripe button, i want to use my own button
      • markin
        stripe298: you wouldn't use Stripe checkout at all.
      • scott918 joined the channel