ywain: So it's a dashboard issue then? Can I use the API to set it to "now" and it should work? I am just working on getting a good workflow for when trial ends, sending emails reminding to add cards, disabling service after a few retries, etc
ywain
enoj: well, it's not an issue in the sense that it's the expected behavior. If you try to use the API to set `trial_end` to "now", the request would also fail with "This customer has no attached payment source". what you can do is use the API to set `trial_end` to just a few seconds in the future though. (You have to use the API here as the dashboard only lets you choose a day for the trial end and not an exact time)
enoj
ywain: Okay, so I understand this won't fail the same way when the trial actually ends regularly. I can expect an invoice.created event then
ywain
enoj: correct
enoj
ywain: Great, thanks!
ddellav
so when paying via bitcoin with stripe, how am I supposed to copy the amount I need to pay?
mezod joined the channel
this is something i've noticed multiple times, not just on my site
enoj
ywain: You should get that bug fixed though, with the event saying trial will end in a few seconds :)
enoj: I'm filing a bug report for the dashboard devs right now :)
Hi Guest80699, yes
enoj
ywain: Sweet :)
Shilon joined the channel
arnotixe has quit
Guest80699 has quit
Tim__ joined the channel
greencross has quit
Tim__ has quit
verl joined the channel
aFeijo has quit
bongjovi joined the channel
verl has quit
pyface joined the channel
arnotixe joined the channel
greencross joined the channel
greencross
hi @ywain is there another way for me to test the webhook invoice.created with my test data?
enoj
ywain: Is the trial_end actually a epoch unix timestamp?
ywain
enoj: yes
greencross: just create a subscription in test mode
greencross
thanks but does creating a subscription automatically closes the invoice?
ywain
greencross: yes, the first invoice is always automatically closed. If you want to add items to this invoice, you need to do so before creating the subscription as I advised above. In your webhook handler, you can check the invoice's `closed` attribute to see if the invoice is closed or not
greencross
thanks @ywain
LukaB joined the channel
LukaB
Hey guys
Quick question - I've an Australian Stripe account
Withdrawing from Stripe to my AU Bank - are there any fees?
Thanks yeah I got in touch with them in regards if I'm elegible and I am - thanks!
ywain
np :)
Tim__ joined the channel
greencross
hi @ywain if the closed status of the invoice is false so i need to set it to true so I could add invoice items? is that right or i had the wrong way?
then set to false again and call the pay function?
sashashev joined the channel
sashashev
can I ask a support question here?
help?
ywain
greencross: closed invoices cannot be reopened. If you want to add items to the first invoice of a subscription, you need to create the items before creating the subscription and they will automatically be included in the first invoice
Hi sashashev, sure
sashashev
Awesome thx. my developer has implemented checkout and is telling me that we cant get a success / failure message that can be saved back to our website database. Is that true?
aFeijo joined the channel
greencross
ah... i see. sorry for misunderstanding. so i dont need to specify the invoice id when creating the invoice item then? it will be added automatically when a new invoice is created?
ywain
sashashev: Checkout by itself doesn't create charges, it only collects and tokenizes the customer's payment information. Once the token has been created, you need to send it to your backend server so that you can use it to create a charge. When creating the charge from your backend server, the API will reply with a success or failure
greencross: correct, for the first invoice, you only need to specify the customer's ID (since you don't know the invoice's ID as it doesn't exist yet)
greencross
thanks @ywain. but what the other invoices for the same subscription?
i can just add invoice items and specify the invoice id?
ywain
greencross: yep, exactly
greencross
ahh... cool
but is there a way in stripe where I can create another invoice for that same subscription?
or just set the invoice to create on an interval?
Tim__ has quit
ywain
greencross: for a given subscription, invoices will be created at the start of each billing period. You can manipulate billing periods by updating subscriptions (https://stripe.com/docs/api#update_subscription) with the `trial_end` parameter -- at the end of a "trial" period, a new billing period starts and an invoice is created
LukaB has quit
saurabhjha has quit
arnotixe1 joined the channel
arnotixe has quit
arnotixe1 is now known as arnotixe
saurabhjha joined the channel
saurabhjha has quit
Tim__ joined the channel
alan_ joined the channel
alan_
Hi
ywain
Hi alan_
greencross
hi @ywain i did what you suggested but i still get this message "local.ERROR: Stripe\Error\InvalidRequest: Invalid invoice: This invoice is no longer editable" with request id req_60weR21VAJqm36
sashashev has quit
alan_
I've problem implementing Stripe API in python
ywain
greencross: you are still including the invoice's ID in the `invoice` parameter in the request: https://dashboard.stripe.com/test/logs/iar_60we.... you need to send the invoice item creation request _before_ creating the subscription and omit the `invoice` parameter entirely
alan_: sure, what's the trouble?
alan_
The test card that require 3D secur code doesn't work
ywain
alan_: what's happening exactly? and what's the exact error message?
Tim__ has quit
alan_
Your card was declined
python2.7/site-packages/stripe/api_requestor.py", line 176, in handle_error_response raise err
nicklo joined the channel
ywain
alan_: well you probably tried to create a charge directly with the card. Since the card requires 3D Secure, it's expected that this would fail. You need to use the card source to create a 3DS source, go through the redirect flow, and create the charge using the 3DS source. Cf. https://stripe.com/docs/sources/three-d-secure
alan_
do you have some python sample code?
ywain
alan_: there are Python samples for the server-side requests in the documentation
alan_
ok, but I don't understand how to check if the card require 3D secur
how I can retrive card information?
nexie joined the channel
to check if is needed 3D
verl joined the channel
sandoche joined the channel
nicklo has quit
ywain
alan_: you can either do it client-side, directly checking the `card.three_d_secure` on the card source object returned by Stripe.js/Elements. Or you can do it server-side, by sending the card source's ID to your server, then in your Python code using the ID to retrieve the source object (https://stripe.com/docs/api#retrieve_source) and then checking the `card.three_d_secure` attribute. cf. https://stripe.com/docs/sources/three-d-secure#...
mfp__ joined the channel
sandoche
My own payement is marked as fraud, and stripe blocked also one of my client as a risky payement I cannot unblock it!
No one is answering from Stripe support
ywain
Hi sandoche, sorry, we can't help with fraud or other account specific issues here. How long ago did you write to support?
verl has quit
sandoche
I had a previous problem, I wrote them 14 days ago they never answered
I sent them a new mail today about this problem
and here is my other question which is technical
robotmay joined the channel
Here is my technical question:
> I have a plan monthly plan "premium". > If a user subscribe and pay. > > 1. Is this user going to get email after/before paying every month? > 2. Can he unsubscribe through the email ? > 3. Is the value" current_period_end" linked to a subscription id, going to be updated automatically every month? > 4. If everytime a user logs in, can I just check current_period_end and update it in my database? > > Best regards,
sandoche: are you the account's owner or an admin?
sandoche
admin and owner
ywain
sandoche: ok, can you give the charge's ID? ("ch_...")
Xionkana joined the channel
sandoche
I tried again it worked I think I miss typed my code
sorry
ywain
sandoche: np, glad you got it working :)
sandoche
But for some reason my first account didn't work in prod I had to create another account
how can I delete my first account ?
ywain
sandoche: you can use the "Close this account..." button in your account settings: https://dashboard.stripe.com/account/data. Beware that this cannot be reversed. If you think you'll need to access this account in the future (e.g. to check a past charge) you should just leave the account as is
sandoche
oki thanks
sandoche has quit
arnotixe has quit
Xionkana has quit
alan_
To make 3D secur transaction I must use elements or there's a Checkout 3D ready?
Baadier joined the channel
orlondow
Hi alan_ Checkout only creates card tokens, so no
alan_
thanks
orlondow
you need Stripe.js/v3 to create a card source and 3ds source in the frontend
alan_
ok
orlondow
(it can be done from Checkout's tokens)
Baadier
I'm trying to use the Stripe.js in an Ionic app. It works fine in the browser and also in Android. However, in iOS it fails silently with no errors. The form never shows up. Its seems like it fails when you mount it and it downloads the html bits and bobs as this doesnt happen.
orlondow
otherwise it's with Elements
Baadier: are you pulling Stripe.js from the repo directly or do you load a local version?
I know there are problems with Ionic where people do the local way and we don't support that