Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Paymentwall Card Scanner plugin

Card Scanner Plugin is an optional plugin to add the feature that use camera to scan the credit card, powered by Card.IO.

  1. Add the plugin with Cocoapods with pod 'PWCardScannerPlugin' or manually dragging the libPWCardScannerPlugin.a and it's headers file to your project
  2. If you use manually install, you must also include CardIO static libs and it's headers in the app
  3. Import the library header into your project or via bridging-headers.h if you use Swift
  4. Add it within brick payment method creation:
let brick = PWOptionBrick()
brick.setCardScannerPlugin(PWCardScannerPlugin())
  1. You have to specify the usage of camera and photo library to your info.plist:
<key>NSCameraUsageDescription</key>
<string>To scan credit card</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>To get image</string>