条纹:我如何阻止特定的信用卡号码?(Stripe: how can I block a specific credit card number?)
我们想阻止特定卡号的付款。 但似乎我们无法使用Stripe API确定它是否是相同的卡号。 我能看到的最接近的是可以返回
customer.id
Saving Cards 。 但是从测试来看,即使信用卡号相同,customer.id
也是不同的。 那么我们是否可以使用Stripe API阻止信用卡号?We would like to block a payment from specific card number. But it seems like we have no way to determine if it's the same card number or not using Stripe API. The closest I can see is Saving Cards which can return
customer.id
. But from testing,customer.id
is different each time even if credit card number is the same. So is there any way that we can block credit card number using Stripe API?
原文:https://stackoverflow.com/questions/51887238
更新时间:2024-04-08 16:04
最满意答案
Try this way iPad in portrait & landscape @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) { /* STYLES GO HERE */} iPad in landscape @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) { /* STYLES GO HERE */} iPad in portrait @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) { /* STYLES GO HERE */ } iPad 3 & 4 Media Queries If you're looking to target only 3rd and 4th generation Retina iPads (or tablets with similar resolution) to add @2x graphics, or other features for the tablet's Retina display, use the following media queries. Retina iPad in portrait & landscape @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (-webkit-min-device-pixel-ratio: 2) { /* STYLES GO HERE */} Retina iPad in landscape @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) and (-webkit-min-device-pixel-ratio: 2) { /* STYLES GO HERE */} Retina iPad in portrait @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) and (-webkit-min-device-pixel-ratio: 2) { /* STYLES GO HERE */ } iPad 1 & 2 Media Queries If you're looking to supply different graphics or choose different typography for the lower resolution iPad display, the media queries below will work like a charm in your responsive design! iPad 1 & 2 in portrait & landscape @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (-webkit-min-device-pixel-ratio: 1){ /* STYLES GO HERE */} iPad 1 & 2 in landscape @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) and (-webkit-min-device-pixel-ratio: 1) { /* STYLES GO HERE */} iPad 1 & 2 in portrait @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) and (-webkit-min-device-pixel-ratio: 1) { /* STYLES GO HERE */ }
Try this way iPad in portrait & landscape @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) { /* STYLES GO HERE */} iPad in landscape @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) { /* STYLES GO HERE */} iPad in portrait @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) { /* STYLES GO HERE */ } iPad 3 & 4 Media Queries If you're looking to target only 3rd and 4th generation Retina iPads (or tablets with similar resolution) to add @2x graphics, or other features for the tablet's Retina display, use the following media queries. Retina iPad in portrait & landscape @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (-webkit-min-device-pixel-ratio: 2) { /* STYLES GO HERE */} Retina iPad in landscape @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) and (-webkit-min-device-pixel-ratio: 2) { /* STYLES GO HERE */} Retina iPad in portrait @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) and (-webkit-min-device-pixel-ratio: 2) { /* STYLES GO HERE */ } iPad 1 & 2 Media Queries If you're looking to supply different graphics or choose different typography for the lower resolution iPad display, the media queries below will work like a charm in your responsive design! iPad 1 & 2 in portrait & landscape @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (-webkit-min-device-pixel-ratio: 1){ /* STYLES GO HERE */} iPad 1 & 2 in landscape @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) and (-webkit-min-device-pixel-ratio: 1) { /* STYLES GO HERE */} iPad 1 & 2 in portrait @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) and (-webkit-min-device-pixel-ratio: 1) { /* STYLES GO HERE */ }
相关问答
更多-
CSS可以为对象本身执行条件最大宽度或最小宽度吗?(Can CSS do a conditional max-width or min-width for objects themselves?)[2022-05-10]
您需要JavaScript才能完全按照自己的意愿行事,但有可能: 假设您将一个类应用于某些: ... ... ... ... ... ... 并且你给了.changed一定的max-width : .changed { max-width: 100px; } 然后,你就可以做你想做的事: td:not(.change ... -
如何用这个类反转图像的行为? .post-body p img.thumb-small { min-width:0; } how can i reverse that behaviour for images with this class? .post-body p img.thumb-small { min-width:0; }
-
可能你必须定义device-width而不是简单的宽度。 像这样写: May be you have to define device-width instead of simple width. Write like thi ...
-
是的,它改变了。 浏览器将始终根据显示宽度呈现内容,除非您告诉它不要。 Yes, it changes. The browser will always render content according to the display width, unless you've told it not to.
-
在Apple平板电脑上忽略基于最小宽度/最大宽度的条件CSS(Conditional CSS based on min-width/max-width is ignored on Apple tablets)[2024-02-22]
Try this way iPad in portrait & landscape @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) { /* STYLES GO HERE */} iPad in landscape @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) ... -
您应该为页面添加一个doctype声明 - 这将确保大多数浏览器的行为尽可能以相同的方式。 至少它会消除一类可能的问题。 大多数情况下,当涉及到滚动条时,无论CSS规则如何,只有当内容比客户显示区域更宽/更高时才会出现。 You should add a doctype declaration to your page - this will make sure most browsers behave as closely as possible the same way. At least it wil ...
-
标题“如何继承最小宽度和最大宽度的宽度?”的简单答案 是: min-width: inherit; max-width: inherit; 由于中间还有一个辅助容器,所以你必须将其设置为该容器,并添加width: 100%; 对孩子来说,它似乎运作良好。 #main { position: relative; min-width: 200px; max-width: 300px; background: red; } #main_inner { min-width: ...
-
我认为你需要媒体查询。 您可以设置不同视口的宽度。 #head { background-color:#00FF00; } body { text-align:center; } #container{ margin: 0 auto; width:100%; max-width:500px; text-align:center; } #left { background-color:#FF0000; float: l ...
-
原因是这样的: width - 将其翻译为“这是我想要的元素宽度”。 min-width - 将其翻译为“请不要使我的元素宽度小于此值”。 max-width - 将其翻译为“请不要使我的元素宽度大于此值”。 the reason is this: width - translate this to "this is the width I want for my element". min-width - translate this to "please do not make my element w ...
-
尝试添加!important对此规则!important : min-width: 200px !important; max-width: 320px !important; min-width: 200px !important; max-width: 320px !important; 。 try adding !important to this rule: min-width: 200px !important; max-width: 320px !important;.