1
0
Files
PayPal-PHP-Server-SDK/doc/models/capture-request.md
Patrick Powers 1fc2cf1e07 2.0.0 Release (#58)
* Automated commit message

* Automated commit message

* add changelog

---------

Co-authored-by: PayPalServerSDKs <server-sdks@paypal.com>
2025-11-13 16:32:53 -06:00

3.1 KiB

Capture Request

Captures either a portion or the full authorized amount of an authorized payment.

Structure

CaptureRequest

Fields

Name Type Tags Description Getter Setter
amount ?Money Optional The currency and amount for a financial transaction, such as a balance or payment due. getAmount(): ?Money setAmount(?Money amount): void
invoiceId ?string Optional The API caller-provided external invoice number for this order. Appears in both the payer's transaction history and the emails that the payer receives.

Constraints: Maximum Length: 127
getInvoiceId(): ?string setInvoiceId(?string invoiceId): void
finalCapture ?bool Optional Indicates whether you can make additional captures against the authorized payment. Set to true if you do not intend to capture additional payments against the authorization. Set to false if you intend to capture additional payments against the authorization.

Default: false
getFinalCapture(): ?bool setFinalCapture(?bool finalCapture): void
paymentInstruction ?CapturePaymentInstruction Optional Any additional payment instructions to be consider during payment processing. This processing instruction is applicable for Capturing an order or Authorizing an Order. getPaymentInstruction(): ?CapturePaymentInstruction setPaymentInstruction(?CapturePaymentInstruction paymentInstruction): void
noteToPayer ?string Optional An informational note about this settlement. Appears in both the payer's transaction history and the emails that the payer receives.

Constraints: Maximum Length: 255
getNoteToPayer(): ?string setNoteToPayer(?string noteToPayer): void
softDescriptor ?string Optional The payment descriptor on the payer's account statement.

Constraints: Maximum Length: 22
getSoftDescriptor(): ?string setSoftDescriptor(?string softDescriptor): void

Example (as JSON)

{
  "final_capture": false,
  "amount": {
    "currency_code": "currency_code6",
    "value": "value0"
  },
  "invoice_id": "invoice_id4",
  "payment_instruction": {
    "platform_fees": [
      {
        "amount": {
          "currency_code": "currency_code6",
          "value": "value0"
        },
        "payee": {
          "email_address": "email_address4",
          "merchant_id": "merchant_id6"
        }
      },
      {
        "amount": {
          "currency_code": "currency_code6",
          "value": "value0"
        },
        "payee": {
          "email_address": "email_address4",
          "merchant_id": "merchant_id6"
        }
      },
      {
        "amount": {
          "currency_code": "currency_code6",
          "value": "value0"
        },
        "payee": {
          "email_address": "email_address4",
          "merchant_id": "merchant_id6"
        }
      }
    ],
    "disbursement_mode": "INSTANT",
    "payee_receivable_fx_rate_id": "payee_receivable_fx_rate_id0"
  },
  "note_to_payer": "note_to_payer6"
}