Class Payment
Class Payment
Lets you create, process and manage payments.
- PayPal\Common\PayPalModel
- PayPal\Common\PayPalResourceModel implements PayPal\Rest\IResource
- PayPal\Api\Payment
Direct known subclasses
Methods summary
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
#
setPayer(
Source of the funds for this payment represented by a PayPal account or a direct credit card. |
public
|
|
public
|
#
setPotentialPayerInfo(
Information that the merchant knows about the payer. This information is not definitive and only serves as a hint to the UI or any pre-processing logic. |
public
|
#
getPotentialPayerInfo( )
Information that the merchant knows about the payer. This information is not definitive and only serves as a hint to the UI or any pre-processing logic. |
public
|
|
public
|
|
public
|
|
public
string
|
|
public
|
#
setTransactions(
Transactional details including the amount and item details. |
public
|
|
public
|
|
public
|
|
public
|
#
setFailedTransactions(
Applicable for advanced payments like multi seller payment (MSP) to support partial failures |
public
|
#
getFailedTransactions( )
Applicable for advanced payments like multi seller payment (MSP) to support partial failures |
public
|
|
public
|
|
public
|
#
setBillingAgreementTokens( string[] $billing_agreement_tokens )
Collection of PayPal generated billing agreement tokens. |
public
string[]
|
|
public
|
#
addBillingAgreementToken( string $billingAgreementToken )
Append BillingAgreementTokens to the list. |
public
|
#
removeBillingAgreementToken( string $billingAgreementToken )
Remove BillingAgreementTokens from the list. |
public
|
#
setCreditFinancingOffered(
Credit financing offered to payer on PayPal side. Returned in payment after payer opts-in |
public
|
#
getCreditFinancingOffered( )
Credit financing offered to payer on PayPal side. Returned in payment after payer opts-in |
public
|
#
setPaymentInstruction(
Instructions for the payer to complete this payment. |
public
|
|
public
|
#
setState( string $state )
The state of the payment, authorization, or order transaction. The value is:
Valid Values: ["created", "approved", "failed", "partially_completed", "in_progress"] |
public
string
|
|
public
|
#
setExperienceProfileId( string $experience_profile_id )
PayPal generated identifier for the merchant's payment experience profile. Refer to this link to create experience profile ID. |
public
string
|
#
getExperienceProfileId( )
PayPal generated identifier for the merchant's payment experience profile. Refer to this link to create experience profile ID. |
public
|
#
setNoteToPayer( string $note_to_payer )
free-form field for the use of clients to pass in a message to the payer |
public
string
|
|
public
|
#
setRedirectUrls(
Set of redirect URLs you provide only for PayPal-based payments. |
public
|
|
public
|
#
setFailureReason( string $failure_reason )
Failure reason code returned when the payment failed for some valid reasons. Valid Values: ["UNABLE_TO_COMPLETE_TRANSACTION", "INVALID_PAYMENT_METHOD", "PAYER_CANNOT_PAY", "CANNOT_PAY_THIS_PAYEE", "REDIRECT_REQUIRED", "PAYEE_FILTER_RESTRICTIONS"] |
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
null|string
|
|
public
null|string
|
|
public
|
#
create(
Creates and processes a payment. In the JSON request body, include a |
public static
|
#
get( string $paymentId,
Shows details for a payment, by ID. |
public
boolean
|
#
update(
Partially updates a payment, by ID. You can update the amount, shipping address, invoice ID, and custom data. You cannot use patch after execute has been called. |
public
|
#
execute(
Executes, or completes, a PayPal payment that the payer has approved. You can optionally update selective payment information when you execute a payment. |
public static
|
#
all( array $params,
List payments that were made to the merchant who issues the request. Payments can be in any state. |
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()
Properties summary
Properties inherited from PayPal\Common\PayPalModel
Magic properties
public
|
$payee
|