Guest Posted October 9, 2004 Share Posted October 9, 2004 Hi everyone, I managed to create my own payment gateway, but it requires the decimals of the charged amount to be formatted with a comma separator (e.g. 10,50) and not with the dot (e.g. 10.50). how do you change to comma separator? 1) do i change any setting within cubecart? (could not find anythng in the admin control panel) 2) Is there a php script that i can use within the secure.php to convert the amount before i send it to my payment gateway? (By the way i don't have a clue about php! i would really appriciate if you could send me the script) 3) heeelp! thanks in advance, Panos Quote Link to comment Share on other sites More sharing options...
Guest Posted October 21, 2004 Share Posted October 21, 2004 ok guys... don't worry i found it! $var_replaced = str_replace(".",",",$var_toreplace); change form (,) to (.). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.