Understanding Payment Identifiers in Volume
In Volume’s payment system, every transaction can be tracked and referenced using three distinct identifiers:
Payment ID
Merchant Payment ID
Payment Reference
While these identifiers may seem similar at first glance, they differ in how they are generated, who is responsible for them, and their specific use cases. Understanding these distinctions ensures accurate payment tracking and integration.
Payment ID
The Payment ID is the primary identifier in Volume’s system. It is automatically generated by Volume’s backend whenever a payer clicks the "Pay" button in the Volume Component.
Format: UUID
Uniqueness: Guaranteed for every payment
Availability:
Included in webhook notifications about payment success or failure
Accessible in the Merchant Portal along with other payment details
Usage:
Payment IDs are fully controlled by Volume, guaranteeing their uniqueness across all payments. This makes them ideal for reliably identifying transactions in communications between Volume and merchants.
Merchant Payment ID
The Merchant Payment ID serves as a correlation ID from the merchant’s perspective. It is provided by the merchant within the Volume Component.
Format: Alphanumeric (letters and digits), up to 50 characters
Null values: Not permitted
Uniqueness: Must be unique per payment
Unlike Payment IDs, Merchant Payment IDs can be generated and stored by the merchant’s system in advance.
Merchant Payment ID Regeneration:
Each payment attempt must have a unique Merchant Payment ID, even for repeated attempts of the same transaction.
The Volume Component emits an event for each payment attempt. Merchants must implement an event handler or listener to generate a new, unique ID for every attempt.
Recommended practice: Generate Merchant Payment IDs in your backend and persist them to correlate with webhook notifications.
If a non-unique Merchant Payment ID is used, the payer will be redirected to the merchant’s callback URL with an error.
Availability:
Included in webhook notifications
Accessible in the Merchant Portal
Usage:
Merchant Payment IDs allow merchants to correlate incoming payment information with their internal systems. While Volume does not enforce global uniqueness, no two successful payments share the same Merchant Payment ID.
Payment Reference
The Payment Reference is a unique identifier primarily used for reconciling payments in banking systems. Unlike other IDs, it is visible in most banks, making it the only identifier that allows merchants to match the payer’s bank records with Volume’s payment system.
Format: Alphanumeric (letters and digits), up to 18 characters
Uniqueness: Must be unique within the merchant’s application
Important Note:
Currently, merchants provide the Payment Reference, but it is strongly recommended to generate a unique value for every payment in the Volume Component. In the future, Volume will handle Payment Reference generation directly.
Availability:
Included in webhook notifications
Accessible in the Merchant Portal
Summary:
Payment ID: System-generated, globally unique, ensures reliable transaction tracking.
Merchant Payment ID: Merchant-provided, unique per payment, used for internal correlation.
Payment Reference: Bank-visible, unique per merchant application, used for reconciliation.
Understanding these three identifiers and their proper use ensures smooth integration with Volume and reliable tracking of all payment activities.