             if pm.isComplete() {
                 self.paymentData = pm
                 self.reviewAndConfirm = true
+                self.initWithPaymentData = true
             }
         }
         self.paymentResult = paymentResult

        self.paymentOptionSelected = paymentOptionSelected
        if paymentOptionSelected.hasChildren() {
            self.paymentMethodOptions =  paymentOptionSelected.getChildren()
        } else {
            resetInformation()
        }
        

    private var readyToPay : Bool = false
    private var checkoutComplete = false
    internal var reviewAndConfirm = false
    internal var initWithPaymentData = false
    
    init(checkoutPreference : CheckoutPreference, paymentData : PaymentData?, paymentResult: PaymentResult?) {
        self.checkoutPreference = checkoutPreference
