Questions about Payment Form extension

Problem with comma

  • ketevan
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 6 months ago #110675 by ketevan
Problem with comma was created by ketevan
Hello, I found one issue. An amount is generating in this format - 2,590.00 . My payment gateway doesn't perceives commas. How it is possible for amount to be generated without comma?

Please Log in or Create an account to join the conversation.

More
6 years 6 months ago #110765 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Problem with comma
Hi

For this case, you will need to write code in the payment plugin to covert the amount to the format required by your gateway, I guess a simple str_replace command

Regards,

Tuan
The following user(s) said Thank You: ketevan

Please Log in or Create an account to join the conversation.

  • ketevan
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 6 months ago #110775 by ketevan
Replied by ketevan on topic Problem with comma
Thank you, but it's not possible for me, i have to send payments with email , after payment approval, and sou could i remove commas from [amount] in email template?
Regards

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc