mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Store the fraud result in meta
This commit is contained in:
parent
5c5f459f3b
commit
704bc9cbf0
2 changed files with 9 additions and 0 deletions
|
@ -52,6 +52,7 @@ class PayPalGateway extends \WC_Payment_Gateway {
|
|||
const REFUND_FEES_META_KEY = '_ppcp_paypal_refund_fees';
|
||||
const REFUNDS_META_KEY = '_ppcp_refunds';
|
||||
const THREE_D_AUTH_RESULT_META_KEY = '_ppcp_paypal_3DS_auth_result';
|
||||
const FRAUD_RESULT_META_KEY = '_ppcp_paypal_fraud_result';
|
||||
|
||||
/**
|
||||
* The Settings Renderer.
|
||||
|
|
|
@ -135,5 +135,13 @@ trait CreditCardOrderInfoHandlingTrait {
|
|||
sprintf( __( 'CVV2 Match: %s', 'woocommerce-paypal-payments' ), esc_html( $fraud_responses['cvv_match'] ) )
|
||||
);
|
||||
$wc_order->add_order_note( $cvv_response_order_note );
|
||||
|
||||
$wc_order->update_meta_data( PayPalGateway::FRAUD_RESULT_META_KEY, $fraud_responses );
|
||||
$wc_order->save_meta_data();
|
||||
|
||||
/**
|
||||
* Fired when the fraud result information is added to WC order.
|
||||
*/
|
||||
do_action( 'woocommerce_paypal_payments_fraud_result_added', $wc_order, $order );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue