i should return 200 OK in this case and send myself an email that user wasnt found
markin
yeah that would work
confusedUser
cool thanks man
markin: what would be a good database schema for hook events?
for logging them locally
id, json_str, date?
markin
sure, depends what you plan on doing with them
I just store id and date so I don't process one twice by accident
confusedUser
oh cool
id of hook event?
markin
yeah
confusedUser
nice ok
is it safe to assume hook with same ID contains same info
so i can just do a select
to find if one was there
and if it was, assume it was processed
and discard it
markin
yep, given the internet its hard (well impossible) to send a webhook only once and guarantee it was delivered.
tictacjoe joined the channel
confusedUser
aha
markin: what would be a good type for event_id and event_type?
i decided to go with this schema:
id, event_id, event_type, event_json, date, ip
varchar(64)?
arnel_ joined the channel
markin
the id could be a max of 255 chars
tictacjoe has quit
confusedUser
oh ok
and for type i think 64 is ok
longest seems to be customer.subscription.deleted
markin
yeah, I tend to be lazy and just set things to max or 255 when I do database stuff
storage is cheap now adays
confusedUser
aha
markin: do you know anything about Paypal hooks as well?
i actually need to implement the same for paypal too
markin
not really
confusedUser
alright i'll have to ask on stack overflow for that one
vincentcr joined the channel
lubos_ joined the channel
arnel_
hello
I am using this number 111111111 for unsuccessful stripe verification testing. But I receive some webhooks that has verification status = verified
is there something wrong with stripe sandbox mode?
or I may have done something wrong?
one00handed joined the channel
ta_ has quit
ta_ joined the channel
confusedUser has quit
victor joined the channel
victor is now known as Guest97959
ta_ has quit
Guest97959 has quit
ta_ joined the channel
ta_ has quit
arnel_ has quit
SteveL_ joined the channel
one00handed joined the channel
SteveL_ has quit
tictacjoe joined the channel
tictacjoe has quit
gingerale joined the channel
ta_ joined the channel
ta_ has quit
edrocks joined the channel
km2 has quit
km2 joined the channel
vincentcr joined the channel
downtime is now known as e
Raghav joined the channel
Raghav
Hello Guys... anyone there from STRIPE Team?
one00handed joined the channel
one00handed has quit
gingerale has quit
NothingButWeb has quit
Raghav has quit
aowron joined the channel
Alo joined the channel
Alo
Hey gusy
:)
ta_ joined the channel
is there anyone here to help? :)
Just had a question about managed accounts
No one? :P
krunal joined the channel
krunal
hello markin
i am conncting my standalone account with oauth flow to other account in test mode
now while making payment in live environment do i need to go through oauth again for live?
Alo
No one is here
krunal
Ahh
when can i get some one
tictacjoe joined the channel
Alo
don't, I have question too but I think they are sleeping :P
*don't know
krunal
ok thanks man.
:D
Alo
np
no problem
amit_ joined the channel
amit_
hii
r u there ?
Hi, this is Amit Rathore i would know that we want to implement Coupon code apply on real time after the completion of insert card details in your form which comes by the .js so how could it manage it and how could i add field to insert for Coupon code in php language , let me know now code is below which we are implementing for the payment so please let me know to field for coupon <form action="charge.php" method="POST">
I got a 500 error on my server I'd like to resend some IPN asap
edrocks joined the channel
ywain
Hi greg____. If you're talking about webhooks, then no. They will be retried roughly once every hour for up to 3 days or until your server acknowledges the event by replying with a 2xx status code
greg____
i'm good with once an hour !
vincentcr joined the channel
cyford joined the channel
cyford33 joined the channel
one00handed joined the channel
peterkelly joined the channel
argo_ joined the channel
argo_
hi! could someone please help me with a subscription-related Q?
ywain
Hi argo_, sure
argo_
thanks @ywain!
how would i go about charging the difference between plans when switching, but not pro-rated by date?
so if someone was on a $50/month plan, and half way into the month they switched to the $100/month plan, it charged the additional $50? (not $25)
(and the same for downgrading)
ywain
argo_: for an upgrade, you'd need to: 1. compute the difference yourself (in your example, $100-$50 = $50), 2. create a one-off charge for that amount and 3. if the charge succeeds, then update the subscription to switch to the new plan, with `prorate` set to false
fredi joined the channel
argo_
ok great, thought so - thanks!
ywain
argo_: for a downgrade, that depends on how you want to handle it. you could refund a past charge or grant credit to the customer for future charges
k13nox joined the channel
argo_
makes sense. thank you!
ywain
np! :)
fredi
hi can anyone help me, my account has been disabled by stripe, i've wrote them several email but no one has responded yet
ywain
Hi fredi. Unfortunately we cannot help with these issues here. The IRC channel is mostly for technical & development questions