         XCTAssertNotNil(payer)
         XCTAssertEqual(payer?["id"] as? String, "customerId")
         XCTAssertEqual(payer?["email"] as? String, "email")
+        
+        XCTAssertEqual(customerPaymentResult["binary_mode"] as? Bool, true)
 
-        self.customerPayment = CustomerPayment(preferenceId: "prefId", publicKey: "", paymentMethodId: "pmId", installments : 3, issuerId : "issuerId", tokenId : "123", customerId : "111", transactionDetails: self.transactionDetails!, payer: self.payer!)
+        self.customerPayment = CustomerPayment(preferenceId: "prefId", publicKey: "", paymentMethodId: "pmId", installments : 3, issuerId : "issuerId", tokenId : "123", customerId : "111", transactionDetails: self.transactionDetails!, payer: self.payer!, binaryMode: false)
         customerPaymentResult = self.customerPayment!.toJSON()
 
         XCTAssertEqual(customerPaymentResult["pref_id"] as? String, "prefId")


        self.payer = Payer(_id: "id", email: "email", type: "type", identification: nil, entityType: nil)

        self.mpPayment = MPPayment(preferenceId: "prefId", publicKey: "pk", paymentMethodId: "pmId", transactionDetails: self.transactionDetails!, payer: self.payer!)
        var jsonResult = mpPayment!.toJSON()

        XCTAssertEqual(jsonResult["pref_id"] as? String, "prefId")

        self.transactionDetails = TransactionDetails(financialInstitution: self.financialInstitution)
        self.payer = Payer(_id: "id", email: "email", type: "type", identification: nil, entityType: nil)

        self.customerPayment = CustomerPayment(preferenceId: "prefId", publicKey: "pk_test", paymentMethodId: "pmId", customerId: "customerId", transactionDetails: self.transactionDetails!, payer: self.payer!, binaryMode: true)
        var customerPaymentResult = self.customerPayment!.toJSON()

        XCTAssertEqual(customerPaymentResult["pref_id"] as? String, "prefId")
