Orders
Confirm Order
Confirm payment and finalize an order
POST
Documentation Index
Fetch the complete documentation index at: https://mintlify.com/GoodnessFx/GatePass/llms.txt
Use this file to discover all available pages before exploring further.
This endpoint confirms a payment and updates the order status to COMPLETED. It triggers ticket minting and sends confirmation notifications.
Authentication
Bearer token for authentication
Path Parameters
The unique identifier of the order to confirm
Request Body
Payment gateway transaction ID
Payment reference from the gateway (tx_ref)
Payment gateway used:
flutterwave, paystack, or mpesaPayment amount for verification
User’s wallet address for NFT ticket minting (required for blockchain tickets)
Response
Indicates if the confirmation was successful
Updated order status: COMPLETED or FAILED
Updated order object
Array of minted ticket objects
Confirmation notification sent to user
Confirmation Flow
- Payment Verification: GatePass verifies the transaction with the payment gateway
- Amount Validation: Confirms the payment amount matches the order total
- Status Update: Updates order status to COMPLETED
- Ticket Minting: Mints NFT tickets on blockchain (if applicable)
- Notification: Sends confirmation email and in-app notification
- Response: Returns confirmed order with ticket details
Payment Gateway Integration
Flutterwave
After payment, Flutterwave redirects to your callback URL withtransaction_id and tx_ref. Use these to confirm the order:
Paystack
Paystack provides areference parameter after successful payment:
NFT Ticket Minting
If the event has acontractAddress and the user provides a walletAddress, NFT tickets are automatically minted:
- Chain: Polygon (chainId: 137)
- Standard: ERC-721
- Metadata: Stored on IPFS
- Transfer: Controlled by event settings
Error Codes
- 400: Invalid payment information or verification failed
- 404: Order not found
- 409: Order already confirmed
- 500: Blockchain minting failed (order still completed)