Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * @param WC_Order $order
- * @param string $response_code The transaction response code. Possible values are:
- * 00 - Successful transaction
- * 85 - Reversal Transaction already registered
- * 86 - Transaction already registered
- * 87 - Wrong protocol version
- * 88 - BOReq parameter is not given
- * 89 - Original transaction is not found.
- * 90 - Card is not registered in the Directory Server
- * 91 - Transaction timeout
- * 92 - Status check: Wrong eBorica format
- * 93 - Unsuccessful 3D authentication
- * 94 - Cancelled transaction
- * 95 - Invalid merchant signature
- * 96 - Technical transaction error
- * 97 - Declined on fraud grounds
- * 98 - Status check: no borica request registered
- * 99 - Declined by TPSS
- */
- function prefix_after_payment_response( $order, $response_code ) {
- if ( '00' == $response_code ) {
- // Action when the transaction is successful
- }
- }
- add_action( 'wc_borica_payment_response_processed', 'prefix_after_payment_response', 10, 2 );
Add Comment
Please, Sign In to add comment