SagePay Payment Method

HomeSupportImage StoreSagePay Payment Method

Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #52570
    lch503
    Participant

    I see there is an option to add other payment methods to image store. Is it possible to add SagePay using this method? Has anyone had success of this?

    Thanks

    #52583
    Xpark Media
    Keymaster

    if SagePay uses post methods to process images you can use the custom gateway if not a sub-plugin needs to be created to work with image store

    #52610
    lch503
    Participant

    Hello,

    Im using 3.2.4.

    I am trying to get it setup. it supports post, so I put in the test URL and it says to start that VPSProtocol contains nil data, it needs 2.23.

    In the custom data field, how would I put this in, would it be:

    VPSProtocol, 2.23.

    (with the , and .)

    or are they in “” (inverted commas)? Any help would be appreciated!

    Thanks

    #52629
    Xpark Media
    Keymaster

    @lch503

    the custom value should look like this: VPSProtocol:2.23 where “VPSProtocol” is the key and “2.2.3” is the value.

    to add additional fields just add more pairs separated by commas like this: VPSProtocol:2.23,car_total:%cart_total%,customField:34s4,

    #52634
    lch503
    Participant

    Hello,

    I have rewritten / added a few things in Image Store to get sagePay working as unfortunately the custom protocols you can put in require encryption before being sent to the sagePay server. Therefore I have added a few pages (with an extra form for verification) before sending the form to sagepay.

    The issue I have is the success and failure URLs.

    These must be sent to sagePay as part of the transaction, and are therefore unfortunately static.

    I need to redirect to the receipt page (possibly ideally with the checkout() function in cart – like the others use) in success or the store in failure like you do with the other payment methods.

    Could you help me get this last section done?

    I can send you what I have done to get this far.

    I have done this using 3.2.5.

    Thanks,

     

    Leon

     

    #52642
    Xpark Media
    Keymaster

    you can create your own checkout for by using the a filter

    add_filter(“ims_checkout_path”, ‘your_theme_checkout_path’)

    function your_theme_checkout_path( $path){
    return “path-to-your-checkout-form.php”;
    }

    You can also add you own gateway use _inc/gateways/google.php as a guide, you will need also need to add the setting to activate the gateway by using these hooks (filters).

    “ims_gateways”
    “ims_setting_fields”

    #52654
    lch503
    Participant

    I thought I would update you on my progress.

    I have successfully integrated sagepay and am running through the testing of the system.

    It successfully gives the details to the simulation servers and handles redirects from the simulation server to the receipt page or a custom error page.

    Sales pages are updated as expected.

    There is an added section in settings for activating sagePay.

    It works for the form version of sagePay simulation. A real account can take up to six weeks to activate, but will update to see if it successfully works with this.

    By the way I was having an issue with sending Emails, I found this was because they were being blocked from reaching the inbox by google and hotmail. I found that if you use a plugin that changes the wpmail and sends it via smtp this problem is overcome. WP-Mail-SMTP

    Also, when the customer is looking at larger versions of the photos, where the background fades dark, I found that the user could right click and download the image (which I didnt want). This was overcome using a right click disable plugin No Right Click Images Plugin

    I have had to change a small bit of your code obviously adding to settings and adding custom pages.

    Any larger bits of code that I needed I copied into a new function to ensure other payment gateways were not affected.

    I can send you the code, but this plugin has generally all the hooks and actions that you need in the right place.

    I have been only using wordpress for two weeks and have got this far. I only had a limited knowledge of php before.

    Thank you for your help.

    Leon

     

    #52665
    lch503
    Participant

    Hey,

    While refining the sagePay method, I have come across a small issue.

    Is it on purpose that you can not update the order_status using the update_post_meta?

    I have it set up so that when the user has typed their details in the usual validation takes place, but I want to be able to cancel the order (and eventually ammend).

    I can update the payment status fine, but when I update the order_status to cancelled, (and when I print_r the data) it seems to update fine but under sales the order_status is still pending for that order.

    I hope this makes sense.

    Leon

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.