Re: Some Technical Features for Web Payments

On 2015-11-18 03:34, Mountie Lee wrote:
> Hi.

Hi Mountie,

>
> I think we need following features at Browser Level.
>
> 1. Luhn Check Function
>
> if luhn check algorithm(https://en.wikipedia.org/wiki/Luhn_algorithm) is implemented at UA side,
> it will encourage to use web payments more.

If you need a Luhn check you can easily implement it in JavaScript.

The bigger problem with credit-card numbers is that you often have to type them in.
This is the thing that needs to go away.

>
> 2. formatting Small Numbers
> this feature is required because of bitcoin.
>
> 0.00000008 > 0.000000008
>
> it is very difficult to fiture out the differences when the number is very small
>
> at some countries use white space
> 0.000 000 08 vs 0.000 000 008
>
> or
>
> we can format like this
> 0.000,000,08 > 0.000,000,008
>
> actually I fail to find any global standard for small numbers.
> but
> I'm sure it will also encourage to use web payments more.

There are two problems with "money numbers" in browsers:
1. JSON/JavaScript does not support a BigDecimal number type.
2. Display of numbers.

IMO, JSON does not have to support BigDecimal but it would be nice
if there were intrinsic JavaScript objects for BigDecimal.
JavaScript is though defined by a specific committee known as TC-39.

Regarding localized display of numbers this could also be supported
by a new BigDecimal type.

Note: BigDecimal a la Java is equally good for very small numbers.
https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html

Anders



>
> best regards
> mountie
>
>
> --
> Mountie Lee
>
> PayGate
> CTO, CISSP
> Tel : +82 2 2140 2700
> E-Mail : mountie@paygate.net <mailto:mountie@paygate.net>
>

Received on Wednesday, 18 November 2015 06:00:04 UTC