JudoPayViewController
public class JudoPayViewController: UIViewController
the JudoPayViewController is the one solution build to guide a user through the journey of entering their card details.
-
the current JudoKit Session
Declaration
Swift
public var judoKitSession: JudoKit -
The amount and currency to process, amount to two decimal places and currency in string
Declaration
Swift
public private (set) var amount: Amount? -
The number (e.g.
123-456
or654321
) identifying the Merchant you wish to payDeclaration
Swift
public private (set) var judoId: String? -
Your reference for this consumer, this payment and an object containing any additional data you wish to tag this payment with. The property name and value are both limited to 50 characters, and the whole object cannot be more than 1024 characters
Declaration
Swift
public private (set) var reference: Reference? -
Card token and Consumer token
Declaration
Swift
public private (set) var paymentToken: PaymentToken? -
The current transaction
Declaration
Swift
public let transaction: Transaction
-
The overridden view object forwarding to a JudoPayView
Declaration
Swift
override public var view: UIView! -
Initializer to start a payment journey
Declaration
Swift
public init(judoId: String, amount: Amount, reference: Reference, transactionType: TransactionType = .Payment, completion: JudoCompletionBlock, currentSession: JudoKit, cardDetails: CardDetails? = nil, paymentToken: PaymentToken? = nil) throwsParameters
judoIdThe judoId of the recipient
amountAn amount and currency for the transaction
referenceA Reference for the transaction
transactionTypeThe type of the transaction
completionCompletion block called when transaction has been finished
currentSessionThe current judo apiSession
cardDetailsAn object containing all card information - default: nil
paymentTokenA payment token if a payment by token is to be made - default: nil
Return Value
a JPayViewController object for presentation on a view stack
-
Designated initializer that will fail if called
Declaration
Swift
convenience required public init?(coder aDecoder: NSCoder)Parameters
aDecoderA decoder
Return Value
will crash if executed
-
viewDidLoad
Declaration
Swift
override public func viewDidLoad() -
viewWillAppear
Declaration
Swift
public override func viewWillAppear(animated: Bool)Parameters
animatedAnimated
-
viewDidAppear
Declaration
Swift
public override func viewDidAppear(animated: Bool)Parameters
animatedAnimated
-
webView delegate method
Declaration
Swift
public func webView(webView: UIWebView, shouldStartLoadWithRequest request: NSURLRequest, navigationType: UIWebViewNavigationType) -> BoolParameters
webViewThe web view
requestThe request that was called
navigationTypeThe navigation Type
Return Value
return whether webView should start loading the request
-
webView delegate method that indicates the webView has finished loading
Declaration
Swift
public func webViewDidFinishLoad(webView: UIWebView)Parameters
webViewThe web view
-
webView delegate method that indicates the webView has failed with an error
Declaration
Swift
public func webView(webView: UIWebView, didFailLoadWithError error: NSError?)Parameters
webViewThe web view
errorThe error
JudoPayViewController Class Reference