Use Case 2: Linked Payouts
This use case allows you to pay money to a consumer who has already made a payment in your webstore using EPS.
Implementation
Call the following endpoints in sequence:
-
/paymenthub/v1/paymenthandles
Initializes the payout by validating whether the request can be actioned (by checking if you have sufficient balance for example). It provides you with a payment handle token that you can then use to complete the payment. -
/paymenthub/v1/standalonecredits
Moves money to the consumer and debits your balance.
NOTE: For code examples and detailed explanations of the parameters, refer to the Payments API Reference.
-
Call endpoint /paymenthub/v1/paymenthandles
- transactionType: STANDALONE_CREDIT
- paymentType: EPS
-
Pass the required parameters in the EPS object.
-
Paysafe creates a payment handle and returns our standard gateway response, indicating either a positive or negative outcome.
-
The payment handle status depends on the outcome of the request:
- For a successful request, the status changes to PAYABLE.
- For a failed request, the status changes to FAILED.
-
Call endpoint /paymenthub/v1/standalonecredits using the paymentHandleToken.
-
Paysafe returns our standard gateway response, indicating either a positive or negative outcome.
-
The payout status depends on the outcome of the request:
- For a successful request, the status changes to COMPLETED.
- For a failed request, the status changes to FAILED.