ePages 7.48.0 - DE_EPAGES/Ipayment/API/CGI/Response.pm

Package DE_EPAGES::Ipayment::API::CGI::Response

Class responsible to process the capture and cancel responses

Functions

LoadObjectByGUID
UpdateTransactionStatus
cancelTransaction
captureTransaction
createTransaction
new
rejectTransaction

LoadObjectByGUID

Wrap core bindings

Syntax
$Object = LoadObjectByGUID( $GUID );
Example
$Object = LoadObjectByGUID( "b09e53f4-60e9-41a6-8b30-526b69c28b5d" );
Input
$GUID (string)
general unique id of the object
Return
$Object (object)
object

UpdateTransactionStatus

Wrap core bindings

Syntax
UpdateTransactionStatus( $LineItemPayment );
Example
$hValues = UpdateTransactionStatus( $LineItemPayment );
Input
$LineItemPayment (object)
LineItemPayment
$NewStatus (string)
new status value
Return
$hValues (hash.ref)
Status Values. Returned keys are:
  • TransTime- transaction time
  • TransStatus - transaction status
  • TransTimeMod - modification time

  • cancelTransaction

    Process the cancel transaction

    Syntax
    cancelTransaction( $hFormParams );
    Input
    $hFormParams (ref_hash)
    Response parameters

    captureTransaction

    Process the capture transaction

    Syntax
    captureTransaction( $hFormParams );
    Input
    $hFormParams (ref_hash)
    Response parameters

    createTransaction

    Process the create transaction

    Syntax
    createTransaction( $SecurityLayer );
    Input
    $SecurityLayer (DE_EPAGES::Ipayment::API::CGI::SecurityLayer)
    SecurityLayer
    Return
    $IsTransactionCreated (Boolean)
    Return if the transaction was create successful or not

    new

    constructor

    Syntax
    new ( );
    Return
    $self (DE_EPAGES::Ipayment::API::CGI::Response)
    self

    rejectTransaction

    Reject the transaction In case of Basket: it empty the Basket In case of Order: it set the order to cancelled

    Syntax
    rejectTransaction( $SecurityLayer );
    Input
    $SecurityLayer (DE_EPAGES::Ipayment::API::CGI::SecurityLayer)
    SecurityLayer