src/main/php/com-realexpayments-hpp-sdk/domain/HppRequest.php
public function encode( $charSet ) {
		$this->account               = base64_encode( $this->account );
		$this->amount                = base64_encode( $this->amount );
		$this->autoSettleFlag        = base64_encode( $this->autoSettleFlag );
		$this->billingCode           = base64_encode( $this->billingCode );
		$this->billingCountry        = base64_encode( $this->billingCountry );
		$this->cardPaymentButtonText = base64_encode( $this->cardPaymentButtonText );
		$this->cardStorageEnable     = base64_encode( $this->cardStorageEnable );
		$this->commentOne            = base64_encode( $this->commentOne );
		$this->commentTwo            = base64_encode( $this->commentTwo );
		$this->currency              = base64_encode( $this->currency );
		$this->customerNumber        = base64_encode( $this->customerNumber );
		$this->hash                  = base64_encode( $this->hash );
		$this->language              = base64_encode( $this->language );
		$this->merchantId            = base64_encode( $this->merchantId );
		$this->offerSaveCard         = base64_encode( $this->offerSaveCard );
		$this->orderId               = base64_encode( $this->orderId );
		$this->payerExists           = base64_encode( $this->payerExists );
		$this->payerReference        = base64_encode( $this->payerReference );
		$this->paymentReference      = base64_encode( $this->paymentReference );
		$this->productId             = base64_encode( $this->productId );
		$this->returnTss             = base64_encode( $this->returnTss );
		$this->shippingCode          = base64_encode( $this->shippingCode );
		$this->shippingCountry       = base64_encode( $this->shippingCountry );
		$this->timeStamp             = base64_encode( $this->timeStamp );
		$this->variableReference     = base64_encode( $this->variableReference );
		$this->validateCardOnly 	 = base64_encode( $this->validateCardOnly );
		$this->dccEnable         	 = base64_encode( $this->dccEnable );
		$this->hppVersion     		 = base64_encode( $this->hppVersion );
		$this->hppSelectStoredCard    = base64_encode( $this->hppSelectStoredCard );
		$this->postResponse   		 = base64_encode( $this->postResponse );
		$this->postDimensions   	 = base64_encode( $this->postDimensions );

		if ( is_array( $this->supplementaryData ) ) {
			foreach ( $this->supplementaryData as $key => $value ) {
				$this->supplementaryData[ $key ] = base64_encode( $value );
			}
		}




		return $this;
	}
public function encode( $charSet ) {
		$this->account               = base64_encode( $this->account );
		$this->amount                = base64_encode( $this->amount );
		$this->autoSettleFlag        = base64_encode( $this->autoSettleFlag );
		$this->billingCode           = base64_encode( $this->billingCode );
		$this->billingCountry        = base64_encode( $this->billingCountry );
		$this->cardPaymentButtonText = base64_encode( $this->cardPaymentButtonText );
		$this->cardStorageEnable     = base64_encode( $this->cardStorageEnable );
		$this->commentOne            = base64_encode( $this->commentOne );
		$this->commentTwo            = base64_encode( $this->commentTwo );
		$this->currency              = base64_encode( $this->currency );
		$this->customerNumber        = base64_encode( $this->customerNumber );
		$this->hash                  = base64_encode( $this->hash );
		$this->language              = base64_encode( $this->language );
		$this->merchantId            = base64_encode( $this->merchantId );
		$this->offerSaveCard         = base64_encode( $this->offerSaveCard );
		$this->orderId               = base64_encode( $this->orderId );
		$this->payerExists           = base64_encode( $this->payerExists );
		$this->payerReference        = base64_encode( $this->payerReference );
		$this->paymentReference      = base64_encode( $this->paymentReference );
		$this->productId             = base64_encode( $this->productId );
		$this->returnTss             = base64_encode( $this->returnTss );
		$this->shippingCode          = base64_encode( $this->shippingCode );
		$this->shippingCountry       = base64_encode( $this->shippingCountry );
		$this->timeStamp             = base64_encode( $this->timeStamp );
		$this->variableReference     = base64_encode( $this->variableReference );
		$this->validateCardOnly 	 = base64_encode( $this->validateCardOnly );
		$this->dccEnable         	 = base64_encode( $this->dccEnable );
		$this->hppVersion     		 = base64_encode( $this->hppVersion );
		$this->hppSelectStoredCard    = base64_encode( $this->hppSelectStoredCard );
		$this->postResponse   		 = base64_encode( $this->postResponse );
		$this->postDimensions   	 = base64_encode( $this->postDimensions );

		if ( is_array( $this->supplementaryData ) ) {
			foreach ( $this->supplementaryData as $key => $value ) {
				$this->supplementaryData[ $key ] = base64_encode( $value );
			}
		}




		return $this;
	}
Base64 encodes all Hpp Request values.

@param string $charSet

@return HppRequest