First Question:
Is Square WebPay the only plugin allowing Onsite payments?????
Currently using PayPal Pro for online payments in 1.5.6c and 1.5.5f.
Need to make a change based on carts being out of date and the PayPal Pro deprecated emails they are sending me.
I'm trying to upgrade my carts to v1.5.7d using PHP 8.0.
Second Question:
I'm using the Tax Cloud plugin. I don't have other mods that would impact the native checkout process.
Tax Cloud modifications are required in the includes/modules/payment folder (paypalwwp.php,authorize_aim.php, etc) to include the Tax Cloud Sales Tax Amount and to add that sales tax amount to the Total Sales Amount before being sent to process.
I'm going to need to modify a similar file in Square if that's what I go with.
Should I be looking to do this in the money.php or order.php file in the includes/classes/vendors/square/connect/lib/Model/ directory?????
I think I've narrowed it down to those 2. Apologies. I'm not fluent in PHP.
If I'm not explaining this well, here is an example of the code that is in the authorize_aim.php file
//TaxCloud hack for Authorize plugin
$taxCloudTax = $_SESSION['taxcloudTaxTotal'];
if ( isset($taxCloudTax)) {
$old_tax = $submit_data['x_tax'];
$submit_data['x_tax'] = round($taxCloudTax,2);
//Update total
$submit_data['x_amount'] = $submit_data['x_amount'] - $old_tax + $submit_data['x_tax'];
}
//End TaxCloud fix
I need to do something similar within whatever payment module I select, leaning towards Square WebPay at the moment.
Bookmarks