@ywain in the API, i cant find the invoice number? is the ID is the invoice number?
ywain
zeros: are you talking about the number that appears on the email receipt? or just the invoice IDs that are visible in the dashboard?
zeros
@ywain in the email receipt; yes; is that the invoice number?
ywain
zeros: you can get the receipt number via the `receipt_number` attribute on the charge object: https://stripe.com/docs/api#charge_object-recei.... Note that this attribute is only populated once an email receipt has been sent.
payment with bitcoin takes how long to process? and asynchronous as well as the card?
basiclaser has quit
analogik has quit
vectoron joined the channel
ywain
igor_skiter: card payments are synchronous. For Bitcoin, once the customer has pushed the funds to the Bitcoin address and the Bitcoin source has become `chargeable`, creating the charge should succeed immediately
after creating a 3d secure source, if the status is immediatly set to "chargeable" : can it be directly used to subscribe a customer to a plan (without doint 3d secure verification) - also what can happen if even with this status i redirect the user to 3d secure verification page ? (does it will fails ?)
igor_skiter
How much more or less can this take?
ywain
Hi kslimani. No, even if the source's status is immediately set to `chargeable`, 3DS sources are still single-use so you cannot use them as a customer's default source for a subscription. You'd still need to set the _card_ source as the default source, create the first payment manually using the 3DS source and create the subscription with a trial period to bypass the first payment, as explained in https://stripe.com/docs/sources/three-d-secure/...
if the source's status is immediately `chargeable`, the `redirect[url]` attribute will be null so you would not be able to redirect the customer
igor_skiter: for the source to become chargeable? as long as it takes for the transaction to appear on the blockchain. can be a few minutes to a few days depending on the transaction fee
kslimani
ok i see, so i must handle this particular case. thank you
igor_skiter
:/
ywain
kslimani: yes, you should definitely check whether the source is `pending`, `chargeable` or `failed` after creating it, as all 3 are possible
igor_skiter: that's just how Bitcoin works unfortunately. You can use webhooks to process the payment asynchronously and let your customer know (e.g. via email) if the transaction succeeded or not
kslimani
will do, also maybe add in documentation that redirect is null if status is chargeable (i don't see this info in doc)
i think it'san important point
ywain
kslimani: I guess it's implied, but I'll share your feedback with the docs team
kslimani
ywain: in the particular case that source is immediatly chargeable (and redirect is null) does the 'source.chargeable' webhook event is triggered ?
ywain
kslimani: yes
kslimani
ok so it is the same event as it would happen after a successfull 3D secure verification ?
Dubs joined the channel
Dubs
hey Stripe support :-)
ywain
Ola!
kslimani: yep
Dubs
We are using connect and want to only get connected account customers to connect once. We also need to test. Can this be done? Should we connect on live and then use the same details in test mode?
kslimani
ywain: perfect, thank you
ywain
Dubs: are you using Standard accounts?
Dubs
hmm, not sure actually - how can I tell?
all the connected accounts are standard, according to the connected accounts overview page
ywain
Dubs: there are three types of accounts that be used with Connect: Standard, Express or Custom. The differences are explained here: https://stripe.com/docs/connect/accounts
Dubs
We'll be standard then
ywain
Dubs: ah, okay, thanks. Can you clarify what you mean exactly by "[we] want to only get connected account customers to connect once"? Do you want to prevent users who were disconnected from your platform from reconnecting?
Dubs
No - sorry
What I mean is do we have to connect customers for test and live, or can we do it once for both?
ywain
Dubs: Ah, gotcha, thanks for the clarification. If an account is connected in live mode (i.e. using your production client_id), your platform will be able to issue both live and test API requests on behalf of this account. However, if the account is connected in test mode (i.e. using your development client_id) then your platform will only be able to issue test API requests on behalf of this account, and you'd need to have the account go through the
OAuth flow again (using your production client_id) in order to connect it in live mode
Dubs
okay - great. Thanks for clarifying that :-)
Next question - we have a bunch of connected accounts on the platform - can I query the additional parameters you get back from the oauth callback or will they need to connect again? i.e. if I have their account numbers can I get from the API things like TokenType, PublishableKey, AccessToken, etc. from the connected account?
In testing we didn't save these parameters - only the account number and realise we should have saved these extra details too
ywain
Dubs: you cannot, but you don't need them. The only important information is the account's ID. With the account ID you can issue any API request on behalf of the account using your own API key and the account's ID in the `Stripe-Account` header (https://stripe.com/docs/connect/authentication#...). The other parameters are mostly there for compliance with the OAuth protocol and compatibility with older integrations
jfpoole has quit
Dubs
ah, okay. That's great. Thanks so much for your help :-)
ywain
np! :)
Dubs has quit
mezod has quit
newman99 joined the channel
newman99 has quit
nikola joined the channel
newman99 joined the channel
mezod joined the channel
staszek has quit
dawoodman71 joined the channel
dawoodman71
Trying to test payment request button in safari 11 on macbook pro Sierra. I have a payment method set, but canMakePayments returns null
It works great in Chrome on my PC showing the Android Pay button . . . my client requested ApplePay specifically so I need to test it out.
Any suggestions?
stripes joined the channel
stripes
Hello hello
where exactly customer is saved?
with key is for the customer card?
analogik has quit
dawoodman71
I opened up the Safari settings > autofill and added my card info there
Is that what you mean?"
sorry stripes . . . I thought you were answering my question with a question LOL
@stripes the customer should get saved on stripe so you can load them up later
if you need to get their card info you first load the customer and then load the card with the key
@psmvac I have registered the domain with ApplePay on stripe . . . did this when testing on PC Chrome so I know that's working. Do I need to do something more on Safari to provide the payment method?
jfpoole joined the channel
psmvac
@dawoodman71: when using the payment request button and testing with PC Chrome, I believe Chrome's saved card payment sheet would be shown and not apple pay. Domain verification steps would be applicable only in the case of apple pay. Since you are testing on Safari on a mac, do you have an iPhone with a card in its wallet paired to your mac ?
tim___ joined the channel
dawoodman71
@psmvac No I do not. I have an Apple ID set up with a card, but I'm guessing that's just for the iStore and not ApplePay
tim___
Hey Guys, I do have a question concerning the connection between stripe and shopify ? Is there a way to register my client in stripe through the Shopify checkout process ?
zambo joined the channel
Russell joined the channel
dawoodman71
@pcmvac I had hoped that adding the autofill to Safari was sufficient (as in Chrome), but I should have known it would be more difficult with Apple :)
Russell
Hello, quick question about stripe connect destinations. Can you send one payment with multiple destinations with different amounts? So the customers card only gets charged once?
psmvac
@dawoodman71: If you want to test with Safari on Mac you would need to have an iPhone paired to meet the requirements.
dawoodman71
@pcmvac thanks for your help. Now I just have to find an iphone to test with.
psmvac
@dawoodman71: haha :). Saved cards would be applicable to Chrome (Desktop or mobile), in the case of Apple Pay it would have different requirements
jonesdawg joined the channel
You could also use the Simulator and visit the page with Safari within the simulator
jonesdawg
Hey folks - i'm doing the standard oauth flow and am getting this error: " {"error":{"message":"Cannot switch to an account that the user is not an admin of"}}". Any idea what that means or why its coming up?
What's the deal with creating orders in the system? I take orders on my site and push the charges to stripe. I want to push an order to stripe as well, but I need to be able to specify tax (in NJ only) and shipping (intl only) but it won't let me add items of type tax or shipping. If I set tax on my account it's going to want to charge tax everywhere. Should I just make a SKU for shipping and tax?
Russell
@psmvac thank you, will take a look
irctc417 joined the channel
psmvac
@jonesdawg: when you tested the flow did you tested it in the same browser that you used for your own Stripe session ?
irctc417 has quit
dawoodman71 has quit
Arjan_ joined the channel
Arjan_
i need help activating my account
jonesdawg
psmvac If I open a fresh window, no cookies, the page loads/functions perfectly. But if I'm signed into a Stripe account (not the platform account) I get this error. I also get it if I click sign in on the Oauth page and try to go the oAuth URL again
kanja has quit
Arjan_ has quit
psmvac
Hi @Arjan_: we can't help with account-specific issues here, but our support should definitely be able to help you with this: https://support.stripe.com/email
Russell
@psmvac if we go the route of transferring the money ourselves does the money ever hit the connect accounts owners account? One reason they like the destination approach is the funds never hit thier bank account so it makes thier accounting eaiser
ashd joined the channel
ftknox joined the channel
koopajah joined the channel
I see you can set "source_transaction"
which will connect the transfer to the charge, will that ensure the funds are transferred before it is paid out to the stripe owners account
*bank account
jonesdawg has quit
analogik joined the channel
ftknox
Russell: I believe that you are correct.
Russell
thank you @ftknox
dionysus70 has quit
karol_rybak joined the channel
karol_rybak
Hello everyone, got a question about stripe webhook
it happened yesterday that the same event was sent out twice
for source.chargeable
is this something that I should protect from? Never seen that happen before
ftknox
karol_rybak: That is odd. Did your webhook handler not respond to the first instance of that Event with a 2XX status code?
karol_rybak
well not 100% sure but I didn't see any errors in log
there's about an hour difference between each call
is there a way to check that on dashboard
ftknox
karol_rybak: that makes sense then since Stripe will retry about once an hour if a Webhook fails to receive a 2XX response
karol_rybak: You should be able to search for the Event id in your Dashboard and see the status of each Webhook attempt at the bottom of the resulting page
karol_rybak
I probably don't have access to that currently, but well guess that's the case