#zala_45730

1 messages · Page 1 of 1 (latest)

dark mesaBOT
twin vine
#

Hi
Could you please share more details ?

tame wasp
#

I am try to pass 76.50 using Double.parseDouble("76..50") but it give error like there is no mothod with double in this googlePayLauncher.present ()

twin vine
#

You need to pass cent amounts

#

You are using what framwork ?

#

@tame wasp let's keep talking in this thread please

tame wasp
#

double decimalNumber = Double.parseDouble(tvTotalPayment.getText().toString().substring(1))*100;
long longValue = (long) decimalNumber;
googlePayLauncher.present("gbp", longValue);

#

this is the code

twin vine
#

You need to pass long values

#

and not double

#

amounts are in cents (the smallest unit in your currency)