Method |
Description |
|
authorize ( Authorization $authorization, ApiContext $apiContext = null, PayPalRestCall $restCall = null ) : Authorization |
Authorizes an order, by ID. Include an amount object in the JSON request body. |
|
capture ( Capture $capture, ApiContext $apiContext = null, PayPalRestCall $restCall = null ) : Capture |
Captures a payment for an order, by ID. To use this call, the original payment call must specify an intent of order. In the JSON request body, include the payment amount and indicate whether this capture is the final capture for the authorization. |
|
get ( string $orderId, ApiContext $apiContext = null, PayPalRestCall $restCall = null ) : Order |
Shows details for an order, by ID. |
|
getAmount ( ) : Amount |
Amount being collected. |
|
getCreateTime ( ) : string |
Time the resource was created in UTC ISO8601 format. |
|
getFmfDetails ( ) : FmfDetails |
Fraud Management Filter (FMF) details applied for the payment that could result in accept/deny/pending action. |
|
getId ( ) : string |
Identifier of the order transaction. |
|
getParentPayment ( ) : string |
ID of the Payment resource that this transaction is based on. |
|
getPaymentMode ( ) : string |
specifies payment mode of the transaction |
|
getPendingReason ( ) : string |
|
|
getProtectionEligibility ( ) : string |
The level of seller protection in force for the transaction. |
|
getProtectionEligibilityType ( ) : string |
The kind of seller protection in force for the transaction. This property is returned only when the protection_eligibility property is set to ELIGIBLEor PARTIALLY_ELIGIBLE. Only supported when the payment_method is set to paypal. Allowed values: ITEM_NOT_RECEIVED_ELIGIBLE- Sellers are protected against claims for items not received. UNAUTHORIZED_PAYMENT_ELIGIBLE- Sellers are protected against claims for unauthorized payments. One or both of the allowed values can be returned. |
|
getPurchaseUnitReferenceId ( ) : string |
Identifier to the purchase unit associated with this object. Obsolete. Use one in cart_base. |
|
getReasonCode ( ) : string |
Reason code for the transaction state being Pending or Reversed. This field will replace pending_reason field eventually. Only supported when the payment_method is set to paypal. |
|
getReferenceId ( ) : string |
Identifier to the purchase unit associated with this object. Obsolete. Use one in cart_base. |
|
getState ( ) : string |
State of the order transaction. |
|
getUpdateTime ( ) : string |
Time the resource was last updated in UTC ISO8601 format. |
|
setAmount ( Amount $amount ) |
Amount being collected. |
|
setCreateTime ( string $create_time ) |
Time the resource was created in UTC ISO8601 format. |
|
setFmfDetails ( FmfDetails $fmf_details ) |
Fraud Management Filter (FMF) details applied for the payment that could result in accept/deny/pending action. |
|
setId ( string $id ) |
Identifier of the order transaction. |
|
setParentPayment ( string $parent_payment ) |
ID of the Payment resource that this transaction is based on. |
|
setPaymentMode ( string $payment_mode ) |
specifies payment mode of the transaction
Valid Values: ["INSTANT_TRANSFER", "MANUAL_BANK_TRANSFER", "DELAYED_TRANSFER", "ECHECK"] |
|
setPendingReason ( string $pending_reason ) |
[DEPRECATED] Reason code for the transaction state being Pending. Obsolete. Retained for backward compatability. Use reason_code field above instead. |
|
setProtectionEligibility ( string $protection_eligibility ) |
The level of seller protection in force for the transaction. |
|
setProtectionEligibilityType ( string $protection_eligibility_type ) |
The kind of seller protection in force for the transaction. This property is returned only when the protection_eligibility property is set to ELIGIBLEor PARTIALLY_ELIGIBLE. Only supported when the payment_method is set to paypal. Allowed values: ITEM_NOT_RECEIVED_ELIGIBLE- Sellers are protected against claims for items not received. UNAUTHORIZED_PAYMENT_ELIGIBLE- Sellers are protected against claims for unauthorized payments. One or both of the allowed values can be returned. |
|
setPurchaseUnitReferenceId ( string $purchase_unit_reference_id ) |
Identifier to the purchase unit associated with this object. Obsolete. Use one in cart_base. |
|
setReasonCode ( string $reason_code ) |
Reason code for the transaction state being Pending or Reversed. This field will replace pending_reason field eventually. Only supported when the payment_method is set to paypal. |
|
setReferenceId ( string $reference_id ) |
Identifier to the purchase unit associated with this object. Obsolete. Use one in cart_base. |
|
setState ( string $state ) |
State of the order transaction. |
|
setUpdateTime ( string $update_time ) |
Time the resource was last updated in UTC ISO8601 format. |
|
void ( ApiContext $apiContext = null, PayPalRestCall $restCall = null ) : Order |
Voids, or cancels, an order, by ID. You cannot void an order if a payment has already been partially or fully captured. |
|