title: How can I add Amount using Cyber source SDK iOS?
body: <p>I downloaded Cyber Source SDK iOS from Github. It is also working fine. But I need to set total amount and I can not find any parameter in SDK. How to set amount in Cyber source using SDK?</p>
  
  <p>I don't know it is set by SDK or Backend(API). Please check my code below:</p>
  
  <pre><code>//Card data
          let cardData = InAppSDKCardData.init()
          cardData.accountNumber = txtCardNumber.text
          cardData.expirationMonth = txtMonth.text
          cardData.expirationYear = txtYear.text
          cardData.cvNumber = txtCVV.text
  
          //Create Transaction object
          let transactionObj = InAppSDKTransactionObject.init()
          transactionObj.billTo = getBillToData()
          transactionObj.cardData = cardData
  
          //Get the Merchant data and credentials and assign.
          transactionObj.merchant = getMerchantData()
  
          //Set the End point / Environment. Test or Live
          InAppSDKSettings.sharedInstance()?.inAppSDKEnvironment = INAPPSDK_ENV_TEST
  
          //Enable log for debugging
          InAppSDKSettings.sharedInstance()?.enableLog = true
  
          //Obtain the gateway sharted instance.
          let gatWay = InAppSDKGateway.sharedInstance()
  
          result = (gatWay?.performPaymentDataEncryption(transactionObj, with: self))!
  
          if (result) {
              NSLog("InAppSDK: Request Accepted. Expect the response in the delegate method.");
          }
          else {
              NSLog("InAppSDK: Request NOT Accepted. Verify the input values if any one is invalid.");
          }
  </code></pre>
  
  <p>And I got a response like this</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt;
  &lt;soap:Header&gt;
  &lt;wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"&gt;&lt;wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Timestamp-1623853623"&gt;&lt;wsu:Created&gt;2019-08-01T10:25:43.747Z&lt;/wsu:Created&gt;&lt;/wsu:Timestamp&gt;&lt;/wsse:Security&gt;&lt;/soap:Header&gt;&lt;soap:Body&gt;&lt;c:replyMessage xmlns:c="urn:schemas-cybersource-com:transaction-data-1.120"&gt;&lt;c:merchantReferenceCode&gt;Cyber_iOS&lt;/c:merchantReferenceCode&gt;&lt;c:requestID&gt;5646551432976553503004&lt;/c:requestID&gt;&lt;c:decision&gt;ACCEPT&lt;/c:decision&gt;&lt;c:reasonCode&gt;100&lt;/c:reasonCode&gt;&lt;c:requestToken&gt;AhizbwSTMhmkg5ScYGkcEQFRp++q/94CP9hk0ky9GK+AnABMoAny&lt;/c:requestToken&gt;&lt;c:encryptedPayment&gt;&lt;c:data&gt;eyJkYXRhIjoiK1ZrdmNpTDhpcStyeEt2RytTMDl3R05MbTFGZzlRcXZpQUE3K3FWOFNvckJqYnp1b0lcL3VzRUs0RWpDZkpxZ1pJejJRbWd3cjBNdGxpVXltS2k0bERNS3lFZmdHZmlOS1wvOWRIMWpMXC9WaCszbk5nOXV6NVp2eG54OVpJbmExNkpBbmtvMmt0OSs0S2lDdW1TYkVBVlVtSkdrRm12ZFhqYlBRUXFzVXNcL0xjS2tlVEkzb1RrSkhFXC9jWVBkRXRHZUs1bVErOW8zbDUySWtUb0xPWkJJcUxmeEtcLzNiNUVRY3FcL2ZZOXZJT3l1aFVnZEc2OXVwXC9oQTJJakpORmY1bm1ZcmQ1bkRkVEdEa1EyeGY3RnNGTDdKRjYxdlNUbHljcHIweHFvS09adDNpQVplM1wvR3htT2p1Unp6XC9oTFhsOTZNRFFaUUc1eXZHZHBXaUNydEhRPT0iLCJoZWFkZXIiOnsiYXBwbGljYXRpb25EYXRhIjoiNDc3NTY5NjQzRDMwMzYzMzYxNjI2MTYzMzYyRDYxMzEzMDMzMkQzNDY2NjY2NTJEMzgzOTYzMzAyRDM4MzczNDY2MzMzNTM1NjI2NTMxNjM2MzNCNDQ2MTc0NjU1NDY5NkQ2NTNEMzIzMDMxMzkyRDMwMzgyRDMwMzE1NDMxMzAzQTMyMzUzQTM0MzMyRTM2MzAzOTM1MzAzNTM4NUEiLCJlcGhlbWVyYWxQdWJsaWNLZXkiOiJNRmt3RXdZSEtvWkl6ajBDQVFZSUtvWkl6ajBEQVFjRFFnQUVaRE41dU8rb1R0eXNzdlwvb1V2SjZhQnE1bkVrWVBXZEdDT01sb1YyYkJpaHVROTlHSnBobEk2elwvOHg2M1dmUGpjbGFTcG04ODBJZGNaU0czUkRnNVpRPT0iLCJwdWJsaWNLZXlIYXNoIjoieXRLSjgwc3JjWXppQnVwNzRcL0R5K3RTV1FQSENwXC9ZbkFabGhcL3lXOFk3ND0iLCJ0cmFuc2FjdGlvbklkIjoiNTY0NjU1MTQzMjk3NjU1MzUwMzAwNCJ9LCJzaWduYXR1cmVBbGdJbmZvIjoiU0hBMjU2Iiwic2lnbmF0dXJlIjoiNXdya1BuTEtJZWoxV0ZEVjVZNUJEc0orTUg2QkJSN2Zoa2FVM1ZsQzE2OD0iLCJ2ZXJzaW9uIjoiMS4xLjEuMiJ9&lt;/c:data&gt;&lt;/c:encryptedPayment&gt;&lt;c:encryptPaymentDataReply&gt;&lt;c:reasonCode&gt;100&lt;/c:reasonCode&gt;&lt;c:requestDateTime&gt;2019-08-01T10:25:43Z&lt;/c:requestDateTime&gt;&lt;/c:encryptPaymentDataReply&gt;&lt;c:reserved&gt;&lt;ics_message xmlns="urn:schemas-cybersource-com:transaction-data:ics"&gt;&lt;encrypt_payment_data_rcode&gt;1&lt;/encrypt_payment_data_rcode&gt;&lt;ics_return_code&gt;1000000&lt;/ics_return_code&gt;&lt;encrypt_payment_data_rmsg&gt;Request was processed successfully.&lt;/encrypt_payment_data_rmsg&gt;&lt;ics_rcode&gt;1&lt;/ics_rcode&gt;&lt;encrypt_payment_data_return_code&gt;1001000&lt;/encrypt_payment_data_return_code&gt;&lt;ics_rmsg&gt;Request was processed successfully.&lt;/ics_rmsg&gt;&lt;request_id&gt;5646551432976553503004&lt;/request_id&gt;&lt;encrypt_payment_data.reason_code&gt;100&lt;/encrypt_payment_data.reason_code&gt;&lt;encrypt_payment_data_rflag&gt;SOK&lt;/encrypt_payment_data_rflag&gt;&lt;request_token&gt;AhizbwSTMhmkg5ScYGkcEQFRp++q/94CP9hk0ky9GK+AnABMoAny&lt;/request_token&gt;&lt;ics_decision_reason_code&gt;100&lt;/ics_decision_reason_code&gt;&lt;encrypt_payment_data_request_date_time&gt;2019-08-01T102543Z&lt;/encrypt_payment_data_request_date_time&gt;&lt;ics_rflag&gt;SOK&lt;/ics_rflag&gt;&lt;merchant_ref_number&gt;Cyber_iOS&lt;/merchant_ref_number&gt;&lt;encrypted_payment_data&gt;eyJkYXRhIjoiK1ZrdmNpTDhpcStyeEt2RytTMDl3R05MbTFGZzlRcXZpQUE3K3FWOFNvckJqYnp1b0lcL3VzRUs0RWpDZkpxZ1pJejJRbWd3cjBNdGxpVXltS2k0bERNS3lFZmdHZmlOS1wvOWRIMWpMXC9WaCszbk5nOXV6NVp2eG54OVpJbmExNkpBbmtvMmt0OSs0S2lDdW1TYkVBVlVtSkdrRm12ZFhqYlBRUXFzVXNcL0xjS2tlVEkzb1RrSkhFXC9jWVBkRXRHZUs1bVErOW8zbDUySWtUb0xPWkJJcUxmeEtcLzNiNUVRY3FcL2ZZOXZJT3l1aFVnZEc2OXVwXC9oQTJJakpORmY1bm1ZcmQ1bkRkVEdEa1EyeGY3RnNGTDdKRjYxdlNUbHljcHIweHFvS09adDNpQVplM1wvR3htT2p1Unp6XC9oTFhsOTZNRFFaUUc1eXZHZHBXaUNydEhRPT0iLCJoZWFkZXIiOnsiYXBwbGljYXRpb25EYXRhIjoiNDc3NTY5NjQzRDMwMzYzMzYxNjI2MTYzMzYyRDYxMzEzMDMzMkQzNDY2NjY2NTJEMzgzOTYzMzAyRDM4MzczNDY2MzMzNTM1NjI2NTMxNjM2MzNCNDQ2MTc0NjU1NDY5NkQ2NTNEMzIzMDMxMzkyRDMwMzgyRDMwMzE1NDMxMzAzQTMyMzUzQTM0MzMyRTM2MzAzOTM1MzAzNTM4NUEiLCJlcGhlbWVyYWxQdWJsaWNLZXkiOiJNRm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