1 Reply Latest reply on Feb 15, 2017 4:10 PM by msmith181

    iProcurement PHP Supplier Integration

    msmith181

      Hi guys,

      I have a customer that wants to use a punchout catalogue so that he can get his roders on to his iProcurement system.

      My ecommerce environment is Magento .

      The logging in part works just fine , so he selects my company , clicks the button , he is taken to my site , but when I'm triying to post back to him to the <BrowserFromPost><URL> from his initial message he doesn;t receive the cart. He told me that with other suppliers after he creates an order he is being redirected a page where he can see his cart , where as from my page he is redirected to his main menu , the link where i;m posting back looks like this

      https://test.testexample.em2.oraclecloud.com:443/procurement/faces/FndOverview?fnd=%3BpunchoutCatalogId%253D30321203637421%253BpunchoutAction%253Dshopping%3B%3B%3Bfalse%3B256%3B%3B%3B&fndGlobalItemNodeId=itemNode_my_information_purchase_requisitions&fndTaskItemNodeId=PrcPorCreateReqWorkarea_CreateReqMainAreaFlow

       

      When I try to access that link manually I get a 302.

       

      This is how my cxml looks like

       

      <?xml version="1.0" encoding="UTF8"?>

      <cXML version="1.1.007" xml:lang="en" payloadID="2017-02-14T12:51:09+00:00XXXXXX11784978530@www" timestamp="2017-02-14T12:51:09+00:00">

        <Header>

          <From>

      <Credential domain="Name">

      <Identity>Supplier</Identity>

            </Credential>

          </From>

          <To>

      <Credential domain="Name">

      <Identity>client</Identity>

      </Credential>

          </To>

          <Sender>

      <Credential domain="Name">

      <Identity>supplier</Identity>

      </Credential>

            <UserAgent>Oracle Fusion Self Service Procurement</UserAgent>

          </Sender>

        </Header>

        <Message deploymentMode="test">

      <PunchOutOrderMessage>

      <BuyerCookie>1487076657002300000003432432</BuyerCookie>

      <PunchOutOrderMessageHeader operationAllowed="create">

      <Total>

      <Money currency="GBP">645.84</Money>

      </Total>

      </PunchOutOrderMessageHeader>

            <ItemIn quantity="1">

      <ItemID>

      <SupplierPartID>WX.BG36</SupplierPartID>

      <SupplierPartAuxillaryID>WX.BG36</SupplierPartAuxillaryID>

      </ItemID>

      <ItemDetail>

      <UnitPrice>

      <Money Currency="GBP">645.84</Money>

      </UnitPrice>

      <Description xml:lang="EN">ITEM 1</Description>

      <UnitOfMeasure>EA</UnitOfMeasure>

      <Classification domain="UNSPSC">46181500</Classification>

      </ItemDetail>

      </ItemIn>

      </PunchOutOrderMessage>

        </Message>

      </cXML>

       

      This is how I send the post

      echo '

      <form action="'.$url.'" method="POST" NAME="orderForm" >

      <input type="hidden" NAME="oracleCart" value="'.urlencode($xmlstring).'"/>

      <input type="submit" value="Return basket to Oracle Fusion P2P">

      </form>';

       

       

      Thank you very much, any help is appreciated.