WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce SagePay Direct Payment Gateway
[resolved] Simulator or Test (20 posts)

  1. glennwills
    Member
    Posted 5 months ago #

    Hi, Thanks for plugin.

    If I use simulator I get error message
    INVALID - SIMULATOR CANNOT FIND YOUR VENDOR NAME IN ITS DATABASE. THE SIMULATOR SAW THE VENDOR NAME 'ANDEVAUNDERWRI1'

    If I use test account I get error message 'Code 2000'

    Any suggestions?

    https://wordpress.org/plugins/sagepay-direct-for-woocommerce-payment-gateway/

  2. glennwills
    Member
    Posted 5 months ago #

    Sorry the second error message was 'NOTAUTHED - THE AUTHORISATION WAS DECLINED BY THE BANK. (CODE: 2000)'

  3. swicks
    Member
    Plugin Author

    Posted 5 months ago #

    Hi
    What opton did you select on the SagePay simulator? The response back from the simulator is controlled by yourself?

    If you select OK/REGISTERED do you still get the same error?

  4. glennwills
    Member
    Posted 5 months ago #

    Where do you select OK/REGISTERED?

  5. swicks
    Member
    Plugin Author

    Posted 5 months ago #

    This is on SagePay's simulator.

    https://test.sagepay.com/simulator/vspdirect.asp

  6. glennwills
    Member
    Posted 5 months ago #

    Hi,

    I am getting no errors but I'm not leaving the checkout page. I get the following email message

    Payment Gateway URL: https://test.sagepay.com/Simulator/VSPDirectGateway.asp

    3D Secure Callback URL: https://test.sagepay.com/Simulator/VSPDirectCallback.asp

    Payment Gateway Response:Array
    (
    [VendorTxCode] => andevaunderwri1-140306152753-359799630
    [Created] => 2014-03-06 15:27:53
    [VPSProtocol] => 2.23
    [Status] => MALFORMED
    [StatusDetail] => The DeliverySurname field is missing from the POST.
    [result] => malformed
    )

  7. swicks
    Member
    Plugin Author

    Posted 5 months ago #

    You should of also received a Request email with all the sent details to sagepay.

    do you get the same statusdetail message everytime?

    what versions of WP, WC & SagePay Direct are you running sa I can try and emulate?

  8. glennwills
    Member
    Posted 5 months ago #

    I appreciate your help as I'm struggling here...

    Here is the request form

    Payment Gateway URL: https://test.sagepay.com/Simulator/VSPDirectGateway.asp

    3D Secure Callback URL: https://test.sagepay.com/Simulator/VSPDirectCallback.asp

    Payment Gateway Request: Array
    (
    [CardHolder] => Jeremy Rishworth
    [CardNumber] => 5404000000000001
    [StartDate] => 0214
    [ExpiryDate] => 0417
    [CV2] => 123
    [CardType] => MC
    [VendorTxCode] => andevaunderwri1-140306161933-903879548
    [VPSProtocol] => 2.23
    [Vendor] => andevaunderwri1
    [Description] => andevaunderwri1
    [Currency] => GBP
    [TxType] => PAYMENT
    [Amount] => 19.99
    [CustomerEMail] => carey@glennwills.com
    [BillingSurname] => Rishworth
    [BillingFirstnames] => Jeremy
    [BillingAddress1] => 88
    [BillingAddress2] =>
    [BillingCity] => London
    [BillingState] =>
    [BillingPostCode] => HP2 7ES
    [BillingCountry] => GB
    [BillingPhone] => 01442531135
    [DeliverySurname] =>
    [DeliveryFirstnames] =>
    [DeliveryAddress1] =>
    [DeliveryAddress2] =>
    [DeliveryCity] =>
    [DeliveryState] =>
    [DeliveryPostCode] =>
    [DeliveryCountry] =>
    [DeliveryPhone] => 01442531135
    )

    I'm using wp version 3.8.1
    Woo 2.1.5
    And 0.1.7.0 of your direct payment gateway

    Should I be using the test cards from sagepay or my own to test? The sagepay test cards don't have a valid postcode.

    The message I am getting now is

    MALFORMED - THE DELIVERYSURNAME FIELD IS MISSING FROM THE POST.

    Thanks again.

  9. swicks
    Member
    Plugin Author

    Posted 5 months ago #

    Hi
    SagePay needs shipping details, this is taken directly by the plugin from the woocommerce order object. Would there be any reason why in this particular order doesn't require delivery details or is this happening on all orders?

    Versions are all upto date, which I have already tested.

    For simulator and test you should only use test cards. You can't test the postcode in woocommerce because of it's own validation and it's not a problem it's failing, it's just a warning letting you know that an invalid postcode was used.

    also, the first line of the address only needs to begin with 88 to validate - you can enter '88 High Street' for example

    The message makes sense based on your request - this information is mandatory and it will fail.

    Is this a collection or a download, should it have a delivery address.

    regards

    Steve

  10. glennwills
    Member
    Posted 5 months ago #

    Thanks Steve,

    It's a virtual product - once purchased and info is captured we will email the customer with a certificate.

    Is there away around the delivery address or not?

    Jeremy

  11. swicks
    Member
    Plugin Author

    Posted 5 months ago #

    Can you confirm that everything works with a standard product and I will take a look at the virtual.

    Regards

  12. swicks
    Member
    Plugin Author

    Posted 5 months ago #

    Hi Jeremy

    I've updated the dev version with support for virtual products and the sagepay simulator.

    development version

    Regards,

    Steve

  13. glennwills
    Member
    Posted 5 months ago #

    Thanks,

    Sorry to be stupid but do I just replace the original files in /plugins folder?

    Great support!

  14. swicks
    Member
    Plugin Author

    Posted 5 months ago #

    That's correct, however the only file that has changed is ds-sagepay-direct.php, so you could just overwrite that.

    Regards

  15. swicks
    Member
    Plugin Author

    Posted 4 months ago #

    Ticket Closed

  16. glennwills
    Member
    Posted 4 months ago #

    Hi,

    I have now switched the site from test to live and the customer is getting the following error message.

    'Information received from an invalid ip address - Code 4020'

    When possible please let me know what is wrong.

  17. swicks
    Member
    Plugin Author

    Posted 4 months ago #

    Hi,
    You will need to add your host IP address to the live sagepay
    https://live.sagepay.com/mysagepay

  18. glennwills
    Member
    Posted 4 months ago #

    Thanks so much. Silly mistake from my end.

    If I want to export the whole order with all the customer information can you suggest a solution or a plugin that will handle that?

    Thanks in advance.

    This is my last question (I promise)

  19. swicks
    Member
    Plugin Author

    Posted 4 months ago #

    Hi
    You can export orders through wordpress tool export, there are some plugins out there that can export in different formats and can filter.

    You won't be able to store card details

    Hope that helps

    Steve

  20. swicks
    Member
    Plugin Author

    Posted 4 months ago #

    Ticket closed

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.