API examples

Fanboy runs on a proprietary patent pending real-time API that with a snippet of code, can be embedded in web pages, web apps, online games, software, infotainment systems and other connected hardware.

Code Example

                                        
                                           /*  Authorize Payment */
                                           @IBAction func authorizePayment(_ sender: AnyObject) {
                                             let paymentViewController = paymentViewController(configuration: paymentConfig, delegate: self)
                                             present(paymentViewController!, animated: true, completion: nil)
                                           }

                                           /* Cancel Payment */
                                           func paymentDidCancel(_ paymentViewController: PaymentViewController) {
                                             print("Payment Cancelled")
                                             resultText = ""
                                             successView.isHidden = true
                                             paymentViewController.dismiss(animated: true, completion: nil)
                                           }