Page 10 of 22 FirstFirst ... 8910111220 ... LastLast
Results 91 to 100 of 211
  1. #91
    Join Date
    Nov 2007
    Location
    Essex, UK
    Posts
    137
    Plugin Contributions
    1

    Default Re: Nixaks Sagepay Form Module

    Quote Originally Posted by damiantaylor View Post
    Hi Nixaks!
    Thanks for this mod...it installed and worked 1st time!
    Hi damiantaylor, your welcome

    Quote Originally Posted by damiantaylor View Post
    Just a couple of quick question....is there anywhere that tells me in admin that a payment was authorised or is the only confirmation the email sent from sagepay?
    At this moment in time it's only via the email from Sage Pay

    Quote Originally Posted by damiantaylor View Post
    If it's just the email, is there any way of tying the order ID within zen cart to the transaction ID from sagepay? Does the transaction ID get written to the database anywhere?
    Oh I hadn't thought of that .... I will look into this when I have 5 mins

    Quote Originally Posted by damiantaylor View Post
    Also, when a payment is refused the user is returned to the payment screen in Zen Cart. Is there any way to display a message to say the payment was refused?

    I am using Zen Cart version 1.3.8a and am still using sagepay in test mode.

    Thanks again for the mod...it's really good!!
    Again unfortunatly not at this moment, however this is something i'm working on, just the coding for this is extremly difficult (esp as i'm fairly new to coding lol) but this is something my wife has been nagging me about for ages, as I created this module for her site (the one listed in my sig)

    I will try to look in to this some more tomorrow as unfortunatly I'm off to work in a minute

    Hope this helps
    Nixak

  2. #92

    Default Re: Nixaks Sagepay Form Module

    Ah, I've just answered one of my questions....If a card payment gets refused, it doesn't create an order in Zen Cart so if I see an order in Zen Cart, I can assume the card payment was authorised.

    I'd love to be able to show error messages from sagepay when the user gets back to the payment screen though.
    All I currently get is my URL with &crypt= followed by a long string.

  3. #93
    Join Date
    Nov 2007
    Location
    Essex, UK
    Posts
    137
    Plugin Contributions
    1

    Default

    Quote Originally Posted by damiantaylor View Post
    Ah, I've just answered one of my questions....If a card payment gets refused, it doesn't create an order in Zen Cart so if I see an order in Zen Cart, I can assume the card payment was authorised.

    I'd love to be able to show error messages from sagepay when the user gets back to the payment screen though.
    All I currently get is my URL with &crypt= followed by a long string.
    The reason for the &crypt followed by a long string is because that's sagepay telling you what the problem is, unencrypting the message is the easy part, however getting that to show to the customer and recording that in your database for you to see is another matter lol. I may have thought of a tempory measure to put in place but I'm at work at the moment so it will have to wait untill tomorrow. I will let you know how it goes :)

    Regards
    Nixak
    Posted via Mobile Device

  4. #94
    Join Date
    Nov 2007
    Location
    Essex, UK
    Posts
    137
    Plugin Contributions
    1

    Default Re: Nixaks Sagepay Form Module

    Hi all,

    I have come up with a tempory way of informing your customers if they have had a problem whilst making a payment

    First off you will need to create an ez page, so go to admin/tools/ez-pages and click the new file button.
    Then enter whatever message you want you customers to see. At the top of the ez-page use the following settings

    opens new window = no
    page is SSL = yes
    header = no
    sidebox = no
    footer = no
    TOC = no
    Chapter number = leave this as 0

    and enter your own page title and click the update button.
    ~DO NOT put anything in the internal or external URL link~

    Now take note of the id number for your new page (it will be listed on the left hand side)
    Next go to https://www.yourwebsite.address/index.php?main_page=page&id=ID number (replace the yourwebsite.address and ID number with you details) and you should see your new ez-page, copy the full url.

    Last bit using a good text editor (such as notepad++) open the file includes/modules/payment/sagepay_form.php and find this line
    Code:
    $plain .= "FailureURL=" . zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL', true) . "&";
    replace the zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL', true) part with your ez-page url you copied earlier and inclose the url within speech marks, so you should have a line like this
    Code:
    $plain .= "FailureURL=" . "https://www.yourwebsite.address/index.php?main_page=page&id=ID number" . "&";
    Save the file and upload it to where it belongs ( includes/modules/payment/sagepay_form.php) ... your done

    Hope this helps untill I can get time to code the backend of the module
    Nixak

  5. #95

    Default Re: Nixaks Sagepay Form Module

    Thanks Nixak!
    I was thinking a temporary fix could be to decrypt the message from the &crypt variable in the URL in file /includes/modules/pages/checkout_payment/header_php.php and add any error messages to the message stack for that page.
    I'm not sure if this would work and I haven't had time to test it yet but I'll hopefully get a chance to give it a try tonight.
    If not, your fix sound good.

  6. #96

    Default Re: Nixaks Sagepay Form Module

    Nixak,
    I've tried to understand why the error messaging doesn't work but I'm stumped!
    I've tried logging points in the php code using firephp and get_error() never seems to fire for some reason.

    I've had a look at other similar modules and they don't seem to do much different than this one.

    There must be some reason get_error doesn't fire, maybe some variable not set or something?
    The strange thing is it works if you redirect to an easy page?

  7. #97

    Default Re: Nixaks Sagepay Form Module

    Hi Nixak, Me again!
    I've done some more investigation and I think this may be a problem with Zen Cart rather than your mod.
    I've found a Sage Pay form mod for osCommerce and modified it to work (in a fashion!) with Zen Cart.
    When it came back with an error, it did exactly the same thing as your mod does....just has the &crypt string in the URl.
    I've tried the same thing with PayPal and although it doesn't go back to the checkout_payment screen (it goes back to the checkout_shipping screen for some reason) it still shows no messages; just &ec_cancel and &token in the URL.

    It may be worth asking if get_error() is a Zen Cart bug before you go pulling any more hair out :)

  8. #98

    Default Re: Nixaks Sagepay Form Module

    I've found some threads that suggest you can't use the URL for passing long strings like payment error messages any more:
    http://www.zen-cart.com/forum/showthread.php?t=136174
    http://www.zen-cart.com/forum/showthread.php?t=132652
    http://www.zen-cart.com/forum/showthread.php?t=113808

    The last one suggests using the message stack in the before_process function as in authorizenet.php supplied with Zen Cart.
    The only thing I don't understand is, you pass the failureURL to SagePay and they redirect you to the page in question, so how does before_process ever get to fire?

    I hope this all helps!

  9. #99
    Join Date
    Nov 2007
    Location
    Essex, UK
    Posts
    137
    Plugin Contributions
    1

    Default Re: Nixaks Sagepay Form Module

    A Little update for you all

    At the moment version 1.3 has been fully tested on a php 5 server using zen-cart 1.3.9b so I know that all works.

    As for version 1.4 which is the one damiantaylor definatly wants lol so far I have the return message un-encrypted and infomation from that is stored in the customers order in your admin panel.

    That leaves me with one problem to fix at the moment which is the customer seeing an error message when the payment fails ..... I thought I had cracked it the other day but unfortunatly not

    Please be patient with me and hopefully I will have some more good news soon.

    Regards
    Nixak

  10. #100
    Join Date
    Jun 2010
    Posts
    19
    Plugin Contributions
    0

    Default Re: Nixaks Sagepay Form Module

    Hi

    Has anyone tried this module with version 1.3.9d of ZenCart?

    Cheers

    Al

 

 
Page 10 of 22 FirstFirst ... 8910111220 ... LastLast

Similar Threads

  1. Sagepay Form V1.5.5
    By Nick1973 in forum Addon Payment Modules
    Replies: 10
    Last Post: 12 Jun 2019, 10:30 AM
  2. Need a Form Module for Sagepay
    By ukstuff in forum Addon Payment Modules
    Replies: 5
    Last Post: 18 Feb 2015, 03:51 PM
  3. v150 Nixaks Sagepay Form Module PHP Warning
    By sprocker in forum Addon Payment Modules
    Replies: 0
    Last Post: 13 Aug 2014, 11:24 AM
  4. looking for the protx - sagepay - FORM payment module
    By abs007 in forum Addon Payment Modules
    Replies: 3
    Last Post: 20 Jul 2009, 06:06 PM
  5. Help with Sagepay form payment module please
    By Nixak in forum Addon Payment Modules
    Replies: 1
    Last Post: 20 Jul 2009, 11:39 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR