Announcement

Collapse
No announcement yet.

Realex: How do I add the 'Auto-settle' flag?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Realex: How do I add the 'Auto-settle' flag?

    When using Realex as your payment service provider in order that your payment does not go through as a 'delayed' payment, you have to change the "AUTO_SETTLE_FLAG" from "0" to "1" to make the transactions automatically clear.

    Locate the file 'PostRealex.fil' in the 'CommonOCC' folder beneath the site folder*

    Edit the file with a text editor such as Notepad

    Search for the text

    $ActinicSignature = "000";

    Immediately after the line insert: -

    Code:
    my $batchid = $::g_InputHash{BATCHID};
    my $sPA = 0;
    if ('-1' eq $batchid)
    {
    $sPA = 1;
    }
    Save the file and exit

    Locate the file 'OCCRealexScriptTemplate.pl' in the 'CommonOCC' folder beneath the site folder*

    As before edit the file with a text editor such as Notepad

    Search for the text: -

    if ($bAuthorize)

    Replace the block of code: -

    Code:
    if ($bAuthorize)
    {
    AddPostValues ('&', 'PREAUTH', '0', $ALWAYS, $NOENCODE);
    }
    with: -

    Code:
    if ($bAuthorize)
    {
    AddPostValues ('&', 'AUTO_SETTLE_FLAG', '1', $ALWAYS, $NOENCODE);
    }
    else
    {
    AddPostValues ('&', 'AUTO_SETTLE_FLAG', '0', $ALWAYS, $NOENCODE);
    }
    Then save and close the file.
    Once you have uploaded the site the changes will take place.

    * If there is only one site within the software it will be called 'Site1', if there are multiple sites within the software you will need to browse to the site folder name corresponding to the current site you are using.
    Depending on the installation option chosen or operating system used, the 'Site' folder can be found in either 'My Documents', 'Documents', 'Shared Documents' or 'Program Files' in the folder 'Actinic vX\Sites\' (with X replacing the version number).


    NOTE: All versions after v11.03 will have a file path of 'C:\Program Files\SellerDeck xxxx'.
Working...
X