Announcement

Collapse
No announcement yet.

Help with Checkout - PSP

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

    Help with Checkout - PSP

    I have to change a switch on a form on my site to enable delayed payment on credit card until goods are shipped. I have been sent the following info from the PSP, but cannot find the correct form to modify. Any help or input will be appreciated.

    The merchant’s check out page has to contain the following form with a submit button to "POST" the cardholder’s browser to the VCS website. Only the first four parameters (p1, p2, p3 and p4) are mandatory. The rest of the parameters are optional to enable recurring transactions, SMS notification, delay settlement, ECT.
    2.1 Example HTML code
    <form method="POST" action="https://www.vcs.co.za/vvonline/ccform.asp">
    <input type="hidden" name="p1" value="a">
    <input type="hidden" name="p2" value="b">
    <input type="hidden" name="p3" value="c">
    <input type="hidden" name="p4" value="d">
    <input type="hidden" name="p5" value="e">
    <input type="hidden" name="p6" value="f">
    <input type="hidden" name="p7" value="g">
    <input type="hidden" name="p8" value="h">
    <input type="hidden" name="p9" value="i">
    <input type="hidden" name="p10" value="j">
    <input type="hidden" name="p11" value="k">
    <input type="hidden" name="p12" value="l">
    <input type="hidden" name="p13" value="m">
    <input type="hidden" name="Budget" value="n">
    <input type="hidden" name="NextOccurDate" value="o">
    <input type="hidden" name="CardholderEmail" value="p">
    <input type="hidden" name="Hash" value="q">
    <input type="hidden" name="m_1" value="z">
    <input type="hidden" name="m_2" value="z">
    <input type="hidden" name="m_3" value="z">
    <input type="hidden" name="m_4" value="z">
    <input type="hidden" name="m_5" value="z">
    <input type="hidden" name="m_6" value="z">
    <input type="hidden" name="m_7" value="z">
    <input type="hidden" name="m_8" value="z">
    <input type="hidden" name="m_9" value="z">
    <input type="hidden" name="m_10" value="z">
    <input type="submit" value="Pay by Credit Card">
    Adrian Boshoff
    http://www.servatech.co.za

    #2
    Found it.
    PSPBounce_00057.fil
    Adrian Boshoff
    http://www.servatech.co.za

    Comment


      #3
      Further to this discussion, I edited the PSPBounce_00057.fil at the website to see if it would work. It bombed on execution with an error that the file was corrupt. I imagine that the syntax used was incorrect as I was told to do the following:-

      You can add p12 = delayed settlement = Yes, to your authorisation request

      The code that I entered was
      AddPostValues ('&', 'p12', ‘yes’, $ALWAYS, $NOENCODE); # Delayed Settlement requested

      Here is a portion of the existing .fil file with the new code inserted
      # Required VCS fields
      #
      AddPostValues ('?', 'p1', $sMerchantID, $ALWAYS, $NOENCODE); # TerminalID
      AddPostValues ('&', 'p2', $::sOrderNumber, $ALWAYS, $NOENCODE); # we use ordernumber as Unique Transaction Reference Number
      AddPostValues ('&', 'p3', $$::g_pSetupBlob{COMPANY_NAME}, $ALWAYS, $NOENCODE); # Description of Goods = Company name
      #
      # Calculate the conversion factor for the currency
      #
      my $nFactor = 100;
      my $nNumDigits = $::PriceFormatBlob{"ICURRDIGITS"}; # read the currency format values
      if(defined $nNumDigits)
      {
      $nFactor = (10 ** $nNumDigits);
      }
      my $sCurrencyFormat = sprintf('%%d.%%0%dd', $nNumDigits);
      my $sAmount = sprintf($sCurrencyFormat, $::nOrderTotal / $nFactor,
      $::nOrderTotal % $nFactor);
      AddPostValues ('&', 'p4', $sAmount, $ALWAYS, $NOENCODE); # Transaction Amount
      AddPostValues ('&', 'p5', $::PriceFormatBlob{SINTLSYMBOLS}, $ALWAYS, $NOENCODE); # Currency code
      my $sCancelURL = $::sCallBackURLBack;
      $sCancelURL =~ s/&$//;
      AddPostValues ('&', 'p10', $sCancelURL, $ALWAYS, $NOENCODE); # URL for Cancelled Transactions
      AddPostValues ('&', 'p12', ‘yes’, $ALWAYS, $NOENCODE); # Delayed Settlement requested#

      Red indicates what was added.
      Apologies if this does not make sense, but I was wondering if I had entered the code incorrecty
      Adrian Boshoff
      http://www.servatech.co.za

      Comment

      Working...
      X