swicks
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce SagePay Direct Payment Gateway] Direct Payment MethodsHi
I’ve spoken to Sagepay support, having not being able to find any development documentation on using European payments with SagePay Direct. I’ve been told it will only work with Server and Form and the way it works is based on subscription and client address, so it should just work as the changes are done at SagePay and not on the client.
Woocommerce have a SagePay Form available now:
http://www.woothemes.com/products/sage-pay-form/regards
Steve
Forum: Plugins
In reply to: [WooCommerce SagePay Direct Payment Gateway] Off Line ordersHi
You asked me this question about 6 months ago, and I never got back to you – apologies for that…
I’ll take another look, the issue if I remember was related to how the order page worked. I know that there has been a number of improvements with the later version of WooCommerce.
I will probably incorporate it into a Pro version of this plugin…
regards
Steve
Forum: Plugins
In reply to: [WooCommerce SagePay Direct Payment Gateway] 3d secure not workingFYI: This issue was resolved by setting the correct permissions on the WordPress plugins folder.
Regards
Steve
Forum: Plugins
In reply to: [WooCommerce SagePay Direct Payment Gateway] 3d secure not workingHi Adam
You can contact me via support(at)devicesoftware.com
Do you get a tomcat 500 error clicking on ACSURL link? (you should because it’s expecting some POST data)
Do orders get processed if you disable 3DSecure through MySagePay (Test)?
In Chrome add your payment details and before you press ‘Place order’ open ‘Developer Tools’ (F12 on windows) and disable javascript (settings icon – bottom right) – hopefully you won’t see a 404 but a ‘Go’ submit button – right click on the button and view frame source – keep this and go back to the checkout page and click on the ‘Go’ button – if you get a 404 check the forms action url is identical to the ACSURL.
What versions of WooCommerce, WordPress and the SagePay payment gateway are you using?
Did you try removing your custom permlinks? (this is unlikely as the redirect link is used after the ACSURL)
Forum: Plugins
In reply to: [WooCommerce SagePay Direct Payment Gateway] 3d secure not workingThe debug data looks ok.
The process is:
- SagePay sends a 3DAUTH status
- This is handled by the gateway and redirected to woocommerce ‘pay’ page.
- an action will trigger the auth_3dsecure function within the gateway – if iframe is enabled it will load pages/3DRedirect.php which will then fires a javascript OnLoadEvent to submit the form with the ACSURL information provided by SagePay.
try without custom permlinks.
Check that javascript & iframes are enabled.
what browsers have you tried?hope this helps.
regards
Steve
Forum: Plugins
In reply to: [WooCommerce SagePay Direct Payment Gateway] 3d secure not workingHi
When you ‘Place order’ with all the fields populated – the Checkout -> Pay page is displayed with a frame showing a 404 error.
The page it’s trying to display is the ACSURL (generated by SagePay)
Are you trying this in Test mode with debug set to an email address?
Would be interesting to see what’s in the response (email).regards
Steve
Forum: Plugins
In reply to: [WooCommerce SagePay Direct Payment Gateway] Passing basket contentsYou will need to pull this from WC Order
You would have called this earlier to get the items
$this->order = new WC_Order($order_id);Append to the $basket string
$desc = 'Shipping'; $qty = '1'; $item_value = $this->order->order_shipping; $item_tax = $order->order_shipping_tax; $item_total = $item_value + $item_tax; $line_total = $item_total; $basket .= ':' . $desc . ':' . $qty . ':' . $item_value . ':' . $item_tax . ':' . $item_total . ':' .$line_total;Forum: Plugins
In reply to: [WooCommerce SagePay Direct Payment Gateway] Direct Payment MethodsSorry, but I don’t time or resource to develop this further at this moment in time.
I’ve been recently working on version 3 for SagePay Server – the unfinished code, I’ve just pushed up onto github https://github.com/swicks/sagepay-server-for-woocommerce This should be a good starting point for version 3 integration and if you have the means, feel free to use (it’s all under GPLv2)
Forum: Plugins
In reply to: [WooCommerce SagePay Direct Payment Gateway] Malformed BillingStateHi
No problem – support(at)devicesoftware.com
regards
Steve
Forum: Plugins
In reply to: [WooCommerce SagePay Direct Payment Gateway] Malformed BillingStateHi
Can you not reproduce this on a test site?I know for US we have to send a state – do you know what state or is this happening on all?
Can you let me know what versions of woocommerce, sagepay direct and wordpress you are using?
regards
Steve
Forum: Plugins
In reply to: [WooCommerce SagePay Direct Payment Gateway] Malformed BillingStateI’m unable to reproduce this problem. Would it be possible to use the sagepay test server and setup debug to capture the information being sent?
thanks
Steve
Forum: Plugins
In reply to: [WooCommerce SagePay Direct Payment Gateway] Currency switcherH, sorry I’m not familiar with this currencyswitcher plugin – what you could do is insert a filter into the sagepay plugin just before the parameter array is changed to a string (~line 565).
$this->params = apply_filters("sagepay_direct_params", $this->params);add filter into your currencyswitcher plugin similar to this…
add_filter('sagepay_direct_params', array($this, 'sagepay_direct_params'));Handle the currency change within the function similar to this…
public function sagepay_direct_params($params) { //manipulate params $params['Currency'] = 'EUR'; return $params; }hope that help
Forum: Plugins
In reply to: [WooCommerce SagePay Direct Payment Gateway] Passing basket contentsthe wc-product abstract class uses magic method __get which will do most of the work for you. In the example above you could add:
$product = get_product( $item['product_id'] ); //returns an instance 'sku = $product->get_sku(); //returns the sku $desc = $item['name'] . ' [' . $sku . ']';Forum: Plugins
In reply to: [WooCommerce SagePay Direct Payment Gateway] Passing basket contentsInterestingly nobody has asked for the basket parameter – this should be very straight forward to implement – SagePay uses colons to separate the fields, starting with the item count.
if( $this->add_basket ) { $items = $this->order->get_items(); // total count $basket = count($items); foreach($items as $item) { $desc = $item['name']; $qty = $item['qty']; $line_sub_total = $item['line_subtotal']; $line_sub_tax = $item['line_tax']; $item_value = round($line_sub_total / $qty, 2); $item_tax = round($line_sub_tax / $qty, 2); $item_total = $item_value + $item_tax; $line_total = $line_sub_total + $line_sub_tax; $basket .= ':' . $desc . ':' . $qty . ':' . $item_value . ':' . $item_tax . ':' . $item_total . ':' .$line_total; } $this->add_param( 'Basket', $basket ); }I will implement this in the next rev.
regards
swicks
Forum: Plugins
In reply to: [WooCommerce SagePay Direct Payment Gateway] Bug in CurrencyI’ve modified the currency definition to show the correct ISO currency name for the EURO.
This is available in all future downloads and the next update.
thanks