post https://sandbox.xfers.io/api/v4/payment_methods///tasks
[Available in Sandbox environment only] Simulate a payment to a payment method. Note that payments captured by static payment methods cannot be cancelled.
The process of simulating a mock payment for Persistent Payment differs from that of a One-off Payment.
Here are the steps:
- Utilize the below endpoint to modify the payment status to
Paid
. - Retrieve the Payment ID using the Get a list of payments endpoint.
- Use Update a payment endpoint to update the payment status to
Completed
.
Action | Description |
---|---|
receive_payment | [Sandbox only] Simulates a payment received from the customer for a given payment. Status will be changed to paid . |