Copied to clipboard

Flag this post as spam?

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


  • Merijn van Mourik 58 posts 128 karma points
    Jul 02, 2013 @ 13:58
    Merijn van Mourik
    0

    Extra properties on payment?

    Hi,

    Currently working on a payment provider. I need to store extra properties on the payment so I will be able to refund later. Is this possible?

    Merijn

  • Merijn van Mourik 58 posts 128 karma points
    Jul 02, 2013 @ 14:04
    Merijn van Mourik
    0

    The way I want to do it now is to encode 4 parametes into the CallBackinfo paymentIdentifier field. Suppose this currently is the best place for it.

  • Anders Burla 2560 posts 8256 karma points
    Jul 02, 2013 @ 20:28
    Anders Burla
    100

    Hi Merijn

    What info do you need to save to be able to refund? Normally the transactionId is enough. If you need extra info you should save them as server secure order properties. order.Properties.AddOrUpdate(new CustomProperty("key", "value"){ServerSideOnly = true});

    Kind regards
    Anders

  • Merijn van Mourik 58 posts 128 karma points
    Jul 03, 2013 @ 11:01
    Merijn van Mourik
    0

    In this case the payment provider needs three extra fields as input for the refund transaction. On top of the transaction id. Like customer name, IBAN, etc. I don't know why they need this. Will discuss this with them. Because I don't like storing this kind of information on my frontoffice server.

    I'll look to see if I can achieve the same thing with the order property. However than the payment module might be less generic, so this can be a trade-off.

    Another option would be just encrypt the encoded parameters using the secret key.

  • Anders Burla 2560 posts 8256 karma points
    Jul 03, 2013 @ 16:23
    Anders Burla
    0

    Customer name is already at the order level - order.PaymentInformation.FirstName and LastName. But yeah the other properties should be saved as order properties. And it could make sense to encrypt it :)

    Kind regards
    Anders

Please Sign in or register to post replies

Write your reply to:

Draft