You are here

function _commerce_stripe_form_add_credit_card_form in Commerce Stripe 7

Same name and namespace in other branches
  1. 7.3 commerce_stripe.module \_commerce_stripe_form_add_credit_card_form()

Parameters

$form:

1 call to _commerce_stripe_form_add_credit_card_form()
commerce_stripe_cardonfile_create_form in ./commerce_stripe.module
Card on file callback: create form

File

./commerce_stripe.module, line 991
This module provides Stripe (http://stripe.com/) payment gateway integration to Commerce. Commerce Stripe offers a PCI-compliant way to process payments straight from you Commerce shop.

Code

function _commerce_stripe_form_add_credit_card_form(&$form) {
  $form += _commerce_stripe_credit_card_form();

  // Include the stripe.js from stripe.com.
  drupal_add_js('https://js.stripe.com/v2/', 'external');
}