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

alphacommercehub
alphacommercehub-api
alphacommercehub-api-response
alphacommercehub-paypal
alphacommercehub-paypal-payment-status
(Dmitry Fedyuk) #1

@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
}
0 Likes

(Dmitry Fedyuk) #2

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.

0 Likes

(Dmitry Fedyuk) #3

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.

0 Likes

(Dmitry Fedyuk) #4

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.

0 Likes

(Dmitry Fedyuk) #5

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

0 Likes

(Rónán Gallagher) #6

PaymentStatus amount issue was resolved. Please recheck

0 Likes