#stripe

/

      • Rikle_S
        How can I retrieve all account informations from a standalone account ?
      • w-p joined the channel
      • w-p
        Is there anyway to request an authorization token during testing in an automated fashion?
      • Rikle_S
        I don't have legal_entiy
      • kaylined
      • w-p What are you looking for? A tok_xxx object?
      • Rikle_S
        with this request, I don't have legal_entity
      • w-p
      • Rikle_S
        no
      • I already done this
      • kaylined
        Ah, the oauth flow. I'm not sure tbh.
      • w-p
        so, that's not cool for writing tests
      • Rikle_S
        oauth flow is ok
      • Phil624
        Not squarespace because I get the same result trying to do a charge in the stripe dashboard.
      • Ugh
      • Rikle_S
        I run this curl https://api.stripe.com/v1/accounts/acct_gregergre -u sk_test_fezfezfe:
      • And the response don't give all the details
      • kaylined
        Phil624: Are you using the card number 4242-4242-4242-4242?
      • Rikle_S
        like : legal_entity, product_description, support_email etc
      • w-p
        kaylined: when trying to curl https://connect.stripe.com/oauth/authorize?resp... client id> the response is not positive. :)
      • i really need it for automated testing purposes. even if I just generate a test authorization token - that would work.
      • kaylined
        Rikle_S: I'm not sure if you'd get access to that on a Stand Alone account or not; I know you do with Managed accounts.
      • Yeah, I have no idea there w-p, sorry.
      • w-p
        Oh... killing me...
      • Rikle_S
        kaylined: I use managed, and i'm updating my application to use standalone too
      • kaylined
        If you retrieve a managed account, it should have a legal_entity attribute
      • Rikle_S
        kaylined: that's why I need to fetch all Accoun objects
      • w-p
        Is it possible to reuse one of the ac_xxx codes since they were generated from test/dev settings?
      • Rikle_S
        no, it's not a managed, it's a standalone for this one
      • s2013 has quit
      • Phil624
        No using a live card.
      • Flipping the switch to "View Test Data" everything worked fine when it wasn't live.
      • kaylined
        Phil624: Try using 4242-4242-4242-4242 exp 01/20 CVV 123
      • w-p
        So, where I can submit a formal feature request to get something like a test authorization code for use in my unit tests?
      • Phil624
        K
      • kaylined
        w-p: https://support.stripe.com/email - I'm not sure if dqsf is lingering still, but he may have more for you on that one as well.
      • dqsf
        w-p: if you have a feature request, yes, please write in
      • s2013 joined the channel
      • Rikle_S
        kaylined: it it's not a managed account, all the Account data is not available ?
      • dqsf
        Rikle_S: if it is a standalone account it is expected that you wouldn't get full details, many of those are managed account only
      • Rikle_S
        ok thx
      • dqsf
        Phil624: I might recommend writing in, sharing some examples of charges that failed, support can have a look
      • Phil624
        Kaylined: Works great in test mode.
      • kaylined
        Phil624: That's why; your square space needs to be in a Live mode for real credit cards to work.
      • w-p
        Cool. I'm sure you guys can knock it out in one sprint. ;)
      • Phil624
        Thanks dqsf. I did about 5 hours ago so I thought I would mess around.
      • kaylined
        If the test card worked, that means you're stuck in test mode
      • place_ joined the channel
      • And I'm not sure how Squarespace handles the transition from live/test API keys
      • Phil624
        Kaylined: I am leaving squarespace out of it and just trying to get a charge through on the Stripe dashboard.
      • kaylined
        Ah
      • Phil624
        I can't get that to go :(
      • dqsf
        Phil624: if you're using square space it looks like you'll want to make sure you've switched 'enable test orders' off https://support.squarespace.com/hc/en-us/articl...
      • jobber_dev joined the channel
      • kaylined
        Phil624: https://dashboard.stripe.com/account/payments/s... Does it show your credit card option is live?
      • Phil624
        @dqsf: Yep. I have gone to and fro a few times and when in test mode the test card works but in live mode real card doesn't.
      • Cards be "Live" in green :)
      • thomasstorfjord has quit
      • Cards LIVE Accept Visa, MasterCard and American Express payments from customers worldwide. 3D Secure for Visa and MasterCard support currently in preview.
      • W00T
      • kaylined
        https://dashboard.stripe.com/account/payments and when you try to make a payment there, you still get a 402? If that's the case, definitely write into support as DQS mentioned; https://support.stripe.com/email
      • Phil624: Worked?
      • Phil624
        No
      • kaylined
        Oh.
      • the w00t as a false w00t.
      • was*
      • Phil624
        You were spot on the with " https://dashboard.stripe.com/account/payments and when you try to make a payment there, you still get a 402? If that's the case, definitely write into support as DQS mentioned; https://support.stripe.com/email";
      • Kaylined: w00t that cards were live but alas still not working :(
      • kaylined
      • Phil624
        That's where I found the 402. All 402's
      • KoalaTea_ joined the channel
      • kaylined
        When you click on them, does it give you a more descriptive error?
      • Phil624
        Sort of. Post body and response body.
      • kaylined
        What does the response body give you?
      • KoalaTea has quit
      • Phil624
        Kaylined: The SUPER descriptive ---> "error": { "message": "Your card was declined.", "type": "card_error", "param": "", "code": "card_declined", "decline_code": "generic_decline"
      • kaylined
        Well, that's more descriptive than "402"
      • Card declined could be an issue with your bank or anything.
      • Phil624
        True :)
      • kaylined
        write into support on that one
      • w-p
        Feature request submitted. But https://stripe.com/docs/connect/testing#using-o... says something about 'force-skip the account form' but it doesn't really expand on that. Am I missing something?
      • nilsmunch joined the channel
      • Phil624
        5th card failed.
      • Thanks Kaylined! I've decided to get drunk and wait for support to get back to me. Your efforts and patience with my stupidity is greatly appreciated!
      • w-p
        Ha!
      • ftknox_ has quit
      • kaylined
        Heh
      • fcser joined the channel
      • Phil624 has quit
      • Nic336 joined the channel
      • Nic335 has quit
      • Nic336 is now known as Nic335
      • dfoolz has quit
      • dfoolz joined the channel
      • fcser
        A fundraiser site around a golf tournament where visitors buy a ticket / fee and bet on golf players - like fantasy golf. The proceeds all go to charity. Would this be against Stripe's terms (https://stripe.com/us/prohibited-businesses#fin...)
      • jobber_dev has quit
      • w-p has left the channel
      • Gsham joined the channel
      • kaylined
        fcser: https://support.stripe.com/email would be your best bet regarding that.
      • fcser
        ok thank you - I may not be explaining the concept 100% correctly also
      • will go that route
      • jo__ joined the channel
      • jo__
        hi, i'm using Checkout with Asp.net. i don't understand how i can relate a checkout to a charge
      • in the charge method i get an email and a token
      • but the email can be any and the token is not fixed
      • IRC-Source_15239 joined the channel
      • dqsf
        jo__: so on your front-end you generate a token. you pass this to your backend and pick it up as a POST var
      • then you pass those post vars to params in your charge creation call
      • jo__
        so the token is generated by me ?
      • i did not understand that
      • truepudding
        the token is generated by checkout when it processes the credit card. it is a random string that you then pass to your server
      • dqsf
        the token is generated by stripe, you place stripe's checkout code on your site to collect card details https://stripe.com/docs/checkout
      • Baune joined the channel
      • jo__
        then my question : where do i link this to my user
      • then my question : where do i link this to my customer
      • truepudding
        in your server side code when you have the email and the token. You create a new customer. You create a new user, you add them to a subscription, etc.
      • Are you using stripe.net?
      • jo__
        yes i'm using stripe .net
      • but i'm missing something
      • allibubba joined the channel
      • truepudding
        so checkout the docs for creating a customer - you have the email on your server right, and the token?
      • mrozbarry joined the channel
      • jo__
        when i present the payment to customer, i put a price for a customer i know
      • then when i'm called back
      • liviu joined the channel
      • i get an email, but it may be a different one than in my db
      • truepudding
        did the customer supply the email?
      • jo__
        yes
      • mrozbarry
        Hey, I have a bit of a managed account question. I'm building a service app for a set of organizations that take payment for membership, but can also sell products. With managed accounts, I cannot create products on behalf of the managed account, but I do get their api credentials.
      • So my question is, what's the best way to store those credentials?
      • I'd rather not store secret keys in my database to be safe
      • truepudding
        jo__: you just have to look for the customer with that email then. if you already know their email address before they checkout, why do you ask them for it? It seems like your app needs to search and see if that email is already a user - then apply it to them. If they are not already a user, you need to make them a new user. If I understand correctly :)
      • liviu
        Hi guys! We are preparing to go live with our app but when we try to issue an charge.. we receive this error from Stripe: "This connected account cannot currently make live charges. If you are a customer trying to make a purchase, please contact the owner of this site. Your transaction has not been processed" Do you have any idea why this happen? All transactions were processed in test mode
      • thank you
      • staar2 has quit
      • jo__
        at the moment i create the payment page filling the stripe checkout js data filed, i know all.But i understand the real charge will occur in the Charge methog
      • i can even put a different price there!
      • fcser has left the channel
      • loglaunch has quit
      • gingerale has quit
      • loglaunch joined the channel
      • p-hebert joined the channel
      • Baune has quit
      • p-hebert
        Hi there! Is there a way to charge less to the customer than the amount transferred to a destination account? We want to implement a promo code system and we would like to shoulder the difference between the actual price for the managed accounts and the discounted price the clients pay
      • dqsf
        p-hebert: yep, under some conditions, see https://stripe.com/docs/connect/charges-transfers
      • jo__
        i think the answer is that it is a synchronous process
      • p-hebert
        Hmmmm that doesn't work for me, I'm located in CA
      • On the page it says that it's a feature that is available only in US. Is this still a thing?
      • dqsf
        p-hebert: "If your platform or the connected account is outside of the U.S., you can only use this approach for less than 10% of your total volume."
      • liviu: I'd email supports and share specifics