W3C home > Mailing lists > Public > public-webpayments@w3.org > November 2015

Re: Some Technical Features for Web Payments

From: Anders Rundgren <anders.rundgren.net@gmail.com>
Date: Wed, 18 Nov 2015 06:59:31 +0100
To: Mountie Lee <mountie@paygate.net>, Web Payments CG <public-webpayments@w3.org>
Message-ID: <564C13C3.4000502@gmail.com>
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:07:43 UTC