diff --git a/modules/payment/commerce_payment.tokens.inc b/modules/payment/commerce_payment.tokens.inc
index 7591fa8..3ad619f 100644
--- a/modules/payment/commerce_payment.tokens.inc
+++ b/modules/payment/commerce_payment.tokens.inc
@@ -185,7 +185,7 @@ function commerce_payment_tokens($type, $tokens, array $data = array(), array $o
           break;
 
         case 'creator':
-          if ($order->uid == 0) {
+          if ($transaction->uid == 0) {
             $name = variable_get('anonymous', t('Anonymous'));
           }
           else {
