Class Sale
Class Sale
A sale transaction. This is the resource that is returned as a part related resources in Payment
- PayPal\Common\PayPalModel
- PayPal\Common\PayPalResourceModel implements PayPal\Rest\IResource
- PayPal\Api\Sale
Methods summary
public
|
|
public
string
|
|
public
|
#
setPurchaseUnitReferenceId( string $purchase_unit_reference_id )
Identifier to the purchase or transaction unit corresponding to this sale transaction. |
public
string
|
#
getPurchaseUnitReferenceId( )
Identifier to the purchase or transaction unit corresponding to this sale transaction. |
public
|
|
public
|
|
public
|
#
setPaymentMode( string $payment_mode )
Specifies payment mode of the transaction. Only supported when the |
public
string
|
#
getPaymentMode( )
Specifies payment mode of the transaction. Only supported when the |
public
|
|
public
string
|
|
public
|
#
setReasonCode( string $reason_code )
Reason code for the transaction state being Pending or Reversed. Only supported when the |
public
string
|
#
getReasonCode( )
Reason code for the transaction state being Pending or Reversed. Only supported when the |
public
|
#
setProtectionEligibility( string $protection_eligibility )
The level of seller protection in force for the transaction. Only supported when the |
public
string
|
#
getProtectionEligibility( )
The level of seller protection in force for the transaction. Only supported when the |
public
|
#
setProtectionEligibilityType( string $protection_eligibility_type )
The kind of seller protection in force for the transaction. It is returned only when protection_eligibility is ELIGIBLE or PARTIALLY_ELIGIBLE. Only supported when the |
public
string
|
#
getProtectionEligibilityType( )
The kind of seller protection in force for the transaction. It is returned only when protection_eligibility is ELIGIBLE or PARTIALLY_ELIGIBLE. Only supported when the |
public
|
#
setClearingTime( string $clearing_time )
Expected clearing time for eCheck Transactions. Returned when payment is made with eCheck. Only supported when the |
public
string
|
#
getClearingTime( )
Expected clearing time for eCheck Transactions. Returned when payment is made with eCheck. Only supported when the |
public
|
#
setPaymentHoldStatus( string $payment_hold_status )
Status of the Recipient Fund. For now, it will be returned only when fund status is held Valid Values: ["HELD"] |
public
string
|
#
getPaymentHoldStatus( )
Status of the Recipient Fund. For now, it will be returned only when fund status is held |
public
|
#
setPaymentHoldReasons( string[] $payment_hold_reasons )
Reasons for PayPal holding recipient fund. It is set only if payment hold status is held |
public
string[]
|
#
getPaymentHoldReasons( )
Reasons for PayPal holding recipient fund. It is set only if payment hold status is held |
public
|
|
public
|
|
public
|
#
setTransactionFee(
Transaction fee applicable for this payment. |
public
|
|
public
|
#
setReceivableAmount(
Net amount the merchant receives for this transaction in their receivable currency. Returned only in cross-currency use cases where a merchant bills a buyer in a non-primary currency for that buyer. |
public
|
#
getReceivableAmount( )
Net amount the merchant receives for this transaction in their receivable currency. Returned only in cross-currency use cases where a merchant bills a buyer in a non-primary currency for that buyer. |
public
|
#
setExchangeRate( string $exchange_rate )
Exchange rate applied for this transaction. Returned only in cross-currency use cases where a merchant bills a buyer in a non-primary currency for that buyer. |
public
string
|
#
getExchangeRate( )
Exchange rate applied for this transaction. Returned only in cross-currency use cases where a merchant bills a buyer in a non-primary currency for that buyer. |
public
|
#
setFmfDetails(
Fraud Management Filter (FMF) details applied for the payment that could result in accept, deny, or pending action. Returned in a payment response only if the merchant has enabled FMF in the profile settings and one of the fraud filters was triggered based on those settings. See Fraud Management Filters Summary for more information. |
public
|
#
getFmfDetails( )
Fraud Management Filter (FMF) details applied for the payment that could result in accept, deny, or pending action. Returned in a payment response only if the merchant has enabled FMF in the profile settings and one of the fraud filters was triggered based on those settings. See Fraud Management Filters Summary for more information. |
public
|
#
setReceiptId( string $receipt_id )
Receipt id is a payment identification number returned for guest users to identify the payment. |
public
string
|
#
getReceiptId( )
Receipt id is a payment identification number returned for guest users to identify the payment. |
public
|
#
setParentPayment( string $parent_payment )
ID of the payment resource on which this transaction is based. |
public
string
|
|
public
|
#
setProcessorResponse(
Response codes returned by the processor concerning the submitted payment. Only supported when the |
public
|
#
getProcessorResponse( )
Response codes returned by the processor concerning the submitted payment. Only supported when the |
public
|
#
setBillingAgreementId( string $billing_agreement_id )
ID of the billing agreement used as reference to execute this transaction. |
public
string
|
#
getBillingAgreementId( )
ID of the billing agreement used as reference to execute this transaction. |
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public static
|
#
get( string $saleId,
Shows details for a sale, by ID. Returns only sales that were created through the REST API. |
public
|
#
refund(
Refund a completed payment by passing the sale_id in the request URI. In addition, include an empty JSON payload in the request body for a full refund. For a partial refund, include an amount object in the request body. |
public
|
#
refundSale(
Refunds a sale, by ID. For a full refund, include an empty payload in the JSON request body. For a partial refund, 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()