#dev-authorize-card
1 messages · Page 1 of 1 (latest)
yes
Thanks! I do believe this is possible but don't remember off top of my head where we return this info. Give me a moment to check.
thank you!
Yep okay so you do this by specifying merchant categories: https://stripe.com/docs/issuing/categories
And you can set up your spending controls for your cards based on those categories: https://stripe.com/docs/issuing/controls/spending-controls
Issuing authorizations check on those spending controls as we describe here: https://stripe.com/docs/issuing/purchases/authorizations
Give those docs a look and let me know if that doesn't answer what you are looking for
ok so once a card is swiped, would we only get the merchant category of the purchase or would it also include the name/id of the fuel station for example? Ie could we differentiate a transaction with same purchased products but at different locations?
Ah good question. I believe you just receive the MCC and wouldn't be able to differentiate between locations, but let me double check.
Wait no I think I'm wrong
Yes we will also return the seller name with the authorization: https://stripe.com/docs/api/issuing/authorizations/object#issuing_authorization_object-merchant_data-name
However, you can't set spending controls based on name... only category.
That said, you can set up your webhook to handle this
what does the network_id refer to in that data?
That is basically a UUID that comes from the card networks for the seller
could that be used for this purpose? ie allow at location 1 with network_id = "abc" and decline at location 2 with network_id = "def"?
i guess we would have no way of knowing that network_id's before a swipe happens at that location
i assume seller name would not necessarily be unique?
like for a chain, they might be the same?
Yeah I don't think they necessarily would be... that information will be provided to us via the card network and then we will relay it. So we can't really guarantee either way (in terms of it being unique or not or some mix of both).
got it, really appreciate your help!