Jump to content

Quick question on content.gateway.php


Big Spender

Recommended Posts

Just a quick question on content.gateway.php: -

{if isset($TRANSFER)}
{if  $TRANSFER.mode == 'iframe'}
<iframe src="{$IFRAME_SRC}" frameborder="0" scrolling="auto" width="100%" height="500" />
{$IFRAME_FORM}
{else}
<form id="gateway-transfer" action="{$TRANSFER.action}" method="{$TRANSFER.method}" target="{$TRANSFER.target}">
{foreach from=$FORM_VARS key=name item=value}<input type="hidden" name="{$name}" value="{$value}" />
{/foreach}
{if $TRANSFER.mode == 'automatic'}
<div style="text-align: center;">
  <p>{$LANG.gateway.transferring}</p>
  <p><img src="{$STORE_URL}/skins/{$SKIN_FOLDER}/images/loading.gif" alt="{$LANG.gateway.transfer_progress}" class="autosubmit" /></p>
</div>
{elseif $TRANSFER.mode == 'manual'}
<h2>{$LANG.gateway.amount_due}</h2>
  <p>{$LANG_AMOUNT_DUE}</p>
{$FORM_TEMPLATE}
{/if}
{if !$DISPLAY_3DS}
<div align="center"><input type="submit" value="{$BTN_PROCEED}" class="button_submit" /></div>
{/if}
   {foreach from=$AFFILIATES item=affiliate}
      {$affiliate}
   {/foreach}
  {/if}
</form>
{/if}

In what circumstance would $TRANSFER.mode == 'manual' be used?

 

The proceed button shows if not 3d secure, but if it is 3d secure enabled then does that appear in this area or is this a redirect?

 

If I had some affiliate networks setup - what would {$affiliate} spit out here?

Link to comment
Share on other sites

The only question I can answer at this time is:

 

"In what circumstance would $TRANSFER.mode == 'manual' be used?"

 

Each gateway has a transfer() function. This function tells CubeCart how the gateway is to show itself to the customer. Let's look at Authorize (Authorize.net).

 

Authorize.net has two modes of collecting credit card data: SIM and AIM. If the admin chooses to use Authorize.net's SIM method, the customer is automatically bounced to Authorize.net's credit card entry screen. If the AIM method, CubeCart will show a form for the manual data collection and send that data to Authorize.net (requires you to be PCI-DSS compliant).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...