Skip to content

Currency formatting in GpEcomAuthorizationRequestBuilder #123

@KennyCamba

Description

@KennyCamba

The GpEcomAuthorizationRequestBuilder class always formats the amount to two decimal places, but this format depends on the currency. For example the CLP currency has no decimal places.

$amount = $xml->createElement("amount", preg_replace('/[^0-9]/', '', sprintf('%01.2f', $builder->amount)));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions