Form-pay.php Google/Apple Pay
-
The only place where Google and Apple Pay are displayed is on the default checkout page of woocommerce (form-checkout.php). But my site uses Pay for Order checkout template which is programmatically different than the default checkout page since its uses form-pay.php code. In this, the express checkout fields are missing. I manually tried to bypass this and add express checkout (G/A Pay) but only managed to do half the process.
By adding <?php do_action( ‘woocommerce_checkout_before_customer_details’ ); ?> into first lines of form-pay.php, now Google and Apple Pay are requested and displayed but the problem is that order details (totals etc) are not correctly communicating with these express payments and thus G/A Pay always display the price of the cart items. The Pay for Order template doesnt load the items into cart, its like creating a link for paying only specific items, so it always displays different price. https://ibb.co/KK3vkdG (53EUR is the price of item in cart and the Pay for Order item is 1.24 EUR).
So is support for form-pay.php coming or should I find a way to fix it manualy?
- The topic ‘Form-pay.php Google/Apple Pay’ is closed to new replies.