[AlphaCommerceHub] The PayPal's `PaymentStatus` transaction returns wrong `Result.Amount` values (like «186240.00») since 2017-12-13

@gallaron

Request

{
    "Header": {
        "MerchantID": "ANTERIOR001",
        "TransactionType": "PaymentStatus",
        "UserID": "<...>",
        "Version": "2"
    },
    "Transaction": {
        "Amount": "186240",
        "Currency": "AUD",
        "MerchantTxnID": "1208L.777",
        "Method": "PP"
    }
}

Response

{
    "Banks": null,
    "Country": null,
    "DocumentResults": null,
    "EmailChecks": null,
    "FraudChecks": null,
    "GeoChecks": null,
    "MethodResult": {
        "AVSStreetResult": "Confirmed",
        "custom1": null,
        "custom2": null,
        "custom3": null,
        "custom4": null,
        "custom5": null,
        "SecureToken": "EC-7DC84978BG502724B",
        "WalletID": "7EY65DU75L82G"
    },
    "PayerDetails": {
        "City": "San Jose",
        "Country": "US",
        "Custom1": "Confirmed",
        "Custom2": "test-buyer@mage2.pro",
        "CustomerFirstName": "Dmitry",
        "CustomerName": "Fedyuk",
        "State": "CA",
        "Street1": "1 Main St",
        "Zip": "95131"
    },
    "ProviderResps": {
        "ProviderResp": [
            {
                "ProviderName": "Paypal",
                "ProviderOrder": "1",
                "ProviderResponseMessage": "Success"
            }
        ]
    },
    "Result": {
        "Amount": "186240.00",
        "Currency": "AUD",
        "custom1": null,
        "custom2": null,
        "custom3": null,
        "custom4": null,
        "custom5": null,
        "MerchantID": "ANTERIOR001",
        "MerchantTxnID": "1208L.777",
        "ResponseCode": "1000",
        "ResponseMessage": "Request successful",
        "ResponseTimestamp": "13122017020225"
    },
    "ShippingAddress": {
        "City": "San Jose",
        "Country": "US",
        "CustomerName": "Dmitry Fedyuk",
        "State": "CA",
        "Street1": "1 Main St",
        "Street2": "",
        "Zip": "95131"
    },
    "ShippingService": null,
    "TaxResultLines": null
}

A response from AlphaCommerceHub:

The PaymentStatus procedure was not working correctly in UAT, yesterday we made a change to redeploy it but clearly there is an issue with the amount. We’ll get on this one today.

My response:

It does not work just now, and at least the last 9 hours.
I need it.
I am unable to check whether the previous bug (with RefundPayment: 5142, 5143) is fixed or not, because PaymentStatus is an important step in my capturing procedure, and I an unable to refund something not captured.

My response in the next day (today):

As nobody is fixing the Amount format bug in the PaymentStatus responses, I will treat «168950.00» as the expected format for the PaymentStatus amounts and will change my module’s code accordingly, otherwise I am completely blocked in my work during the last 29 hours.

It is implemented in the 0.7.7 version of the mage2pro/alphacommercehub package:

https://github.com/mage2pro/alphacommercehub/issues/86

PaymentStatus amount issue was resolved. Please recheck