Skip to content

Instantly share code, notes, and snippets.

@Yoloabdo
Last active July 29, 2019 21:46
Show Gist options
  • Select an option

  • Save Yoloabdo/fee2d3eeb188f38b0da3eb9a716ebd39 to your computer and use it in GitHub Desktop.

Select an option

Save Yoloabdo/fee2d3eeb188f38b0da3eb9a716ebd39 to your computer and use it in GitHub Desktop.
func proceedPayfort(with order: ScanOrder) {
guard let payFortController = PayFortController(enviroment: KPayFortEnviromentSandBox) else { return }
PayFortCredintials.development(udid: payFortController.getUDID()!).send(PayfortResponse.self) { (results) in
switch results {
case .success(let key):
if let token = key.sdkToken {
self.ShowPayfort(controller: payFortController, with: order, token: token)
}else {
self.showError(sub: key.responseMessage)
}
case .failure(let error):
self.showError(sub: error?.localizedDescription)
}
}
}
@ashokquad
Copy link
Copy Markdown

I am always getting "Invalid merchant identifier"

@ashokquad
Copy link
Copy Markdown

I am unable getting merchant identifier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment