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.

  • Neo 22 posts 42 karma points
    Mar 13, 2011 @ 13:19
    Neo
    0

    sagepay integration

    Hi all

     

    I need to integrate sagepay in my application. I have successfully configured sage pay in ucommerce and specified success and failure urls.

    How do I get the order number from these success and failure pages?

    Is it passed in a query string from the sagepay site? Then what is the name of that query string?

     

    Any ideas?

     

     

  • Søren Spelling Lund 1797 posts 2786 karma points
    Mar 14, 2011 @ 10:20
    Søren Spelling Lund
    0

    uCommerce will automatically assign a payment reference to each transaction that you can use. You can grab it directly from your payment using the reference field. If you assign an order number to the order before passing it to SagePay it will be used as payment reference instead.

  • Neo 22 posts 42 karma points
    Mar 14, 2011 @ 14:46
    Neo
    0

    Suppose the success url is http://localsite/success.aspx then how can we grab the order number / reference number from this page?

    Can you please tell me the name of the variable to be checked?

    do we get something like this from the payment site?

    http://localsite/success.aspx?orderNumber=Ref123 ;

    So that I can get the value of orderNumber.

    Please reply.

  • Søren Spelling Lund 1797 posts 2786 karma points
    Mar 14, 2011 @ 15:36
    Søren Spelling Lund
    0

    Hi Neo,

    Usually the payment gateway supply you with those values either as a post or part of the query string.

  • Neo 22 posts 42 karma points
    Mar 21, 2011 @ 13:57
    Neo
    0

     

    Please see the attached image of the sagepay page.

    In this Customer e-mail, Billing Phone and Delivery Phone is not populated. Can you tell me which all fields of OrderAddress corresponds to thes fields? I have assigned BillingAddress to the purcahse order while submiting to the payment site.

  • Søren Spelling Lund 1797 posts 2786 karma points
    Mar 21, 2011 @ 16:06
    Søren Spelling Lund
    0

    Hi Neo,

    uCommerce is not passing along these values to SagePay. I'll make sure and add that for the next incremental update.

    Thanks for reporting this.

  • Neo 22 posts 42 karma points
    Mar 22, 2011 @ 10:21
    Neo
    0

    Thanks Soren for the reply. By the way then how is the value of Name and Postcode displaying properly in the sagepay page. Is there any quick workaround for this? I really need to fix this urgently.

    Best Regards,
    Neo

  • Søren Spelling Lund 1797 posts 2786 karma points
    Mar 22, 2011 @ 10:28
    Søren Spelling Lund
    0

    Everything is grabbed from the billing address stored on the order.

    First name and last name are used for the name.

    PostalCode is used for postcode.

    You can update this information using CommerceLibrary:SetBillingInformation() from XSLT or set the billing address directly on the purchase order object from .NET using SiteContext.Current.OrderContext.GetBasket().PurchaseOrder.BillingAddressId = billingAddress.OrderAddressId.

  • Søren Spelling Lund 1797 posts 2786 karma points
    Mar 22, 2011 @ 10:29
    Søren Spelling Lund
    0

    BTW could you markup the values not being display properly to be sure we're talking about the same ones? Thanks.

  • Neo 22 posts 42 karma points
    Mar 22, 2011 @ 11:32
    Neo
    0

    Yes I am doing this same way. But the customer email and billing phone is not updating. Is it corresponds to EmailAddress and PhoneNumber in order address?

  • Søren Spelling Lund 1797 posts 2786 karma points
    Mar 22, 2011 @ 11:53
    Søren Spelling Lund
    0

    These are the fields used:

    string surname = UrlEncodeString(address.LastName);

    string firstnames = UrlEncodeString(address.FirstName);

    string address1 = UrlEncodeString(address.AddressName);

    string city = UrlEncodeString(address.City);

    string postcode = UrlEncodeString(address.PostalCode);

    string phone = UrlEncodeString(address.PhoneNumber);

    string email = UrlEncodeString(address.EmailAddress);

  • Neo 22 posts 42 karma points
    Mar 22, 2011 @ 12:55
    Neo
    0

    Sorry Soren. Its not working.Still the same as shown in the screenshot. Btw is there any relation between uCommerce_Address and uCommerce_Customer tables. There are fields like email, phone number etc in these tables also.

  • Søren Spelling Lund 1797 posts 2786 karma points
    Mar 24, 2011 @ 10:26
    Søren Spelling Lund
    0

    I've got the issue repro'd on my end. Working on a fix.

  • Søren Spelling Lund 1797 posts 2786 karma points
    Mar 24, 2011 @ 12:49
    Søren Spelling Lund
    0

    Could you give this release a try and let me know how it works out for you?

    uCommerce 1.5.0.2

  • Neo 22 posts 42 karma points
    Mar 24, 2011 @ 14:24
    Neo
    0

    Thanks a lot Soren. Will defenitely try this out and will get back to you.

  • Neo 22 posts 42 karma points
    Mar 28, 2011 @ 11:18
    Neo
    0

    It worked! Thanks a lot Soren for fixing this. This is what you call Customer Support!!! Now all the fields are showing proerly in the sage page site. Excellent!


    Neo.

  • Søren Spelling Lund 1797 posts 2786 karma points
    Mar 29, 2011 @ 15:22
    Søren Spelling Lund
    0

    Hi Neo,

    I'm glad to hear it. Thanks for your kind words :)

Please Sign in or register to post replies

Write your reply to:

Draft