-
Notifications
You must be signed in to change notification settings - Fork 16
Test suite is broken #3
Comments
Hi @erkurita, Thanks for reporting this issue. If I'm correct, the issues with the current test suite can be categorized as follows:
I have created an internal issue to resolve the above issues. Aad |
have the same issue |
That means that payouts are not enabled for this merchant at this moment. Please contact Ingenico about this. |
alright.. can you please tell me which are the exact features inginico author sandbox user ? |
how can I use a token for another payment? |
The sandbox accounts that we make available indeed don't offer all functionality. Behind the Sandbox we currently only expose the Global Collect payment platform and this platform doesn't yet support multiple partial captures, while the Ogone payment platform does support this. The API is used for both platforms, but the sandbox only offers the functionalities as provided by the Global Collect payment platform. Regarding your second question regarding the use of tokens, simply add the token to the create payment instead of the card details (in case of a card transaction). For the create payment in case of card you should send in the token in the token field in the CardPaymentMethodSpecificInput object. Please see https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/php/payments/create.html#payments-create-request for more information. |
I am very grateful for your cooperation. in my case, whenever I run a test call to create a payment, its status |
This is indeed correct. The PENDING_APPROVAL state basically means that we are awaiting your approval to capture the funds. With the /approve call you put the transaction in the queue to be captured. On the sandbox we have a script running that marks transactions as PAID to simulate the process. On production the transaction will stay at CAPTURE_REQUESTED for several days, before we see the funds on our account and report the transaction as paid. |
Hello,
From the PR #2 I found out most of the tests uses a hard-coded merchant ID to perform the testing. I've modified the test suite to use an specific merchant ID via a parameter in the
config.json
, but even then half of the tests still fail due to unrelated errors:to show a few.
Errors aside, the test suite should not be doing requests to the server unless it has to, via integration tests. There are appears to be little, if any unit tests with which ascertain the proper functionality of the codebase.
The text was updated successfully, but these errors were encountered: