How to mask SEPA (IBAN and BIC) information correctly? - payment

I'm currently developing a payment system where users can use SEPA-debit to pay for the service. The user has the ability to enter the data once and can then select the same payment method when making another payment in the future.
So in order for the user to select the proper account to debit, I need to show some information about her/his accounts. In the world of credit cards it is normal to mask all but the last 4 digits of the card number, e.g. XXXX-XXXX-XXXX-1234
Should I also hide all but the last 4 digits when displaying IBAN numbers? And should I do the same for the BIC, or is it safe to display the complete BIC number?

The IBAN and BIC don't need masking in my opinion. The only information the BIC is providing is in which bank the specific account belongs. There are plenty of lists on the internet with the BIC codes for each bank.
As for the IBAN, you could mask it if this information is shown to 3rd parties for privacy purposes (same reason why you would maybe want to hide the full name of a person and display only e.g. John S. instead of John Smith), but even if somebody steals your IBAN he can do nothing with it without your confirmation. If you give your confirmation, he could do a direct debit, but normally your bank notifies you in advance and you can refuse it. So there are limited opportunities for fraud.
Also I am aware of some mobile apps for banks that allow you to connect the contacts of your phone to the app and you get to see their bank account (in case you want to make them a payment)
I hope this answers your question.

Use can use the mask jquery library via this link ,
Then use one of these functions depends on your situation,
If the text field is staticall created :
$(document).ready(function(){
$('#rib').mask('SS00 0000 0000 0000 0000 00', {
placeholder: '____ ____ ____ ____ ____ __'
});
});
#rib{
height: 35px;
border: 2px solid #CECECE;
width: 300px;
text-indent: 10px;
border-radius: 3px;
}
#rib:focus{
border-color: black;
outline: none
}
<input id="rib" name="rib" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.mask/1.14.15/jquery.mask.min.js"></script>
If the text field is dynamically created :
$(document).on('focus', '#field', function () {
$(this).mask('SS00 0000 0000 0000 0000 00', {
placeholder: '____ ____ ____ ____ ____ __'
});
});

Related

How to customize Payment Element in Japanese?

I recently signed up for Stripe and have successfully integrated Payment Element into my web application. However, the texts from the integrated Payment Element are displayed in English by default such as Card number, Expiration, etc. I would like to display those texts in Japanese.
I have found that, for example, Card number element has a .Label class as you can see on Elements Appearance API so I did the following.
.Label {
font-size: 0;
}
.Label::after {
font-size: 1rem;
content: "カードナンバー";
}
This, however, did not replace Card number with カードナンバー.
Is Payment Element not available in Japanese?
Is there a way to customize Payment Element in Japanese?
If it is not possible, what other way would you suggest to collect payments in Japanese? I don't mind coding a lot as long as it works and is customizable.
I found the answer here on stackoverflow.
You need to set locale when initiating Payment Element on the client side like the following.
var elements = stripe.elements({
locale: 'ja',
// clientSecret: ...,
// appearance: ...,
});

how to make even gap for overall card in flexlayoutgap

I tried to make a responsive card layout with even gap between each card , unfortunately bottom space not coming on card, but right side gap showing , can any one help how to achieve this scenario. below is my code
Html Code
<div fxLayout="row wrap" fxLayout.xs="column" fxLayoutAlign="space-around center" fxLayoutGap="25px">
<mat-card *ngFor="let member of members" fxFlex="calc(33%-25px)" fxFlex.sm="calc(50%-25px)" >
stack-blitz link
https://stackblitz.com/edit/card-responsive?file=app/card-overview-example.html
The problem seems to be the fxLayout="row wrap" functionality. the suggestion from the doc says to use fxLayoutGap="10px grid"but this works even less.
I have come up with this css3 which solved your problem. not very elegant, flex-layout-wise but this seem like a limitation
mat-card.mat-card {
margin-bottom: 10px;
}

Windows 10 mail gradient not displaying

I discovered a problem on the Mail app available in Windows 10, in particular, I developed a little app in NodeJS that send the email with nodemail package, this email have in the header the following layout:
<div id="header" style="background: linear-gradient(to right,#00c7ce,#1a5cce 85%); border-bottom: 4px solid #1a5cce;
height: 45px; padding: 10px 15px;">
<strong id="logo" style="color: white; font-size: 20px;
text-shadow: 1px 1px 1px #8F8888; margin-top: 10px; display: inline-block">
<%= process.env.COMPANY_NAME %></strong>
</div>
the email is perfectly displayed in GMAIL:
but in Windows 10 Mail the gradient is not rendered:
Is this a bug of Windows 10 Mail app? Because in other email software I got no problem.
This is not a bug in the Windows 10 Mail app, per se. It is a result of the fact that Gmail and Windows 10 Mail use different rendering engines. Consider how CSS rules get applied differently by different web browsers. The same is true of email clients, except that the web standards set forth by W3C are often completely ignored by email clients, or they may choose to only obey a very small sub-set of the standards.
Trying to use modern CSS features in email clients is going to produce a wide range of effects that are not always predictable without testing the resulting email in many different environments.
You may be able to get the desired gradient effect in your screenshot by using a background image rather than a CSS gradient, but this can cause it's own set of issues (such as whether a particular email client renders it at all, whether text is rendered on top of it properly, etc).
Here are some links where you can learn more about this complicated issue:
Coding for Windows 10 Mail App (emailonacid.com)
Why Clients Render Email Differently (MailChimp)

Carousel spacing in BotFramework

I'm trying to display a set of adaptive cards in a carousel on Bot Framework.
This image shows what I have achieved. As carousels are not a part of adaptive cards, I was wondering if it was possible to modify the spacing between 2 adaptive cards in a carousel. Can the spacing be increased, decreased, or removed in some way?
In the CSS for webchat (Botchat.css) you can change this property and will adjust the spacing of the carousel, the 4px value is the one you would have to change
.wc-carousel .wc-hscroll > ul > li {
padding: 0 4px;
}
Note that you would not be able to use the webchat iFrame and would have to use webchat via this method

NLP Code Mixed : Code Switching

I am engaged in a competition where we have to build a system using given data set. I am trying to learn the proceedings in linguistics research.
The main goal of this task is to identify the sentence level sentiment polarity of the code-mixed dataset of Indian languages pairs. Each of the sentences is annotated with language information as well as polarity at the sentence level.
Anyone interested to participate with me??
If anyone can help me over it. It will be great.
Please reach me out soon as possible.
Try change navbar-inverse element.
Example:
.navbar-inverse { background-color: #fff; }
I think easy solution is remove navbar-inverse class and place this css.
.navbar {
background-color: blue;
}
as suggested by others you can use
.navbar-inverse {
background-color: #3F51B5;
border-color: #233598;
}
additionally you can use more styling see my fiddle here

Resources