OCI Tricks - elisic/ocipc GitHub Wiki

URLs

VALIDATE and BACKGROUND_SEARCH has to come back on the same URL for DETAIL and the catalog it doesn’t matter

How to return

DETAIL

  • can redirect from the invoking URL
  • just a web page, doesn’t come back

BACKGROUND_SEARCH

  • has to come back on the same URL as invoked, redirects will not work
  • has to produce the same form as the catalog checkout
  • the form will be automagically submitted - no need to do anything
  • show the submit button (See CATALOG below)

VALIDATE

  • has to come back on the same URL, redirects will not work
  • has to produce the same form as the catalog checkout
  • the form has to be submitted by Javascript
  • hide the submit button (See CATALOG below)

CATALOG

  • can redirect from the onvoking URL
  • on checkout has to produce a form as described in the OCI specification

OCI Form

HOOK_URL

use this OCI parameter for the “action” attribute of the form “As Is”

returntarget

use this OCI parameter use for the “target” attribute of the form “As Is”

“optional” OCI fields

these fields have to appear in the form with empty values e.g.