You are here

function commerce_gc_transaction_save in Commerce GC 7

Save a giftcard transaction entity.

Return value

type

2 calls to commerce_gc_transaction_save()
commerce_gc_transaction_change_status in ./commerce_gc.module
Given a set of transaction ids, set any that match a certain status to a target status.
commerce_gc_transaction_write in ./commerce_gc.module
Write a new commerce giftcard transaction record. Uses a database transaction to ensure balance integrity.

File

./commerce_gc.module, line 677
Provides Giftcard coupon bundle, Giftcard Transaction entity and basic user interface elements.

Code

function commerce_gc_transaction_save($transaction) {
  return entity_get_controller('commerce_gc_transaction')
    ->save($transaction);
}