<commit_before>APP.components.stripePayment = (function() {

  function init() {
    const form = $("#payment-form");
    const intent = form.data("intent");
    const clientSecret = form.data("client-secret");
    const redirectUri = form.data("redirect");
    const appearance = {
      theme: 'flat',
      labels: 'floating',
      variables: {
        colorPrimary: '#69a8a7',
        colorBackground: '#DBEFEC',
        colorText: '#615454',
        colorTextPlaceholder: '#83C7BD',
        colorTextSecondary: '#808080',
        colorDanger: '#ba564d',
        borderRadius: '4px',
        spacingUnit: '3px',
        spacingGridRow: '12px',
        spacingGridColumn: '12px',
        spacingTab: '6px',
      },
      rules: {
        '.Tab': {
          backgroundColor: '#ffffff',
          border: '1px solid #DBEFEC',
          paddingTop: '20px',
          paddingBottom: '20px',
        },
        '.Tab:hover': {
          color: 'var(--colorText)',
          borderColor: '#F8C8C2',
        },
        '.Tab--selected': {
          borderColor: '#69a8a7',
        },
        '.Input': {
          boxShadow: 'inset 1px 1px 1px 0 rgba(0, 0, 0, 0.05)',
        },
        '.Label--resting, .Label--floating': {
          color: '#69a8a7',
        },
      }
    };

    const elements = stripe.elements({ appearance, clientSecret });

    const paymentElement = elements.create("payment");
    paymentElement.mount("#payment-element");

    form.on("submit", async function(e) {
      e.preventDefault();
      setLoading(true);

      let result;
      if (intent == "setup") {
        result = await stripe.confirmSetup({
          elements, confirmParams: { return_url: redirectUri },<commit_msg>started added some options<commit_after>APP.components.stripePayment = (function() {

  function init() {
    const form = $("#payment-form");
    const intent = form.data("intent");
    const clientSecret = form.data("client-secret");
    const redirectUri = form.data("redirect");
    const options = {
      terms: {
        card: 'never',
        //sepaDebit: 'never'
        //sofort: 'never'
      },
      business: {
        name: 'imGrätzl.at (morgenjungs GmbH)'
      },
      fields: {
        //billingDetails: 'never'
      },
    }
    const appearance = {
      theme: 'flat',
      labels: 'floating',
      variables: {
        colorPrimary: '#69a8a7',
        colorBackground: '#DBEFEC',
        colorText: '#615454',
        colorTextPlaceholder: '#83C7BD',
        colorTextSecondary: '#808080',
        colorDanger: '#ba564d',
        borderRadius: '4px',
        spacingUnit: '3px',
        spacingGridRow: '12px',
        spacingGridColumn: '12px',
        spacingTab: '6px',
      },
      rules: {
        '.Tab': {
          backgroundColor: '#ffffff',
          border: '1px solid #DBEFEC',
          paddingTop: '20px',
          paddingBottom: '20px',
        },
        '.Tab:hover': {
          color: 'var(--colorText)',
          borderColor: '#F8C8C2',
        },
        '.Tab--selected': {
          borderColor: '#69a8a7',
        },
        '.Input': {
          boxShadow: 'inset 1px 1px 1px 0 rgba(0, 0, 0, 0.05)',
        },
        '.Label--resting, .Label--floating': {
          color: '#69a8a7',
        },
      }
    };

    const elements = stripe.elements({ appearance, clientSecret });

    const paymentElement = elements.create("payment", options);
    paymentElement.mount("#payment-element");

    form.on("submit", async function(e) {
      e.preventDefault();
      setLoading(true);

      let result;
      if (intent == "setup") {
        result = await stripe.confirmSetup({
          elements, confirmParams: { return_url: redirectUri },
{'fraction_non_alphanumeric': 0.15332794395041768, 'fraction_numerical': 0.029641606036108867, 'mean_word_length': 2.037643207855974, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '12614', 'n_tokens_mistral': 1190, 'n_tokens_neox': 1094, 'n_words': 233}