Guest User

Untitled

a guest
Nov 13th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. /**
  2. * @param WC_Order $order
  3. * @param string $response_code The transaction response code. Possible values are:
  4. * 00 - Successful transaction
  5. * 85 - Reversal Transaction already registered
  6. * 86 - Transaction already registered
  7. * 87 - Wrong protocol version
  8. * 88 - BOReq parameter is not given
  9. * 89 - Original transaction is not found.
  10. * 90 - Card is not registered in the Directory Server
  11. * 91 - Transaction timeout
  12. * 92 - Status check: Wrong eBorica format
  13. * 93 - Unsuccessful 3D authentication
  14. * 94 - Cancelled transaction
  15. * 95 - Invalid merchant signature
  16. * 96 - Technical transaction error
  17. * 97 - Declined on fraud grounds
  18. * 98 - Status check: no borica request registered
  19. * 99 - Declined by TPSS
  20. */
  21. function prefix_after_payment_response( $order, $response_code ) {
  22. if ( '00' == $response_code ) {
  23. // Action when the transaction is successful
  24. }
  25. }
  26. add_action( 'wc_borica_payment_response_processed', 'prefix_after_payment_response', 10, 2 );
Add Comment
Please, Sign In to add comment