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.

  • Peter Nielsen 159 posts 257 karma points
    Sep 30, 2011 @ 12:12
    Peter Nielsen
    0

    Payment with DIBS

    Hi,

    Maybe I'm just not too bright when it comes to this payment and everything, butI have selected DIBS as my payment, and I have made the changes to the dibs.config file.

    But my problem is, that after i have chosen payment, and the UpdatePayment[XSLT].xslt is loaded I am redirected to a page called:

    /6/18/PaymentRequest.axd

    And then I have to click a POST button before i get into the DIBS page.

    Is there any way i can avoid this step, or a place where i can change/style this page maybe with a full basket (included the ekstra costs for the delivery method maybe?!) :-)

    Thanks

    /Peter

  • Søren Spelling Lund 1797 posts 2786 karma points
    Sep 30, 2011 @ 15:35
    Søren Spelling Lund
    0

    Hi Peter,

    The "post" button is there for debug purposes (so you can check values before proceeding to the payment gateway). You can skip that step by setting the "Debug" attribute to false in your dibs.config.

    You can certainly do an overview page before proceeding to payment gateway. You'l basically wnat to change the call to CommerceLibrary:CreatePayment in the UpdatePayment.xslt, which is the only that takes you to payment gateway immediately. You'll want to change to second last parameter on that guy to make sure that it only creates the payment, but doesn't actually request it.

    When you're ready to pass the customer on to the payment gateway just do a call to CommerceLibrary:RequestPayments() and you're good to go.

    Hope this helps.

  • Peter Nielsen 159 posts 257 karma points
    Sep 30, 2011 @ 20:34
    Peter Nielsen
    0

    Okay... wow thanks :-)

    Another question then... is it possible to change the /6/18/PaymentRequest.axd file?

    The language input is sat to "en" right now, and I need it to be "da"... I cant seem to find it anywere :-)

    /Peter

  • Søren Spelling Lund 1797 posts 2786 karma points
    Oct 03, 2011 @ 17:44
    Søren Spelling Lund
    0

    uCommerce will use the configured language for the hostname you've set up for your site and pass that on to DIBS. If no language is configured it will use the language set on the thread, which which be either the language of the browser the user is connecting with or your server language depending on your ASP.NET configuration.

    The layout of PaymentRequest is not something you can change. It's just a technical page required to pass information to DIBS due to the way they do integration with third parties.

    If you want to display an overview you need to do it before the CreatePayment step or defer the payment request as outlined above.

  • Peter Nielsen 159 posts 257 karma points
    Oct 03, 2011 @ 18:45
    Peter Nielsen
    0

    Okay... Yeah i did found out that i had to change the language of the site. In my case it was english. made a new language in Umbraco and placed it on the host, but now all the discriptions tabs disappeared - the tabs in umbraco where i can write a description of the given language. But i found out that I had to change the line with defaultCultureCode="da-DK" in the web.config to da-DK... then the tabs came back, and I think it is working now :-)

    Now my next problem is what do the pipeline dropdown on the DIBS configuration do? And now I get an empty email when I have completed an order, but how do I put content in it... I know I change the template for it, but how do i put the orders basket in it? How do i get the order details with XSLT when the basket is empty? And where and wich xslt is the email sent from? :-)

    /Peter

     

     

  • Søren Spelling Lund 1797 posts 2786 karma points
    Oct 03, 2011 @ 20:45
    Søren Spelling Lund
    0

    You'll want to configure the drop down list with the "Checkout" pipeline. The pipeline you select on your payment method will get executed once a "callback" is received from the payment gateway. This is basically the signal that lets uCommerce know that the payment was accepted and we can safely complete the order. This also means that you need to have outside access to your development server as DIBS will contact your server directly with this information (for security reasons).

    As for the e-mail the following article will help you out Sending E-mail using uCommerce. The e-mail is just another content node in Umbraco, which you can skin however you like. uCommerce will request the configured template with a queryparameter called "orderNumber", which contains the orderGuid from the order in question. From there you can use CommerceLibrary:GetPurchaseOrder to load up the order and skin the mail.

    In Razor you can go

    var order = PurchaseOrder.SingleOrDefault(x => x.OrderGuid == new Guid(Request["orderNumber"]);
  • Peter Nielsen 159 posts 257 karma points
    Oct 04, 2011 @ 09:13
    Peter Nielsen
    0

    Arh cool... think Im getting it now :-)

    When you say that I got to have outside access to the server, that just meens that i will have to reach the server from an Url right? That it isnt on a local computer?! :-)

    I'm allways working on a live server (though with a temperary domain), so that shouldnt be a problem :-)

    Thanks Søren... Looking forward to see it all in action... i will return if I have more questions ;-)

    /Peter

  • Søren Spelling Lund 1797 posts 2786 karma points
    Oct 06, 2011 @ 15:46
    Søren Spelling Lund
    0

    Eaxctly.

    Looking forward to seeing the completed site :)

  • Peter Nielsen 159 posts 257 karma points
    Oct 12, 2011 @ 14:12
    Peter Nielsen
    0

    Edit: Making a new post instead. Better for future SEO :-)

Please Sign in or register to post replies

Write your reply to:

Draft