使用 Braintree 识别 credit/debit 个卡片原产国?

Identify credit/debit card country of origin with Braintree?

我知道卡号的前 6 位数字代表卡的发卡机构识别网络 (IIN),而此信息应反过来识别原产国。

Braintree 是否提供任何 API 在处理交易之前解码此信息?我不知道目前有任何服务这样做。我想在完成交易之前知道卡片的来源,因为在我的特定用例中,这可能会对交易费用、佣金等产生 material 影响。

以类似的方式,我希望能够区分借记卡和信用卡,尽管仅通过考虑 IIN 似乎并不完全可行。

如果您可以访问美国银行家协会发布的 IIN 数据库,那么发卡国和 debit/credit 卡标志在技术上都是可用的。但是,该数据库(每月更新一次)的访问权限通常仅供作为支付服务提供商或更高级别参与的人员使用。

如果您无法访问它,您可能值得一看 https://www.bindb.com/api-documentation.html(尽管公平警告 - 我个人没有使用过它)

我在布伦特里工作。如果有更多问题,可以随时get in touch with our support team.

如果您使用 Braintree 存储信用卡,响应将 include BIN Database information:

  • country_of_issuance - The country that issued the credit card.
  • debit - Whether the card is a debit card. Possible values:

    Braintree::CreditCard::Debit::Yes
    Braintree::CreditCard::Debit::No
    Braintree::CreditCard::Debit::Unknown