#Michal Pekalski

1 messages · Page 1 of 1 (latest)

violet fulcrumBOT
tawny bronze
#

Yes that's correct unfortunately

craggy moth
#

Does this mean that there is no way to notify customer or my service using webhook, that card will expire soon?

tawny bronze
#

Yes. You could build a notification system yourself, if you keep track of all pm_ you have and checking their expire year/month

craggy moth
#

In this case every day I should make a call to the Stripe's API for every single customer to check if attached card expires in the nearest future or not?

tawny bronze
#

You could leverage some cache mechanism. Card expiration can't change frequently

#

ie. running a cron once a month

craggy moth
#

Yeah, you are right, but still, I should make hundred of thousand requests in short period of time. Will Stripe survive it?

tawny bronze
#

Stripe have rate limit, so we should be fine 😄 It's you to construct the batch to not get over 100 RPS