Automatic Delayed CaptureIf you prefer to have Yuno automatically capture payments after a specified delay, you can configure
delayed_capture_settings when creating the payment. Learn more in the Cancel and Capture Flow guide.Requirements
To capture a payment, you need to:- Access your API credentials on the Yuno Dashboard, which consist of:
public-api-keyprivate-secret-key
- Have the payment identification data received after creating the payment using the Create Payment endpoint:
id: The unique identifier of the payment, obtained from the parameteridafter creating the payment.transaction_id: The unique identifier of the transaction obtained from the parametertransaction.idafter creating the payment.
Explore Yuno Postman CollectionsYuno provides Postman Collections that you can use to replicate the use cases locally.
Capture OptionsThis guide covers manual capture using the API endpoint. For other capture options including:
- Real-time capture (immediate purchase)
- Delayed capture (automatic capture after a delay)
Capture a payment
You can capture a payment only if it has the PENDING status. Use the Capture Payment endpoint to capture the payment. To identify the payment to be captured, you need to provide itsid and the transaction_id. In addition, you need to inform the amount to be captured using the object amount on the body request:
- Complete capture: Leave the amount empty.
- Partial capture: Provide the value to be captured using the parameter
amount.
type = CAPTUREstatus = SUCCEEDEDpayment.status = SUCCEEDEDpayment.sub_status = CAPTURED/PARTIALLY_CAPTURED
Check the payment status
If, for some reason, you need to confirm the payment capture:- Use the Retrieve Payment by ID or Retrieve Payment by merchant_order_id to get detailed information about the payment.
- Alternatively, set up webhooks to receive notifications for each event. Refer to the Webhooks guide to learn how to configure webhooks in Yuno.