ePages 6.11.0 - DE_EPAGES/PayPalPro/API/PaymentEC.pm

Package DE_EPAGES::PayPalPro::API::PaymentEC

Payment functions for PayPalPro using the Express Checkout API.

@EXPORT_OK
DoDirectPayment
DoCapture

Functions

DoCapture
DoDirectPayment

DoCapture

Capture amount for a previoulsy authorised transaction

Syntax
my ($hResult, $hParams) = DoCapture($PaymentLineItem);
Input
$PaymentLineItem (object)
the payment line item
Return
$hResult (ref.hash)
result received from PayPalPro | ref.hash
$hParams | params sent to PayPalPro

DoDirectPayment

Initate a payment for the order and values

Syntax
my ($hResult, $hParams) = DoDirectPayment($Order, \%Values);
Input
$Object (object)
the order or basket to start the payment for
$hValues (ref.hash)
additional values needed for payment, keys:
  • CCNumber - credit card number
  • ExpireMonth - credit card expire month, e.g. 03 for March, 11 for November
  • ExpireYear - credit card expire year, e.g. 09 for 2009
  • CVV2 - credit card cvv number (optional)
  • IssueNo - credit card issue number; Maestro & Solo cards only (optional)
  • StartMonth - credit issue month, e.g. 03 for March, 11 for November (optional)
  • StartYear - credit issue year, e.g. 09 for 2009 (optional)
  • ClientIP - IP of the client machine (optional)

$hSecureValues (ref.hash)
additional values needed for 3Dsecure payment (optional), keys:
  • AUTHSTATUS3DS - PAResStatus value returned by cmpi_authenticate
  • MPIVENDOR3DS - Enrolled value returned by cmpi_lookup
  • CAVV - Cavv value returned by cmpi_authenticate
  • ECI - EciFlag value returned by cmpi_authenticate
  • XID - Xid value returned by cmpi_authenticate

Return
$hResult (ref.hash)
result received from PayPal EC | ref.hash
$hParams | params sent to PayPal EC