diff --git a/src/Plugin/Commerce/PaymentGateway/CommercePayUIndia.php b/src/Plugin/Commerce/PaymentGateway/CommercePayUIndia.php
index 957ae23..2a880ac 100644
--- a/src/Plugin/Commerce/PaymentGateway/CommercePayUIndia.php
+++ b/src/Plugin/Commerce/PaymentGateway/CommercePayUIndia.php
@@ -30,8 +30,8 @@ class CommercePayUIndia extends OffsitePaymentGatewayBase {
    */
   public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
     $form = parent::buildConfigurationForm($form, $form_state);
-    $pkey = $this->configuration['key'];
-    $psalt = $this->configuration['salt'];
+    $pkey = isset($this->configuration['key']) ? $this->configuration['key'] : '';
+    $psalt = isset($this->configuration['salt']) ? $this->configuration['salt'] : '';
 
     $form['key'] = [
       '#type' => 'textfield',
