Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 17184

creating a bridge for react native through IOS and getting an error

$
0
0

calling below function and getting error "Warning: Attempt to present <DigitalPayments_PaymentForm_SDK.WebViewController: 0x7f8ac4769540> on <PaymentModule: 0x7f8ac470d7d0> whose view is not in the window hierarchy!"

overridefunc loadView() {DispatchQueue.main.async(execute: {

  DPMakePayment         .initialize(sessionKey: "xxxxxx-xxxx-xxxx-xxxxxxxxxxxx", url: "https://stgportalone.processonepayments.com/Api")         .makePayment(request:             MakePaymentRequest(                 paymentCategory: PaymentCategory.eCheck,                 feeContext: FeeContext.paymentWithFee,                 amountContext: AmountContext.selectOrEnterAmount,                 minAmountDue: 50,                 accountBalance: 100,                 policyHolderName: "John Smith",                 clientReferenceData1: "POL330701-02"             ))         .startWebView( hostViewController: self)   })

}


Viewing all articles
Browse latest Browse all 17184

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>