Overview
  • Namespace
  • Class

Namespaces

  • PayPal
    • Api
    • Auth
    • Cache
    • Common
    • Converter
    • Core
    • Exception
    • Handler
    • Log
    • Rest
    • Security
    • Transport
    • Validation

Classes

  • Address
  • Agreement
  • AgreementDetails
  • AgreementStateDescriptor
  • AgreementTransaction
  • AgreementTransactions
  • AlternatePayment
  • Amount
  • Authorization
  • BankAccount
  • BankAccountsList
  • BankToken
  • BaseAddress
  • Billing
  • BillingAgreementToken
  • BillingInfo
  • CancelNotification
  • Capture
  • CarrierAccount
  • CarrierAccountToken
  • CartBase
  • ChargeModel
  • Cost
  • CountryCode
  • CreateProfileResponse
  • Credit
  • CreditCard
  • CreditCardHistory
  • CreditCardList
  • CreditCardToken
  • CreditFinancingOffered
  • Currency
  • CurrencyConversion
  • CustomAmount
  • DetailedRefund
  • Details
  • Error
  • ErrorDetails
  • ExtendedBankAccount
  • ExternalFunding
  • FileAttachment
  • FlowConfig
  • FmfDetails
  • FundingDetail
  • FundingInstrument
  • FundingOption
  • FundingSource
  • FuturePayment
  • HyperSchema
  • Image
  • Incentive
  • InputFields
  • InstallmentInfo
  • InstallmentOption
  • Invoice
  • InvoiceAddress
  • InvoiceItem
  • InvoiceNumber
  • InvoiceSearchResponse
  • Item
  • ItemList
  • Links
  • Measurement
  • MerchantInfo
  • MerchantPreferences
  • Metadata
  • NameValuePair
  • Notification
  • OpenIdAddress
  • OpenIdError
  • OpenIdSession
  • OpenIdTokeninfo
  • OpenIdUserinfo
  • Order
  • OverrideChargeModel
  • Participant
  • Patch
  • PatchRequest
  • Payee
  • Payer
  • PayerInfo
  • Payment
  • PaymentCard
  • PaymentCardToken
  • PaymentDefinition
  • PaymentDetail
  • PaymentExecution
  • PaymentHistory
  • PaymentInstruction
  • PaymentOptions
  • PaymentSummary
  • PaymentTerm
  • Payout
  • PayoutBatch
  • PayoutBatchHeader
  • PayoutItem
  • PayoutItemDetails
  • PayoutSenderBatchHeader
  • Phone
  • Plan
  • PlanList
  • PotentialPayerInfo
  • Presentation
  • PrivateLabelCard
  • ProcessorResponse
  • RecipientBankingInstruction
  • RedirectUrls
  • Refund
  • RefundDetail
  • RefundRequest
  • RelatedResources
  • Sale
  • Search
  • ShippingAddress
  • ShippingCost
  • ShippingInfo
  • Tax
  • Template
  • TemplateData
  • Templates
  • TemplateSettings
  • TemplateSettingsMetadata
  • Terms
  • Transaction
  • TransactionBase
  • Transactions
  • VerifyWebhookSignature
  • VerifyWebhookSignatureResponse
  • Webhook
  • WebhookEvent
  • WebhookEventList
  • WebhookEventType
  • WebhookEventTypeList
  • WebhookList
  • WebProfile

Class Transaction

Class Transaction

A transaction defines the contract of a payment - what is the payment for and who is fulfilling it.

PayPal\Common\PayPalModel
Extended by PayPal\Api\CartBase
Extended by PayPal\Api\TransactionBase
Extended by PayPal\Api\Transaction
Namespace: PayPal\Api
Package: PayPal\Api
Located at PayPal/Api/Transaction.php

Methods summary

public
# setTransactions( PayPal\Api\Transaction $transactions )

Additional transactions for complex payment scenarios.

Additional transactions for complex payment scenarios.

Parameters

$transactions

Returns


$this
public PayPal\Api\Transaction[]
# getTransactions( )

Additional transactions for complex payment scenarios.

Additional transactions for complex payment scenarios.

Returns

PayPal\Api\Transaction[]
public
# setPurchaseUnitReferenceId( string $purchase_unit_reference_id )

Identifier to the purchase unit corresponding to this sale transaction

Identifier to the purchase unit corresponding to this sale transaction

Deprecated

Use #setReferenceId instead

Parameters

$purchase_unit_reference_id

Returns


$this
public string
# getPurchaseUnitReferenceId( )

Identifier to the purchase unit corresponding to this sale transaction

Identifier to the purchase unit corresponding to this sale transaction

Deprecated

Use #getReferenceId instead

Returns

string

Methods inherited from PayPal\Api\TransactionBase

getRelatedResources(), setRelatedResources()

Methods inherited from PayPal\Api\CartBase

addExternalFunding(), getAmount(), getCustom(), getDescription(), getExternalFunding(), getInvoiceNumber(), getItemList(), getNoteToPayee(), getNotifyUrl(), getOrderUrl(), getPayee(), getPaymentOptions(), getPurchaseOrder(), getReferenceId(), getSoftDescriptor(), getSoftDescriptorCity(), removeExternalFunding(), setAmount(), setCustom(), setDescription(), setExternalFunding(), setInvoiceNumber(), setItemList(), setNoteToPayee(), setNotifyUrl(), setOrderUrl(), setPayee(), setPaymentOptions(), setPurchaseOrder(), setReferenceId(), setSoftDescriptor(), setSoftDescriptorCity()

Methods inherited from PayPal\Common\PayPalModel

__construct(), __get(), __isset(), __set(), __toString(), __unset(), fromArray(), fromJson(), getList(), setCredential(), toArray(), toJSON()

Properties summary

Properties inherited from PayPal\Common\PayPalModel

$credential

API documentation generated by ApiGen