Home › Forums › 2Checkout Payment Gateway for WooCommerce › Fraud Review
Tagged: 2checkout fraud check
- This topic has 11 replies, 2 voices, and was last updated 4 years, 8 months ago by nmedia.
-
AuthorPosts
-
March 16, 2020 at 5:40 am #16009SourojitParticipant
Hi,
Where are the settings to fulfill orders only when 2Checkout returns authorization of the Payment? I applied the plugin replacing my old one and my orders started auto completing on payment initiation. Also, one order that was considered as suspect by 2Checkout was cleared by woocommerce system.
Regards,
March 17, 2020 at 12:26 pm #16022nmediaKeymasterHi,
In plugin order is only validated/approved when it is approved in 2Checkout via INS (Instant notifications services).
March 29, 2020 at 5:58 pm #16235SourojitParticipantHi,
That is not correct.
We are trying the standard checkout method. Irrespective of whether the order has passed fraud review, the order status is reaching completed. Fraud review code is not even executing in your plugin.
It is happening because of these lines:
if( isset($_GET[‘key’]) && (isset($_GET[‘wc-api’]) && strtolower($_GET[‘wc-api’]) == ‘wc_gateway_nm_twocheckout’) ) {$this->verify_order_by_hash();
exit;
}This is causing the code to exit from here and mark the order status complete. Fraud review code is written after this.
and even if I comment this code, the response is not coming through properly. Please fix this.
In short, fraud review is not working, not even initiating.
March 30, 2020 at 12:19 pm #16243nmediaKeymasterHi,
can you please share debug log?
March 30, 2020 at 1:27 pm #16246SourojitParticipantHere goes the log:
Fields are masked.
03-29-2020 @ 23:20:10 – Generating payment form for order 144829. Notify URL:
03-29-2020 @ 23:20:10 – ========== Payment Procesing Started: args =========
03-29-2020 @ 23:20:10 – sid=XXXXXXXX&mode=2CO&merchant_order_id=144829&lang=en_US¤cy_code=USD&first_name=Joe&last_name=Flagster&street_address=123&street_address2=Main+Street&city=Townsville&state=OH&zip=43206&country=US&email=XXXXXXXXXXXXX%40gmail.com&phone=XXXXXXXXXXX&x_receipt_link_url=http%3A%2F%2Fwww.XXXOURTESTSITEXXX.com%2F%3Fwc-api%3Dwc_gateway_nm_twocheckout&return_url=http%3A%2F%2Fwww.XXXOURTESTSITEXXX.com%2Fcart%2F%3Fcancel_order%3Dtrue%26amp%3Border%3Dwc_order_gWaoV3gnFFWDO%26amp%3Border_id%3D144829%26amp%3Bredirect%26amp%3B_wpnonce%3Dbd39b335b1&purchase_step=payment-method&demo=Y&li_0_type=product&li_0_name=Order+144829+-+Prodname_first+prodname_second+prodname_third+version+%28Product+SKU%3A+SKUID%29&li_0_quantity=1&li_0_price=26.99&li_0_product_id=PROD-SHORT&li_0_tangible=N
03-29-2020 @ 23:20:37 – == INS Response Received ==
03-29-2020 @ 23:20:37 – {“wc-api”:”wc_gateway_nm_twocheckout”,”middle_initial”:””,”li_0_name”:”Order 144829 – Prodname_first prodname_second prodname_third version (Product SKU: SKUID)”,”sid”:”XXXXXXXX”,”key”:”XXXXXXXXXXXXXXXXXXXXXX”,”state”:”OH”,”email”:”XXXXXXXXXXXXX@gmail.com”,”li_0_type”:”product”,”order_number”:”9093753742497″,”currency_code”:”USD”,”lang”:”en”,”invoice_id”:”9093753742506″,”li_0_price”:”26.99″,”total”:”26.99″,”credit_card_processed”:”Y”,”zip”:”43206″,”li_0_quantity”:”1″,”cart_weight”:”0″,”fixed”:”Y”,”last_name”:”Flagster”,”li_0_product_id”:”PROD-SHORT”,”street_address”:”123″,”city”:”Townsville”,”li_0_tangible”:”N”,”li_0_description”:””,”merchant_order_id”:”144829″,”country”:”USA”,”ip_country”:”xxxxx”,”demo”:”Y”,”pay_method”:”CC”,”cart_tangible”:”N”,”phone”:”XXXXXXXXXXX “,”x_receipt_link_url”:”http:\/\/www.XXXOURTESTSITEXXX.com\/?wc-api=wc_gateway_nm_twocheckout”,”street_address2″:”Main Street”,”first_name”:”Joe”,”card_holder_name”:”Joe Flagster”,”woocommerce-login-nonce”:null,”_wpnonce”:null,”woocommerce-reset-password-nonce”:null}
03-29-2020 @ 23:20:37 – ==== ORDER -> 144829 ====
03-29-2020 @ 23:20:37 – Order Received ==> 144829
03-29-2020 @ 23:20:37 – Order ID 144829
03-29-2020 @ 23:20:37 – WC API ==> wc_gateway_nm_twocheckoutApril 1, 2020 at 2:40 pm #16272nmediaKeymasterThis is not full log, I need to sell full debug log.
April 2, 2020 at 6:10 pm #16288SourojitParticipantHi,
You have to be more specific than that. This is the content of the debug log that is generated for your plugin.
Let me know exactly what you are looking for in the logs and I can even add extra logs to get those values.
Thanks,
ChinmoyApril 5, 2020 at 7:03 am #16303nmediaKeymasterSorry, but it is does not seems complete log. you need to send a complete log text in order to look and fix.
April 5, 2020 at 4:15 pm #16305SourojitParticipantHi,
We really cannot go over this again and again, so I will request you not to simply ask for the complete log in reply to our very specific responses. Please read thoroughly and then respond.
1. What log are you looking for? The plugin log? The site debug log? Any other log that you generate somewhere? I have given you the plugin logs.
2. If by complete log you mean complete log without masking data, I have masked the SID, the key and other sensitive e information. Why do you need my SID and KEY values, or other sensitive data? Can’t you debug the issue without looking at that part?
3. What text/variable value are you looking for in the log? If it is not logged, I can write additional loggers to log it. I am trying my best to help you here.
4. Have you tested the plugin yourself before releasing it? The masked data is very basic plaintext, no special characters or anything. Why is it not working for us?
Please respond after reading the above text thoroughly.
April 6, 2020 at 12:26 pm #16317nmediaKeymasterHi,
I don’t want to see your masked data.
Well, I see you are using an older version, therefor the log is not completed. Please re-download 2checkout plugin again from client portal (yes the version is the same 8.0) but it is updated.
April 6, 2020 at 3:35 pm #16323SourojitParticipantHi,
Here is the log from the updated. version:
04-06-2020 @ 20:16:19 – Generating payment form for order 144972. Notify URL:
04-06-2020 @ 20:16:19 – ========== Payment Procesing Started: args =========
04-06-2020 @ 20:16:19 – sid=XXXXXXXXX&mode=2CO&merchant_order_id=144972&lang=en_US¤cy_code=USD&first_name=XXXXXXX&last_name=XXXXXXX&street_address=XXXX&street_address2=XXXXXXX+XXXXXX&city=XXXXXXXXX&state=XXX&zip=XXXXXX&country=US&email=XXXXXXXXXX&phone=XXXXXXXX&x_receipt_link_url=http%3A%2F%2Fwww.XXXXXXXXXXX.com%2F%3Fwc-api%3Dwc_gateway_nm_twocheckout&return_url=http%3A%2F%2Fwww.XXXXXXXXXXX.com%2Fcart%2F%3Fcancel_order%3Dtrue%26amp%3Border%3Dwc_order_tTOTMF54P6XJP%26amp%3Border_id%3D144972%26amp%3Bredirect%26amp%3B_wpnonce%3Dc8c89a58ba&purchase_step=payment-method&demo=Y&li_0_type=product&li_0_name=Order+144972+-+XXXXXXXXXXXXXXXXXXXXXXXX+%28Product+SKU%3A+4724%29&li_0_quantity=1&li_0_price=XXXXXXXX&li_0_product_id=XXXXXXXXXX&li_0_tangible=N
04-06-2020 @ 20:16:46 – == INS Response Received ==
04-06-2020 @ 20:16:46 – {“wc-api”:”wc_gateway_nm_twocheckout”,”middle_initial”:””,”li_0_name”:”Order 144972 – XXXXXXXXXXXXXXXXXX (Product SKU: XXXXXX)”,”sid”:”XXXXXXXXX”,”key”:”XXXXXXXXXXXXXXXXXXXXXX”,”state”:”XXX”,”email”:”XXXXXXXXXX”,”li_0_type”:”product”,”order_number”:”9093753791718″,”currency_code”:”USD”,”lang”:”en”,”invoice_id”:”XXXXXXXXXXXXX”,”li_0_price”:”XXXXXX”,”total”:”XXXXXXXX”,”credit_card_processed”:”Y”,”zip”:”XXXXXX”,”li_0_quantity”:”1″,”cart_weight”:”0″,”fixed”:”Y”,”last_name”:”XXXXXXX”,”li_0_product_id”:”XXXXXXXXX”,”street_address”:”XXXX”,”city”:”XXXXXXXXX”,”li_0_tangible”:”N”,”li_0_description”:””,”merchant_order_id”:”144972″,”country”:”XXXXXX”,”ip_country”:”XXXXXXXX”,”demo”:”Y”,”pay_method”:”CC”,”cart_tangible”:”N”,”phone”:”XXXXXXXX “,”x_receipt_link_url”:”http:\/\/www.XXXXXXXXXXX.com\/?wc-api=wc_gateway_nm_twocheckout”,”street_address2″:”XXXXXXX XXXXXXX”,”first_name”:”XXXXXXX”,”card_holder_name”:”XXXXXXX XXXXXXX”,”woocommerce-login-nonce”:null,”_wpnonce”:null,”woocommerce-reset-password-nonce”:null}
04-06-2020 @ 20:16:46 – ==== ORDER -> 144972 ====
04-06-2020 @ 20:16:46 – Order ID 144972
04-06-2020 @ 20:16:46 – WC API ==> wc_gateway_nm_twocheckoutApril 7, 2020 at 7:28 am #16328nmediaKeymasterOk thanks for sharing, now in this log that order no: 144972 is received from a client and as per log I can see that this order is successfully completed. If it is not completed please share this order (144972) screenshot here, especially the Notes section on right side.
-
AuthorPosts
- You must be logged in to reply to this topic.