From bf0d413a7af63fa4bd0d53636252ea44aa086442 Mon Sep 17 00:00:00 2001
From: Mark Dorison <mark@chromatichq.com>
Date: Fri, 18 Mar 2016 15:08:01 +0000
Subject: [PATCH] Issue #2680929: CVV input field missing from billing form.

---
 modules/recurlyjs/src/Form/RecurlyJsFormBase.php | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/modules/recurlyjs/src/Form/RecurlyJsFormBase.php b/modules/recurlyjs/src/Form/RecurlyJsFormBase.php
index 6cd59f3..0b389aa 100644
--- a/modules/recurlyjs/src/Form/RecurlyJsFormBase.php
+++ b/modules/recurlyjs/src/Form/RecurlyJsFormBase.php
@@ -144,6 +144,15 @@ private function appendBillingFields($form) {
       '#after_build' => ['::removeElementName'],
       '#weight' => -60,
     ];
+    $form['cvv'] = [
+      '#type' => 'textfield',
+      '#title' => $this->t('CVV'),
+      '#attributes' => [
+        'data-recurly' => 'cvv',
+      ],
+      '#after_build' => ['::removeElementName'],
+      '#weight' => -55,
+    ];
     $form['month'] = [
       '#type' => 'textfield',
       '#title' => $this->t('MM'),
