Total paid not added to order in backend
-
Hi,
I am generating a payment button using the shortcode option. Everything works fine apart from adding the total paid to the order entry in the backend “Orders” area. I just have a 0 added.
Any ideas whats going wrong here?
Also on another note but may be realted, I had webhook fails when using this method due to casting issues so added this fix. I have done this in this function wp_stripe_checkout_process_webhook() on and 140.
$payment_data[‘price’] = $amount/100; (FROM)
$payment_data[‘price’] = (float)$amount/100; (TO)
The original error for this is.
PHP Fatal error: Uncaught TypeError: Unsupported operand types: string / int in /home/apea/public_html/staging/wp-content/plugins/wp-stripe-checkout/wp-stripe-checkout-process-webhook.php:140
I am not sure if this is then related to the order issue first discussed, however it is just casting from string to float so not sure why that would affect it.
Thanks,
Lee
- The topic ‘Total paid not added to order in backend’ is closed to new replies.