You are here

function commerce_gc_transaction_new in Commerce GC 7

Create a stub giftcard transaction entity.

Return value

type

1 call to commerce_gc_transaction_new()
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 668
Provides Giftcard coupon bundle, Giftcard Transaction entity and basic user interface elements.

Code

function commerce_gc_transaction_new($values) {
  return entity_get_controller('commerce_gc_transaction')
    ->create($values);
}