diff --git a/htdocs/public/payment/newpayment.php b/htdocs/public/payment/newpayment.php index 374556c3342..83acf5d400e 100644 --- a/htdocs/public/payment/newpayment.php +++ b/htdocs/public/payment/newpayment.php @@ -2,7 +2,8 @@ /* Copyright (C) 2001-2002 Rodolphe Quiedeville * Copyright (C) 2006-2017 Laurent Destailleur * Copyright (C) 2009-2012 Regis Houssin - * Copyright (C) 2018 Juanjo Menent + * Copyright (C) 2018 Juanjo Menent + * Copyright (C) 2018-2019 Thibault FOUCART * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -2006,16 +2007,13 @@ if (preg_match('/^dopayment/', $action)) payment_method_data: { billing_details: { name: cardholderName.value - , email: '', - thirdparty)) { ?>, phone: thirdparty->phone; ?>', - thirdparty)) { - print ', address: {'."\n"; - print ' city: '.$object->thirdparty->town.','; - print ' country: '.$object->thirdparty->country_code.','; - print ' line1: '.$object->thirdparty->address.','; - print ' postal_code: '.$object->thirdparty->zip; - print '}'."\n"; - } ?> + , email: '' + thirdparty)) { ?>, phone: 'thirdparty->phone; ?>' + thirdparty)) { ?>, address: { + city: 'thirdparty->town; ?>', + country: 'thirdparty->country_code; ?>', + line1: 'thirdparty->address; ?>', + postal_code: 'thirdparty->zip; ?>'} } /* TODO Add all other known data like emails, ... to be SCA compliant */ }, save_payment_method: false