function _uc_authorizenet_txn_map in Ubercart 5
Same name and namespace in other branches
- 6.2 payment/uc_authorizenet/uc_authorizenet.module \_uc_authorizenet_txn_map()
- 7.3 payment/uc_authorizenet/uc_authorizenet.module \_uc_authorizenet_txn_map()
1 call to _uc_authorizenet_txn_map()
- _uc_authorizenet_charge in payment/
uc_authorizenet/ uc_authorizenet.module - Handles authorizations and captures through AIM at Authorize.Net
File
- payment/
uc_authorizenet/ uc_authorizenet.module, line 1321 - Process payments using Authorize.net. Supports AIM and ARB.
Code
function _uc_authorizenet_txn_map($type) {
switch ($type) {
case UC_CREDIT_AUTH_ONLY:
return 'AUTH_ONLY';
case UC_CREDIT_PRIOR_AUTH_CAPTURE:
return 'PRIOR_AUTH_CAPTURE';
case UC_CREDIT_AUTH_CAPTURE:
return 'AUTH_CAPTURE';
case UC_CREDIT_CREDIT:
return 'CREDIT';
case UC_CREDIT_VOID:
return 'VOID';
}
}