Class Capture
Class Capture
A capture transaction.
- PayPal\Common\PayPalModel
- PayPal\Common\PayPalResourceModel implements PayPal\Rest\IResource
- PayPal\Api\Capture
Methods summary
public
|
|
public
string
|
|
public
|
#
setAmount(
The amount to capture. If the amount matches the orginally authorized amount, the state of the authorization changes to |
public
|
|
public
|
#
setIsFinalCapture( boolean $is_final_capture )
Indicates whether to release all remaining funds that the authorization holds in the funding instrument. Default is |
public
boolean
|
#
getIsFinalCapture( )
Indicates whether to release all remaining funds that the authorization holds in the funding instrument. Default is |
public
|
|
public
string
|
|
public
|
#
setReasonCode( string $reason_code )
The reason code that describes why the transaction state is pending or reversed. Valid Values: ["CHARGEBACK", "GUARANTEE", "BUYER_COMPLAINT", "REFUND", "UNCONFIRMED_SHIPPING_ADDRESS", "ECHECK", "INTERNATIONAL_WITHDRAWAL", "RECEIVING_PREFERENCE_MANDATES_MANUAL_ACTION", "PAYMENT_REVIEW", "REGULATORY_REVIEW", "UNILATERAL", "VERIFICATION_REQUIRED", "TRANSACTION_APPROVED_AWAITING_FUNDING"] |
public
string
|
|
public
|
#
setParentPayment( string $parent_payment )
The ID of the payment on which this transaction is based. |
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
|
|
public
|
#
setCreateTime( string $create_time )
The date and time of capture, as defined in RFC 3339 Section 5.6. |
public
string
|
|
public
|
|
public
string
|
|
public static
|
#
get( string $captureId,
Shows details for a captured payment, by ID. |
public
|
#
refund(
Refund a captured payment by passing the capture_id in the request URI. In addition, include an amount object in the body of the request JSON. |
public
|
#
refundCapturedPayment(
Refunds a captured payment, by ID. Include an |
Methods inherited from PayPal\Common\PayPalResourceModel
addLink()
,
executeCall()
,
getLink()
,
getLinks()
,
removeLink()
,
setLinks()
,
updateAccessToken()
Methods inherited from PayPal\Common\PayPalModel
__construct()
,
__get()
,
__isset()
,
__set()
,
__toString()
,
__unset()
,
fromArray()
,
fromJson()
,
getList()
,
setCredential()
,
toArray()
,
toJSON()