Refund Service Overview
Last updated
Was this helpful?
The Refund Service helps you track and synchronize refund statuses across payment processors using the Java SDK. While the Payment Service handles initiating refunds, this service provides dedicated operations for retrieving refund information.
Business Use Cases:
Refund status tracking - Check the current status of pending refunds to inform customers
Financial reconciliation - Synchronize refund states with your internal accounting systems
Webhook processing - Handle asynchronous refund notifications from payment processors
Customer service - Provide accurate refund status information to support teams
Retrieve refund status from the payment processor. Tracks refund progress through processor settlement for accurate customer communication.
Checking refund status, reconciling refund states, customer inquiries
import com.hyperswitch.prism.PaymentClient;
PaymentClient paymentClient = PaymentClient.builder()
.connector("stripe")
.apiKey("YOUR_API_KEY")
.environment("SANDBOX")
.build();Flow Explanation:
Initiate refund - First, call the Payment Service's refund method to initiate the refund.
Check status - Call the Refund Service's get method with the connectorRefundId.
Poll for updates - For refunds that start as PENDING, periodically call get to check for status updates.
Payment Service - Initiate refunds and process payments
Dispute Service - Handle chargebacks that may result in refunds
Event Service - Process asynchronous refund notifications
Last updated
Was this helpful?
Was this helpful?

