Copied to clipboard
  • Alexey 32 karma points
    Mar 03, 2011 @ 18:49
    Alexey
    0

    Custom payment provider order update

    Hi guys,

    I'm trying to implement Ogone as a payment provider for TeaCommerce, but I faced the following challenge:

    There are two types of online payment processing Ogone supports: Direct payment, when you need to provide all required data about credit card to Ogone yourself, and this way supports a kind of transaction status calls, and other transaction maintenance calls, but I can't use that way because of some security reasons. :(

    And there is another way to work with Ogone payments - e-Commerce standard, when you send prepared request to Ogone, then your user will be redirected to special Ogone payments page, where he should enter all data about credit card, and do the payment. After that you get a response on the URL you provided: acceptURL - for successful payments, cancelURL for cancelled payments, exceptionURL - if something went wrong, declineURL - if payment was declined.

    So, the problem is that in Ogone e-Commerce standard way of payments processing you can't ask transaction status somehow - you just receive the status of your payment on one of defined URL's above in request params, and that's all. That's why after specifying acceptURL as teaCommerceContinueURL in my payment provider, I can get the status of my transaction in request variable in GetOrderNameFromContinueRequest, but I can't see the way to update the order in that function. Also, if I specify my acceptURL as teaCommerceCallBackURL, I can update my order status in ProcessCallback function, but how can I show to the user my Continue page in that case?

    There is no any kind of NotificationUrl on Ogone, and I can't get transaction status in any way, that's why I unable to use default way as TeaCommerce payment provider works...

    Could you give me any advice what I can do in that situation?

    Thank you, Alexey

     

  • Anders Burla Johansen6264 karma points
    Mar 03, 2011 @ 19:57
    Anders Burla Johansen
    0

    Hi Alexey

    Your lucky - at the moment we are changing alot in the payment provider API and because we try to be able to support lots of these different payment gateways ways of doing payment. So if you wait a couple of days I can send you a beta og the newest version of Tea Commerce. Both fix different bugs and making the payment provider API better.

  • Alexey32 karma points
    Mar 03, 2011 @ 21:02
    Alexey
    0

    Thank you, Anders!

    I'm looking forward to use newest beta! :) Let me know when it is available.

  • Anders Burla Johansen6264 karma points
    Mar 04, 2011 @ 00:27
    Anders Burla Johansen
    0

    Ohh is that a Ogone payment provider I see in the new Tea Commerce beta..? Of yes it is :) Will send you the beta as soon as we have a clean build of it. Then you could test the provider for me? Have you got at Ogone test account? Hit me an email so I can send the beta when ready. info [at] teacommerce dot dk

  • Anders Burla Johansen6264 karma points
    Mar 06, 2011 @ 17:11
    Anders Burla Johansen
    0

    @Alexey - hope you like the Ogone provider in the beta. If you found one of my previous answers helpfull, it would help others if you could mark that as a solution. Thanks

  • Alexey32 karma points
    Mar 09, 2011 @ 14:22
    Alexey
    0

    Hi Anders,

    Sorry for late answer, I wasn't healthy last days to check how Ogone payment provider works in new beta. But I'm doing it right now.

    Really, you did a great job, it works fine, but... There is always "but", unfortunately. What the specific settings should be applied for Ogone account to allow payment provider to capture or cancel payments? Because for now I always have the following error message for order: "Ogone - Error making API request: 50001111 - Some of the data entered is incorrect. Please retry."

    I tried to play with default operation in Ogone, but even for Sale operation, when I already have my order status as "Captured", I get that error. Also I tried different "Default data capture procedure" settings - also without any success.

    Can you check what is going on? Or what settings should I use to allow capture/cancel funds without errors?

     

  • Alexey32 karma points
    Mar 09, 2011 @ 14:29
    Alexey
    0

    Hi Anders,

    One little question in addition...

    The default settings of Ogone payment provider in beta don't fit me completely - I need also ability to specify particular payment method and credit cart brand for Ogone processing, so I have to create my own payment provider based on yours. Did you add something specific to beta version of TeaCommerce, which should be taken to account during custom payment provider implementation, or all remains the same as it described here: http://anders.burla.dk/umbraco/making-a-payment-provider-for-tea-commerce/ ?

  • Anders Burla Johansen6264 karma points
    Mar 09, 2011 @ 14:56
    Anders Burla Johansen
    0

    Hi Alex

    Hope you are well again. Yes the Ogone settings i a little difficult and I haven't had the time to do documentation. But sounds like you are missing to specify a SHA IN and SHA out password in the Ogone administration and also in Tea Commerce.

  • Anders Burla Johansen6264 karma points
    Mar 09, 2011 @ 14:59
    Anders Burla Johansen
    0

    The payment API is updated since the blog post so not all is in that. But give me a little time and i will support it in our payment provider. You will just have to update the ogone.config file with some new parameters. So no need to inherit from ours.

  • Anders Burla Johansen6264 karma points
    Mar 09, 2011 @ 15:38
    Anders Burla Johansen
    0

    I have sent you an email with a new beta build. Just add these two parameter to your ogone.config file. PM="CreditCard" and brand="VISA" and give it a try.

    I have as a default option added PMList to the config file which can be used to specify what payment methods that is available

  • Alexey32 karma points
    Mar 10, 2011 @ 10:28
    Alexey
    0

    Hi Anders,

    Thank you very much for your great work! TeaCommerce becomes better and better with every release. :)

  • Anders Burla Johansen6264 karma points
    Mar 10, 2011 @ 11:30
    Anders Burla Johansen
    0

    Thanks for the kind words! We always try to make Tea Commerce better. When you get enough karma points I how you like Tea Commerce so much that you will give it a vote so others can see what a great product it is.

  • Rao30 karma points
    Jul 28, 2011 @ 16:24
    Rao
    0

    Hello Anders,

    We have a requirement to build a ecommerce site, for that we are planning to go for the TeaCommerce.

    But I have few queries in that:

    1. In the starter kit there is no payment screen, how can we add that?

    2. Does TeaCommerce performs any kind of creditcard validation (verifying valid card number or not)? If so what are those? And if I want to use custom creditcard validation, how can I do that?

    3. We have to add one more field to the minicart (where we display no.of items in the cart), it is a dropdown with dollar amounts and if user selects one value we need to update the total to have the selected value added to minicart, how can we do that?

    Thanks,

    Rao.

  • Anders Burla Johansen6264 karma points
    Jul 28, 2011 @ 22:23
    Anders Burla Johansen
    0

     

    Hi Rao

    First, thanks for looking into Tea Commerce and that you find it to solve your needs. The starter kit only have the "cash on delivery" - COD - but it's possible to use credit card gateways to give you the credit card options. Tea Commerce has 6 built-in payment gateways which I hope you can use. If not you can always program your own provider.

    The part with the extra field in the mini cart you can just update the XSLT and JavaScript to add that field. To do the update when using the drop down you can just use the JavaScript API or the .NET API if you like that more :)

    Kind regards
    Anders

Please Sign in or register to post replies

Write your reply to:

Draft
Our.umbraco.org is the community mothership for Umbraco, the open source asp.net cms. With a friendly forum for all your questions, a comprehensive documentation and a ton of packages from the community.