ePages 7.26.0 - DE_EPAGES/Ipayment/API/CGI/SecurityLayer.pm

Package DE_EPAGES::Ipayment::API::CGI::SecurityLayer

description

Example
example

Functions

belongsThisOrdertoShop
extractDataFromParams
getBasketOrOrder
getErrorMessage
getLineItemPayment
getPaymentType
getRemoteIp
getReturnPaymentStatus
getReturnStatus
getShopperID
getTransactionAmount
getTransactionNumber
getTransactionType
new

belongsThisOrdertoShop

It checks if the incoming shop id belongs to the shop

Syntax
belongsThisOrdertoShop( $ShopID );
Input
$ShopID (String)
Id from the shop
Return
$BelongsToShop (boolean)
Whether it belongs to the shop or not

extractDataFromParams

Extracts data from the returned params of HiddenTrigger callback and returns 1 or 0 whether the data fits with the shop data or not

Syntax
extractDataFromParams( $hFormParams );
Input
$hFormParams (ref_hash)
Hash with HiddenTrigger params from ipayment
Return
$AreValidReturnParameters (boolean)
1 if valid return parameters

getBasketOrOrder

Retrieves the Order object

Syntax
getBasketOrOrder(  );
Return
$self->{'Order'} (object)
Order object

getErrorMessage

Retrieves the error message

Syntax
getErrorMessage(  );
Return
$self->{'Error'} (String)
Error message

getLineItemPayment

Retrieves the line item payment from ipayment

Syntax
getLineItemPayment( $LineItemPayment );
Return
$LineItemPayment (object)
LineItemPaymentIpayment object

getPaymentType

Retrieves the return payment type

Syntax
getPaymentType(  );
Return
$self->{'params'}->{'trx_paymenttyp'} (String)
Return payment type

getRemoteIp

Retrieves the remote ip

Syntax
getRemoteIp(  );
Return
$self->{'params'}->{'REMOTE_ADDR'} (String)
Remote ip

getReturnPaymentStatus

Retrieves the return payment status - This is used by paypal

Syntax
getReturnPaymentStatus(  );
Return
$self->{'params'}->{'ret_paymentStatus'} (String)
Return payment status

getReturnStatus

Retrieves the return status

Syntax
getReturnStatus(  );
Return
$self->{'params'}->{'ret_status'} (String)
Return status

getShopperID

Retrieves the shopper id

Syntax
getShopperID(  );
Return
$self->{'params'}->{'shopper_id'} (String)
Shooper id

getTransactionAmount

Retrieves the transaction amount

Syntax
getTransactionAmount(  );
Return
$self->{'params'}->{'trx_amount'} (String)
Transaction amount

getTransactionNumber

Retrieves the transaction number

Syntax
getTransactionNumber(  );
Return
$self->{'params'}->{'ret_trx_number'} (String)
Transaction number

getTransactionType

Retrieves the transaction type

Syntax
getTransactionType(  );
Return
$self->{'params'}->{'trx_typ'} (String)
Transaction type

new

constuctor

Syntax
new( );
Input
$DatabaseBasketOrOrder (object)
Object injection thought for testing
Return
$self (DE_EPAGES::Ipayment::API::CGI::SecurityLayer)
self