         }
     }
     
+    func tryConvertStringtoDictionary(String: String) {
+        do {
+            let JSON = try convertStringToDictionary(String)
+            useJSONConfig(json: JSON!)
+        } catch {
+            print("Error")
+        }
+    }
+    
     func createCheckoutPreference(payerEmail: String, site: String, itemsDictArray: [NSDictionary]) -> CheckoutPreference {
         let payer = Payer(email: payerEmail)
         var items : [Item] = []


    /// Wallet Checkout
    func startWalletCheckout() {
        loadCheckout(showRyC: false, setPaymentDataCallback: true)
    }

    func startWalletReviewAndConfirm() {
        loadCheckout(paymentData: self.paymentData, setPaymentDataConfirmCallback: true)
    }

    func startWalletCongrats() {

    func startCheckout() {
        if !String.isNullOrEmpty(self.configJSON) {
            
            tryConvertStringtoDictionary(String: self.configJSON)
            loadCheckout()
        } else {
            loadCheckout()
