You are here

function stripe_help in Stripe 7

Same name and namespace in other branches
  1. 8 stripe.module \stripe_help()
  2. 2.x stripe.module \stripe_help()

Implements hook_help().

File

./stripe.module, line 15
stripe.module Drupal hooks used for integrating the Stripe service.

Code

function stripe_help($path, $arg) {
  if ($path == 'admin/config/stripe/admin/keys') {
    $output = '<ol>';
    $output .= '<li>' . t('Enter the API keys you get from your <a href="@url">Stripe account page</a>.', array(
      '@url' => 'https://manage.stripe.com/account',
    )) . '</li>';
    $output .= '<li>' . t('Use the radio buttons to choose which API Key should be used with this site.') . '</li>';
    $output .= '<li>' . t('After designating an API Key, you might want to try out <a href="@url">the test form</a>.', array(
      '@url' => '/admin/config/stripe/test',
    )) . '</li>';
    $output .= '</ol>';
    return $output;
  }
  if ($path == 'admin/config/stripe/admin/test') {
    return '<p>' . t('This form is to test responses from Stripe. The default values are accepted by Stripe for testing purposes. Before you can use this form, you should <a href="@url">designate an active API Key</a>.', array(
      '@url' => '/admin/config/stripe/keys',
    )) . '</p>';
  }
}