Hey @bbender75 ,
Hope you are doing well!
We are going to check this with the development team.
Can you share with us the System Status report on “WooCommerce > Status” click on “Get system report”.
Best,
Christian
Thank you for the response. We have a few sites with the same issue, i just took it out of one. I saved the info to a file, would you rather me e-mail it somewhere?
WordPress Environment.docx
PS. the journeys and other transactional triggered things work under different payment gateways
PSS -we also tested another e-mail; marketing platform and had the same issue.
Hey @bbender75 ,
Hope you are doing well!
seems to be hard to reproduce the issue, can you contact BlueSnap Support from your merchant account explaining the problem and pointing to this thread? also we will ask you for a staging site so this will be faster to find the issue.
Best,
Christian
hello. We are working on setting up a staging site. Is there an e-mail or something that I can send that to? So it is not an open forum?
We also reached out to BueSnap directly and they had us check/configure and complete the IPN setup. Which we did and the issue persists.
Hey @bbender75 ,
you can send credential to [email protected]
Best,
Christian
I sent an e-mail as well.
After the suggestion to reach out to BlueSnap, they had us check/configure the IPNs setup. Which we did. Now payments go through and an error shows to the customer resulting in them submitting multiple orders. We have been in contact with BlueSnap and they are not indicating an error on their end.
We do not have this issue with other payment method tests. Please advise ASAP all our sites are down.
The staging site is being set up.
Hey @bbender75
Hope you are doing well!
this is a snippet code that you need to add to your site so you can handle your orders with the “Processing” status instead of the “On hold” one.
add_action(
'init',
function() {
if ( ! class_exists( 'WC_Bluesnap_Order_Handler' ) ) {
return;
}
$order_handler = WC_Bluesnap_Order_Handler::get_instance();
remove_action( 'woocommerce_order_status_on-hold_to_processing', array( $order_handler, 'capture_payment' ) );
remove_action( 'woocommerce_order_status_on-hold_to_completed', array( $order_handler, 'capture_payment' ) );
remove_action( 'woocommerce_order_status_on-hold_to_cancelled', array( $order_handler, 'cancel_payment' ) );
remove_action( 'woocommerce_order_status_on-hold_to_refunded', array( $order_handler, 'cancel_payment' ) );
add_action( 'woocommerce_order_status_processing_to_completed', array( $order_handler, 'capture_payment' ) );
add_action( 'woocommerce_order_status_processing_to_cancelled', array( $order_handler, 'cancel_payment' ) );
add_action( 'woocommerce_order_status_processing_to_refunded', array( $order_handler, 'cancel_payment' ) );
}
);
function blackstone_bluesnap_update_order_processing( $order, $payment_method_data, $transaction ) {
if (
'AUTH_AND_CAPTURE' !== $transaction['cardTransactionType'] &&
'no' === $order->get_meta( '_bluesnap_charge_captured', true ) &&
'on-hold' === $order->get_status()
) {
$order->update_status( 'processing', sprintf( __( 'Bluesnap charge authorized (Charge ID: %s). Process order to take payment, or cancel to remove the pre-authorization.', 'woocommerce-bluesnap-gateway' ), $transaction['transactionId'] ) );
}
}
add_action( 'wc_gateway_bluesnap_new_card_payment_success', 'blackstone_bluesnap_update_order_processing', 10, 3 );
add_action( 'wc_gateway_bluesnap_new_ach_payment_success', 'blackstone_bluesnap_update_order_processing', 10, 3 );
add_action( 'wc_gateway_bluesnap_token_payment_success', 'blackstone_bluesnap_update_order_processing', 10, 3 );
Please first test this snippet on your staging site before adding it to your live site.
Best,
Christian