ePages 6.17.35 - DE_EPAGES/PayPalExpress/Hooks/LineItemPaymentPayPalExpress.pm

Package DE_EPAGES::PayPalExpress::Hooks::LineItemPaymentPayPalExpress

sets the ShippingAddressChanged flag

Functions

OnIsFraud
OnOrderCreated
OnUpdateAddress
OnUpdateBasket

OnIsFraud

if the payment was (partially) refunded, don't treat the order as fraud (Hook CustomerOrderIsFraud)

Syntax
OnIsFraud($hParams);
Input
$hParams (ref.hash.*)
trigger parameter hash, keys are
  • IsFraud - fraud status of the order - boolean
  • LineItemPayment - payment line item of the order- object

OnOrderCreated

triggers step 3 of PayPalExpress Payment Process: DoCheckoutPayment (Hook API_OrderCreated)

Syntax
OnOrderCreated ($hParams);
Input
$hParams (ref.hash.*)
primary key of tax class, key is
  • Object - order - object

OnUpdateAddress

Sets the ShippingAddressChanged flag if the shipping address was updated (Hook OBJ_AfterUpdateAddress)

Syntax
OnUpdateAddress ($hParams);
Input
$hParams (ref.hash.*)
primary key of tax class, key is
  • Object - address - object

OnUpdateBasket

Sets the ShippingAddressChanged flag if another shipping address was selected (Hook OBJ_AfterUpdateBasket)

Syntax
OnUpdateBasket ($hParams);
Input
$hParams (ref.hash.*)
primary key of tax class, key is
  • Object - basket - object