WooCommerce Code Reference

WC_Gateway_Paypal_PDT_Handler extends WC_Gateway_Paypal_Response
in package

Handle PDT Responses from PayPal.

Table of Contents

$identity_token  : string
Identity token for PDT support
$receiver_email  : string
Receiver email address to validate.
$sandbox  : bool
Sandbox mode
__construct()  : mixed
Constructor.
check_response()  : mixed
Check Response for PDT, taking the order id from the request.
check_response_for_order()  : mixed
Check Response for PDT.
set_receiver_email()  : mixed
Set receiver email to enable more strict validation.
get_paypal_order()  : bool|WC_Order
Get the order from the PayPal 'Custom' variable.
payment_complete()  : mixed
Complete order, add transaction ID and note.
payment_on_hold()  : mixed
Hold order and add note.
validate_transaction()  : bool|array<string|int, mixed>
Validate a PDT transaction to ensure its authentic.

Properties

Methods

validate_transaction()

Validate a PDT transaction to ensure its authentic.

protected validate_transaction(string $transaction) : bool|array<string|int, mixed>
Parameters
$transaction : string

TX ID.

Return values
bool|array<string|int, mixed>False or result array if successful and valid.