Package DE_EPAGES::PayPalPro::API::Payment
Payment functions for PayPalPro.
Functions
- CaptureAmount
- SendPaymentRequest
CaptureAmount
Capture amount for a previoulsy authorised transaction
Syntax |
my ($hResult, $hParams) = CaptureAmount($PaymentLineItem);
|
Input |
- $PaymentLineItem (object)
- the payment line item
|
Return |
- $hResult (ref.hash)
- result received from PayPalPro | ref.hash
$hParams | params sent to PayPalPro
|
SendPaymentRequest
Initate a payment for the order and values
Syntax |
my ($hResult, $hParams) = SendPaymentRequest($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 PayPalPro | ref.hash
$hParams | params sent to PayPalPro
|