When I come back from the DIBS site to the checkout page the SubmitBasket[XSLT].xslt is executed, and sends an email to the customer mail and empties the basket. Perfect.
But is there a way to make this page print the invoice (on the page that is).
Like I do with the RequestForm('orderNumber') in the mail. Is there
any id-like variables I can use on this page to get the right order from
uCommerce like i use CommerceLibrary:GetPurchaseOrder in the email? :-)
Well there must be when the email can do it... but how?! :-)
The trick is that the customer is returned to the server by DIBS, which controls the URL and thus the parameters passed back. I believe DIBS passed back the orderid passed in, so you can use that to retrieve the order.
Well.. It seems like im only getting the Reference ID. And the Transaction ID. I could use thoose two, but how to get the order with theese two parameters? :-)
The orderid turn into the reference id in the ucommerce backend order. And then i have the transact... thoose two combined could give me the right order to output from. But what xslt function am I looking at here? :-)
The trick is that customer might at any point cancel the payment before completing the order so by default we don't assign an order number until we receive a message from DIBS saying that the payment was completed. In the meantime we use the payment reference in place of the order number.
If you want an order number assigned before the payment is completed (and this have the order number available in DIBS) you can use the CommerceLibrary:AssignOrderNumber extension.
uCommerce 2.1 introduces an XSLT extension for loading purchase order by payment reference. it's still a prerelease so I would appreciate any feedback you can give us.
Outputting invoice when return to checkout from DIBS page
Hi,
When I come back from the DIBS site to the checkout page the SubmitBasket[XSLT].xslt is executed, and sends an email to the customer mail and empties the basket. Perfect.But is there a way to make this page print the invoice (on the page that is).
Like I do with the RequestForm('orderNumber') in the mail. Is there any id-like variables I can use on this page to get the right order from uCommerce like i use CommerceLibrary:GetPurchaseOrder in the email? :-)
Well there must be when the email can do it... but how?! :-)
/Peter
The trick is that the customer is returned to the server by DIBS, which controls the URL and thus the parameters passed back. I believe DIBS passed back the orderid passed in, so you can use that to retrieve the order.
Well.. It seems like im only getting the Reference ID. And the Transaction ID. I could use thoose two, but how to get the order with theese two parameters? :-)
/Peter
This is what I get from the DIBS page.
The orderid turn into the reference id in the ucommerce backend order. And then i have the transact... thoose two combined could give me the right order to output from. But what xslt function am I looking at here? :-)
/Peter
Is there a way I can send the Order ID to the DIBS page and back to the checkout page again?
As it is now DIBS thinks that GR25005 is my orderid, but that becomes the ref id at the checkout, and I cant get af purchaseorder by ref id?!
You can see here that the order id (in the left) is WEB-16, and Ref ID is the one from DIBS?!
Any suggestions? :-)
/Peter
It seems like a have a "Defaul" and a "Default Payment Reference" in the Order Number settings, in the uCommerce settings sections.
Should I just have one? Or why does the DIBS settings send the Default Payment Reference (GR25005) to the DIBS page as the Order ID?
Cant find anywhere to assign these Order Numbers to anything?! :-)
/Peter
The trick is that customer might at any point cancel the payment before completing the order so by default we don't assign an order number until we receive a message from DIBS saying that the payment was completed. In the meantime we use the payment reference in place of the order number.
If you want an order number assigned before the payment is completed (and this have the order number available in DIBS) you can use the CommerceLibrary:AssignOrderNumber extension.
Well... I can see the problem.
But isnt there a way to get the order from a xslt function with the ref end and trans id then? :-)
/Peter
It just happens that there is :)
uCommerce 2.1 introduces an XSLT extension for loading purchase order by payment reference. it's still a prerelease so I would appreciate any feedback you can give us.
Hehe... Nice :)
Well.. Im just about done with this site, so I have a question. Is it safe to upgrade, and how do I? :-)
/Peter
Install new package on top of the old one. uCommerce will take care of it.
Looks like it works :D
Thank you Søren
Glad to hear it :)
is working on a reply...