You are here

function commerce_payment_transaction_save in Commerce Core 7

Saves a payment transaction.

Parameters

$transaction: The full transaction object to save.

Return value

SAVED_NEW or SAVED_UPDATED depending on the operation performed.

1 call to commerce_payment_transaction_save()
commerce_payment_example_transaction in modules/payment/modules/commerce_payment_example.module
Creates an example payment transaction for the specified charge amount.

File

modules/payment/commerce_payment.module, line 888
Defines the payment system and checkout integration.

Code

function commerce_payment_transaction_save($transaction) {
  return entity_get_controller('commerce_payment_transaction')
    ->save($transaction);
}