Method |
Description |
|
addBillingAgreementToken ( string $billingAgreementToken ) |
Append BillingAgreementTokens to the list. |
|
addFailedTransaction ( Error $error ) |
Append FailedTransactions to the list. |
|
addTransaction ( Transaction $transaction ) |
Append Transactions to the list. |
|
all ( array $params, ApiContext $apiContext = null, PayPalRestCall $restCall = null ) : PaymentHistory |
List payments that were made to the merchant who issues the request. Payments can be in any state. |
|
create ( ApiContext $apiContext = null, PayPalRestCall $restCall = null ) : Payment |
Creates and processes a payment. In the JSON request body, include a payment object with the intent, payer, and transactions. For PayPal payments, include redirect URLs in the payment object. |
|
execute ( PaymentExecution $paymentExecution, ApiContext $apiContext = null, PayPalRestCall $restCall = null ) : Payment |
Executes, or completes, a PayPal payment that the payer has approved. You can optionally update selective payment information when you execute a payment. |
|
get ( string $paymentId, ApiContext $apiContext = null, PayPalRestCall $restCall = null ) : Payment |
Shows details for a payment, by ID. |
|
getApprovalLink ( ) : null | string |
Get Approval Link |
|
getBillingAgreementTokens ( ) : string[] |
Collection of PayPal generated billing agreement tokens. |
|
getCart ( ) : string |
ID of the cart to execute the payment. |
|
getCreateTime ( ) : string |
Payment creation time as defined in RFC 3339 Section 5.6. |
|
getCreditFinancingOffered ( ) : PayPal\Api\CreditFinancingOffered |
Credit financing offered to payer on PayPal side. Returned in payment after payer opts-in |
|
getExperienceProfileId ( ) : string |
PayPal generated identifier for the merchant's payment experience profile. Refer to this link to create experience profile ID. |
|
getFailedTransactions ( ) : Error[] |
Applicable for advanced payments like multi seller payment (MSP) to support partial failures |
|
getFailureReason ( ) : string |
Failure reason code returned when the payment failed for some valid reasons. |
|
getId ( ) : string |
Identifier of the payment resource created. |
|
getIntent ( ) : string |
Payment intent. |
|
getNoteToPayer ( ) : string |
free-form field for the use of clients to pass in a message to the payer |
|
getPayee ( ) : Payee |
Receiver of funds for this payment. |
|
getPayer ( ) : Payer |
Source of the funds for this payment represented by a PayPal account or a direct credit card. |
|
getPaymentInstruction ( ) : PayPal\Api\PaymentInstruction |
Instructions for the payer to complete this payment. |
|
getPotentialPayerInfo ( ) : PotentialPayerInfo |
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. |
|
getRedirectUrls ( ) : PayPal\Api\RedirectUrls |
Set of redirect URLs you provide only for PayPal-based payments. |
|
getState ( ) : string |
The state of the payment, authorization, or order transaction. The value is:created . The transaction was successfully created.approved . The buyer approved the transaction.failed . The transaction request failed. |
|
getTransactions ( ) : Transaction[] |
Transactional details including the amount and item details. |
|
getUpdateTime ( ) : string |
Payment update time as defined in RFC 3339 Section 5.6. |
|
removeBillingAgreementToken ( string $billingAgreementToken ) |
Remove BillingAgreementTokens from the list. |
|
removeFailedTransaction ( Error $error ) |
Remove FailedTransactions from the list. |
|
removeTransaction ( Transaction $transaction ) |
Remove Transactions from the list. |
|
setBillingAgreementTokens ( string[] $billing_agreement_tokens ) |
Collection of PayPal generated billing agreement tokens. |
|
setCart ( string $cart ) |
ID of the cart to execute the payment. |
|
setCreateTime ( string $create_time ) |
Payment creation time as defined in RFC 3339 Section 5.6. |
|
setCreditFinancingOffered ( PayPal\Api\CreditFinancingOffered $credit_financing_offered ) |
Credit financing offered to payer on PayPal side. Returned in payment after payer opts-in |
|
setExperienceProfileId ( string $experience_profile_id ) |
PayPal generated identifier for the merchant's payment experience profile. Refer to this link to create experience profile ID. |
|
setFailedTransactions ( Error[] $failed_transactions ) |
Applicable for advanced payments like multi seller payment (MSP) to support partial failures |
|
setFailureReason ( string $failure_reason ) |
Failure reason code returned when the payment failed for some valid reasons. |
|
setId ( string $id ) |
Identifier of the payment resource created. |
|
setIntent ( string $intent ) |
Payment intent. |
|
setNoteToPayer ( string $note_to_payer ) |
free-form field for the use of clients to pass in a message to the payer |
|
setPayee ( Payee $payee ) |
Receiver of funds for this payment. |
|
setPayer ( Payer $payer ) |
Source of the funds for this payment represented by a PayPal account or a direct credit card. |
|
setPaymentInstruction ( PayPal\Api\PaymentInstruction $payment_instruction ) |
Instructions for the payer to complete this payment. |
|
setPotentialPayerInfo ( PotentialPayerInfo $potential_payer_info ) |
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. |
|
setRedirectUrls ( PayPal\Api\RedirectUrls $redirect_urls ) |
Set of redirect URLs you provide only for PayPal-based payments. |
|
setState ( string $state ) |
The state of the payment, authorization, or order transaction. The value is:created . The transaction was successfully created.approved . The buyer approved the transaction.failed . The transaction request failed.
Valid Values: ["created", "approved", "failed", "partially_completed", "in_progress"] |
|
setTransactions ( Transaction[] $transactions ) |
Transactional details including the amount and item details. |
|
setUpdateTime ( string $update_time ) |
Payment update time as defined in RFC 3339 Section 5.6. |
|
update ( PatchRequest $patchRequest, ApiContext $apiContext = null, PayPalRestCall $restCall = null ) : boolean |
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. |
|