SagePay - How do you pass company name field to sagepay form? - woocommerce

we have recently moved over to a new website using woocommerce. We are trying to find out how to pass the company name to sage pay so when we import it into sage 50 accounts it finds the correct company to match the account to.
Currently it is creating a new company using the first and last name of the person as there is no where (it appears) for sagepay to allow this info.
How do we do this please?

The email address is used as the identifier at the moment, so if your Sage 50 records have the correct email address, and this is supplied with the transaction registration, it should match up.

Related

Booking system - WP

I need to do a reservation for 3 restaurants- in each there are 12 tables. Some of the reservations have to be paid before, the rest of them not at all.
Also, there is a need to identify if in the particular restaurant there is a reservation for different events- then the functionality of not-paid reservation must be switch off.
Ideally, if mails with reservations should be delivered to various email addresses - based on the name of the restaurant.
Everything must run on WP.
Can you please assist me with that?
For this system, I suggest you this solution.
I should say that using this answer requires average knowledge of PHP and WordPress functions.
Create a custom post type for Restaurants.
Information such as not-paid reservation, paid reservation, and events can be saved as meta values.
To save meta values for your custom post type, you can use the "advanced custom fields" plugin or just code them using add_meta_box().
For the reservations, you should make a form and in the form, users can select their reservation table, date, and time.
if the reservation requires payment, you should check the gateway documentation and use their script.
here you need to create a table in the database for payments.
after the form submits and before payment, add your user info to the database and give the payment status "pending" value.
after the successful or unsuccessful payment, the gateway will return the payment status and with that, you can save the reservation status.
For sending an email to the restaurant manager, after the successful payment, use wp_mail().
I tried to explain the whole project to you in 12 lines so, after reading this answer you may get confused.
If you have more questions, just ask.

Error 87 in Authorize.Net payment gateway

I am trying to integrate Authorize.Net in WooCommerce, using the following plugin for it: https://wordpress.org/plugins/yith-woocommerce-authorizenet-payment-gateway/
I set all user IdTransaction Key md5 Hash, but it gives me error 87, I don't understand where I need to put x_market_type as per the support document said.
This is the error I am getting:
From the Authorize.Net documentation about error code 87:
Response Reason Code: 87
Response Reason Text: Transactions of this market type cannot be
processed on this system.
Notes: The server is not configured to process the product type
derived from the market type of this transaction.
This can happen for four reasons:
You are attempting to process a type of transaction that your account
is not designed to process. For example, you attempt to use a card
swipe machine with an account that is enabled for Card Not Present
transactions.
Your software integration is passing an incorrect value
for the field x_market_type. If you are using a Retail account,
x_market_type should be set to a value of "2". The integration guide
for Card Present transactions can be found at
http://www.authorize.net/support/CP_guide.pdf.
Your Merchant Service
Provider may be incorrectly set up for this account.
The product type
(SIC code) is incorrect for this account.
It is recommended to check
the posting URL that is being used for your integration. Please
consult the guide for the integration method you are using to verify
the correct posting URL.
To help troubleshoot this issue, you can confirm the Product Type for
your account using the following steps:
Log in to your account at https://account.authorize.net.
Click Account from the main toolbar.
Click Merchant Profile.
Refer to the Product Type listed under Business Information.

Shopify checkout process

Shopify used to allow you to style the checkout process through a CSS file. However, they have now removed this option.
I've developed a Shopify App for a customer that requires that ALL customers digitally sign a form before payment. The form asks specific questions, and must be presented in a specific way, with a specific font. In their country it is illegal to sell online without sending your customers through this process. Everything is sent over TLS etc.
On the form, a customer is asked their name, delivery address, billing address, etc. The products are listed and followed by a ton of legal text.
The difficulty is, as soon as the customer goes to checkout - they are then able to change their delivery and billing address, thus rendering the form null and void.
My initial thought was to simply hide the customer billing and delivery information from the checkout using CSS. However, I'm unable to do this because Shopify no longer grant access to the style sheet.
Does anyone know of a way around this?

Company domain google site visitors by name via google analytics

I have a company domain google site and enabled google analytics account. Could somebody advice if it is possible to view same domain site visitors by name?
I want to track who of my colleagues visited my site and what is the frequency.
Thanks.
In order to connect a user in Google Analytics to a person, you'd need some sort of system to make the connection. This could be a login, a form, a url parameter, or something like that, where at a certain point you know who they actually are. At that point, you can assign them an ID (in a custom dimension) and make reports tracking their behavior.
It is worth noting (as above) that you can't store personal info in Google Analytics - so the ID would have to be non-identifying, like a GUID or random, numerical ID.
Some strategies for connecting website users to individuals include:
Email Marketing - Many email marketing companies allow you to pass a unique identifier in the URL of anything they click. You could then read this url parameter with javascript and assign it to a custom dimension in Google Analytics.
Login/SignUp - You might have some content behind a login-wall. For example, in order to download a document, you make the user fill out some personal information (like an email and their name), then email a link to the document to them. Once you have the user's information in your system (via the form submission), you can grab the user's ID from the submission.
Manual Parameter - Similar to the "Email" one, you could just email your colleagues a link to the website with a custom ID on each link. Just read that parameter from the URL with javascript and assign it to a custom dimension.

How does WooCommerce get a user's country

Ok so I know that to get the current user's location in WooCommerce you use
$woocommerce->customer->get_country( );
Woocommerce then returns the user's country as a 2 character user code i.e (GB,US,MX) My question is, where is WooCommerce getting this value? even when I am logged out it seems to get the correct location. Is this some kind of Geo coding or it uses a cookie or database to return a user inputed value?
It is using MaxMind API, class WC_Geolocation located inside includes folder.
The MaxMind GeoLite Database will be periodically downloaded to your wp-content directory if you check to use geolocation, there is option in settings.
You can find talk when they added it to WooCommerce here: https://github.com/woothemes/woocommerce/issues/6969
Never used WooCommerce before but in the past I have used GeoIP to get a users country and other information based on IP address. It's not always accurate though (country is likely to be accurate but city isn't)

Resources