         XCTAssertNotNil(payer)
         XCTAssertEqual(payer?["id"] as? String, "id")
         XCTAssertEqual(payer?["email"] as? String, "email")
+        
+        XCTAssertEqual(jsonResult["binary_mode"] as? Bool, true)
 
-        self.mpPayment = MPPayment(preferenceId: "prefId", publicKey: "pk_test", paymentMethodId: "pmId", installments: 3, issuerId: "issuerId", tokenId: "123", transactionDetails: self.transactionDetails!, payer: self.payer!)
+        self.mpPayment = MPPayment(preferenceId: "prefId", publicKey: "pk_test", paymentMethodId: "pmId", installments: 3, issuerId: "issuerId", tokenId: "123", transactionDetails: self.transactionDetails!, payer: self.payer!, binaryMode: false)
         jsonResult = self.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!)
        var customerPaymentResult = self.customerPayment!.toJSON()

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

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

        MercadoPagoContext.setPayerAccessToken("payerAccessToken")
        self.blacklabelPayment = BlacklabelPayment(preferenceId: "prefId", publicKey: "pk_test", paymentMethodId: "pmId", installments : 2, issuerId : "310", tokenId : "tokenId", transactionDetails: self.transactionDetails!, payer: self.payer!, binaryMode: false)
        let jsonResult = self.blacklabelPayment!.toJSON()

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