- runIntegrationTest#
Run a simple integration test on a test deployment of the exchange and merchant: withdraw
amountToWithdrawvia the corebank API, spendamountToSpendat the merchant, and then exercise a refund: withdraw a second, fixed amount (18in the currency ofamountToSpend), pay7, refund6of it and pay another3. The operation waits for all involved transactions (including refreshes) to reach a final state before returning.Request:
The request must be an IntegrationTestArgs object.
Response:
On success, the result is an empty object.
Side effects:
Performs real withdrawals, payments and a refund at the test deployment over the network.
interface IntegrationTestArgs {
exchangeBaseUrl: string;
corebankApiBaseUrl: string;
merchantBaseUrl: string;
merchantAuthToken?: string;
amountToWithdraw: AmountString;
amountToSpend: AmountString;
}