Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Steven Sønderskov 30 posts 142 karma points
    Sep 21, 2012 @ 13:10
    Steven Sønderskov
    0

    Can I add a property to DIBS submit data

    Hi

    Is it possible to add a property to the submittet data for DIBS?

    I would like to add a pageId to DIBS. DIBS will then send that pageId back in their response, and I can redirect to the page with that pageId on success.

    Can it be add'ed when I call:
    <xsl:value-of select="CommerceLibrary:CreatePayment($paymentId, -1, true(), true())" />
    <xsl:value-of select="CommerceLibrary:ExecuteBasketPipeline()" />

    ?

    Thanks :)

  • Steven Sønderskov 30 posts 142 karma points
    Sep 21, 2012 @ 14:27
    Steven Sønderskov
    1

    I found a workaround.

     

    I just added a property to the order before creating the payment, like so: 

     <xsl:value-of select="CommerceLibrary:SetOrderProperty('pageId', $pageID)"/>

     

    Then on the postback from DIBS, I retrieved the order by its orderGuid. Then checkedout the order and the redirect the page with javascript:

     

     <xsl:variable name="theOrder" select="CommerceLibrary:GetPurchaseOrderByGuid($guid,false)" /> 

     <xsl:variable name="thePageId" select="$theOrder/purchaseOrder/orderProperties/orderProperty[@key='pageId']/@value" />

     <xsl:value-of select="CommerceLibrary:ExecuteBasketPipeline()" />

     <xsl:value-of select="CommerceLibrary:Checkout()" /> 

     

      <script>

      function redir(){

    window.location = '<xsl:value-of select="umbraco.library:NiceUrl($thePageId)" />';

    }

    redir();

     </script>

     

    :)

  • Søren Spelling Lund 1797 posts 2786 karma points
    Sep 24, 2012 @ 10:25
    Søren Spelling Lund
    0

    Thanks for following up with your solution here. Much appreciated!

Please Sign in or register to post replies

Write your reply to:

Draft