function commerce_payment_transaction_set_properties in Commerce Core 7
Callback for setting payment transaction properties.
See also
commerce_payment_entity_property_info()
1 string reference to 'commerce_payment_transaction_set_properties'
- commerce_payment_entity_property_info in modules/
payment/ commerce_payment.info.inc - Implements hook_entity_property_info().
File
- modules/
payment/ commerce_payment.module, line 1243 - Defines the payment system and checkout integration.
Code
function commerce_payment_transaction_set_properties($transaction, $name, $value) {
switch ($name) {
case 'user':
$transaction->uid = $value;
break;
case 'order':
$transaction->order_id = $value;
break;
}
}