amzn / amazon-pay-api-sdk-php

Amazon Pay API SDK (PHP)
Apache License 2.0
48 stars 31 forks source link

Unable to retrieve fee component of a payment. #15

Open stephenreay opened 3 years ago

stephenreay commented 3 years ago

As per #14, the 'new' Amazon Pay API apparently provides no way to retrieve the fee that was charged to process a given payment.

This information was available via previous Amazon Pay APIs, and is seemingly still available via those APIs, for payments made via the new API. Given that I've seen multiple suggestions/warnings not to make use of both APIs concurrently for charging customers, It seems extremely odd that the only way to retrieve the fee information currently, is to use both APIs/SDKs - one for creating and checking the charge, and then a different one to retrieve the fee.

I opened issue #14 about this previously, and it was summarily closed by someone who either didn't read what I'd written or didn't comprehend what I was asking about.

shangamesh commented 3 years ago

We checked with our internal team and got a information that it was intentionally removed in our API for Amazon Pay version 2. We will introduce the parameter capturefee in SDK , once our backend API is enabled with response updated with field capturefee

stephenreay commented 3 years ago

ThankYou for looking into it. Do you have a rough time frame for when it might be available?

shangamesh commented 3 years ago

We checked with our internal team and currently there is no time frame to commit. We will keep updated once the task is prioritised by our internal team

stephenreay commented 3 years ago

Thanks for the update.

stephenreay commented 1 year ago

By any slim chance, is this likely to happen this year?

stephenreay commented 3 weeks ago

So apparently the v1 API will no longer be usable after ~April 2025. Is there any chance we'll be able to retrieve the fee component of a sale before the old API which does provide this information is turned off?