orange5com
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce Stripe Payment Gateway] Issues with passing the Shipment pricingDoes your plugin support selling of digital goods that do not require delivery?
Forum: Plugins
In reply to: [WooCommerce Stripe Payment Gateway] Issues with passing the Shipment pricingWe can not rely on shipment cost calculation via external services. We do not use zones or anything like that in WooCommerce – calculations are done via our custom plugin that calculates it based on address and weight via third party API (FreightClub). This is crucial for us, as the shipment of items we sell are very costly and have to be custom calculated by us.
So the shipment cost calculation done in WooCommerce (via our plugin) is the one we want to charge the client. Not anything GPay or Apple pay decides has to be the shipment cost (how can it calculate it anyway? based on what? we sell large items that are not delivered via standard USPS/UPS/Fedex).
Can we just pass the grand total cost to express payments, and let it list shipment as free? Basically, we will pass the purchase cost and the shipment cost already as totaled together. So the express payment method will not even need to know or calculate any shipment?
Any other ways you see around? Like hiding the delivery pricing in express payment, like it is an online purchase, for virtual goods, with no physical delivery. Basically, use your plugin simply to handle the payments via external services, not deal with any shipment address and cost calculations?
We will look into buttons flickering, but usually it happen when the state does not match the ZIP, and the state sometime defaults to California. Entering a correct address should address it, sometimes with page refresh… We are looking into improving it. All this happens before we show and hide payment buttons via JS.
Forum: Plugins
In reply to: [WooCommerce Stripe Payment Gateway] Issues with passing the Shipment pricingFirstly, it is not just GPay. We are interested in all payment methods.
Apple Pay also does not pass the shipment cost. Link looks like it does – the total includes shipping. Credit Cards do not – completing the transaction only changes the base price with no shipping included.
So we are talking about the whole plugin work. Again, you can test it on our site by creating a test order but not completing it. Actually we turned on the Stripe sandbox mode, so it does not matter.
We have a different setup. We calculate our own shipment prices based on weight and address:
Shipping class WC_Weight_Based_Shipping extends WC_Shipping_Method
public function calculate_shipping($package = array()) {
$this->add_rate(array(
‘id’ => $this->id,
‘label’ => $this->title,
‘cost’ => $formattedCost,
‘calc_tax’ => ‘per_order’
));
}}
So we need the address to calculate shipping. When we added your payment plugin, it enabled the payment buttons even on the shopping cart page, so people could click on them without entering the address. And our plugin could not calculate and pass on the shipment cost. So we had to hide the pay buttons on Shopping Cart and on Checkout we hide them before the address is entered.
When the address is entered on Checkout, you will see the shipment cost calculated and your payment buttons enabled. The issue is that the shipment price is calculated fine in Checkout, but not passed to GPay, Apple, credit card (PayPal also never really worked for us) for majority accounts… With Google Pay we can see it being added fine (the shipment cost) when using Google account outside USA. So, we suspect, it could be linked to location.
Again, just make a test order and you will see the issue I showed in the original 3 screenshots:
https://greenhousecover.com/checkout/Forum: Plugins
In reply to: [WooCommerce Stripe Payment Gateway] Issues with passing the Shipment pricingThere was not a specific update done. We just connected Stripe plugin, disabling the other plugin we used for credit cards. So Stripe plugin issues are from the start. You can check it on our site, by creating an order and clicking GPay.
Here is the link you asked: https://pastebin.com/JUnRcYPy