You are here

function commerce_payment_example_submit_form in Commerce Core 7

Payment method callback: submit form.

File

modules/payment/modules/commerce_payment_example.module, line 28
Provides an example payment method for Drupal Commerce for testing and development.

Code

function commerce_payment_example_submit_form($payment_method, $pane_values, $checkout_pane, $order) {
  module_load_include('inc', 'commerce_payment', 'includes/commerce_payment.credit_card');

  // Default to a known test credit card number. For valid numbers of other card
  // types see: http://www.rimmkaufman.com/blog/credit-card-test-numbers/09112007/
  return commerce_payment_credit_card_form(array(), array(
    'number' => '4111111111111111',
  ));
}