Understanding how transactions flow through the Paycrest protocol from creation to settlement
Understanding the complete lifecycle of a transaction in the Paycrest protocol is crucial for building reliable integrations. This section explains each stage of the transaction process and what happens at each step.
A transaction in the Paycrest protocol follows a well-defined lifecycle from order creation to final settlement. Each stage has specific requirements, validations, and outcomes that ensure reliable and compliant payment processing.
The transaction lifecycle begins when a sender creates a payment order.
Required Fields:
Optional Fields:
Parameter Validation
Validate all required fields are present and properly formatted
Sender Verification
Verify sender KYC status and account validity
Recipient Validation
Validate recipient information and delivery method
Compliance Check
Perform AML/CFT screening and risk assessment
Rate Calculation
Calculate optimal exchange rate if not specified
initiated
: Order initiated via API (before Gateway creation)pending
: Order awaiting provider assignmentprocessing
: Order being processed by providercancelled
: Order cancelled by sender or systemfulfilled
: Order fulfilled by providervalidated
: Order validated and ready for settlementsettled
: Order fully completed on blockchainexpired
: Order expired because no transfer was made to the receive address within the time limitOnce an order is created, aggregators work to assign it to suitable providers.
Provider Selection Factors:
Provider Discovery
Identify all providers supporting the currency pair
Rate Comparison
Compare rates from all available providers
Capacity Check
Verify provider has sufficient liquidity
Quality Assessment
Evaluate provider reliability and performance
Final Selection
Select optimal provider based on criteria
assigned
: Order assigned to providerrejected
: No suitable provider availableretrying
: Retrying assignment with different criteriaOnce assigned, the provider executes the payment to the recipient.
Provider Actions:
processing
: Payment being executed by providerfulfilled
: Payment successfully delivered to recipientfailed
: Payment execution failedpending_confirmation
: Awaiting delivery confirmationAfter successful payment execution, the transaction moves to settlement phase.
Onchain Settlement:
settling
: Settlement in progresssettled
: Settlement completed successfullysettlement_failed
: Settlement failedrefunded
: Order refunded to senderinitiated
Order initiated via API
pending
Awaiting provider assignment
processing
Order being processed by provider
fulfilled
Order fulfilled by provider
validated
Order validated and ready for settlement
settled
Transaction completed successfully
initiated
Order initiated via API
pending
Awaiting provider assignment
cancelled
Order cancelled by sender or system
expired
Order expired without fulfillment
initiated
Order initiated via API
pending
Awaiting provider assignment
processing
Order being processed by provider
fulfilled
Order fulfilled by provider
refunded
Funds refunded to sender
Standard Processing Times:
Factors Affecting Speed:
Availability:
Performance Metrics:
Validation Errors:
Resolution:
Assignment Failures:
Resolution:
Execution Failures:
Resolution:
Built-in Recovery:
Manual Recovery:
Automatic Refunds:
Manual Refunds:
Order Tracking:
Webhook Notifications:
Order Creation:
Error Handling:
Payment Execution:
Quality Assurance:
Order Management:
System Operations:
Note: Understanding the transaction lifecycle helps participants build reliable integrations and provides transparency into the payment process. Each stage is designed to ensure secure, compliant, and efficient payment processing.
Understanding how transactions flow through the Paycrest protocol from creation to settlement
Understanding the complete lifecycle of a transaction in the Paycrest protocol is crucial for building reliable integrations. This section explains each stage of the transaction process and what happens at each step.
A transaction in the Paycrest protocol follows a well-defined lifecycle from order creation to final settlement. Each stage has specific requirements, validations, and outcomes that ensure reliable and compliant payment processing.
The transaction lifecycle begins when a sender creates a payment order.
Required Fields:
Optional Fields:
Parameter Validation
Validate all required fields are present and properly formatted
Sender Verification
Verify sender KYC status and account validity
Recipient Validation
Validate recipient information and delivery method
Compliance Check
Perform AML/CFT screening and risk assessment
Rate Calculation
Calculate optimal exchange rate if not specified
initiated
: Order initiated via API (before Gateway creation)pending
: Order awaiting provider assignmentprocessing
: Order being processed by providercancelled
: Order cancelled by sender or systemfulfilled
: Order fulfilled by providervalidated
: Order validated and ready for settlementsettled
: Order fully completed on blockchainexpired
: Order expired because no transfer was made to the receive address within the time limitOnce an order is created, aggregators work to assign it to suitable providers.
Provider Selection Factors:
Provider Discovery
Identify all providers supporting the currency pair
Rate Comparison
Compare rates from all available providers
Capacity Check
Verify provider has sufficient liquidity
Quality Assessment
Evaluate provider reliability and performance
Final Selection
Select optimal provider based on criteria
assigned
: Order assigned to providerrejected
: No suitable provider availableretrying
: Retrying assignment with different criteriaOnce assigned, the provider executes the payment to the recipient.
Provider Actions:
processing
: Payment being executed by providerfulfilled
: Payment successfully delivered to recipientfailed
: Payment execution failedpending_confirmation
: Awaiting delivery confirmationAfter successful payment execution, the transaction moves to settlement phase.
Onchain Settlement:
settling
: Settlement in progresssettled
: Settlement completed successfullysettlement_failed
: Settlement failedrefunded
: Order refunded to senderinitiated
Order initiated via API
pending
Awaiting provider assignment
processing
Order being processed by provider
fulfilled
Order fulfilled by provider
validated
Order validated and ready for settlement
settled
Transaction completed successfully
initiated
Order initiated via API
pending
Awaiting provider assignment
cancelled
Order cancelled by sender or system
expired
Order expired without fulfillment
initiated
Order initiated via API
pending
Awaiting provider assignment
processing
Order being processed by provider
fulfilled
Order fulfilled by provider
refunded
Funds refunded to sender
Standard Processing Times:
Factors Affecting Speed:
Availability:
Performance Metrics:
Validation Errors:
Resolution:
Assignment Failures:
Resolution:
Execution Failures:
Resolution:
Built-in Recovery:
Manual Recovery:
Automatic Refunds:
Manual Refunds:
Order Tracking:
Webhook Notifications:
Order Creation:
Error Handling:
Payment Execution:
Quality Assurance:
Order Management:
System Operations:
Note: Understanding the transaction lifecycle helps participants build reliable integrations and provides transparency into the payment process. Each stage is designed to ensure secure, compliant, and efficient payment processing.