Difference between revisions of "IOS API Documentation"

From Cloud9 Payment Processing Gateway Documentation
Jump to: navigation, search
(Download iOS SDK Library & Sample)
(Installation)
Line 7: Line 7:
 
==Installation==
 
==Installation==
 
# Add iPDCLib.framework to your project like other normal framework.
 
# Add iPDCLib.framework to your project like other normal framework.
# Add "Supported external accessory protocols" to your app's info.plist with value "com.ingenico.easypayemv.spm-transaction"  (there is a sample info.plist in the iPDCAPP.zip)
+
# Add "Supported external accessory protocols" to your app's info.plist with value "com.ingenico.easypayemv.spm-transaction"  (there is a sample info.plist in the iPDCAPP.zip/iPDCApp/iPDCApp)
 
# If you are using Bluetooth to control the payment terminal, it is advised to enable background communication. For a BT device, add "Required background" to your app's info.plist with value "App communicates with an accessory" (there is a sample info.plist in the iPDCAPP.zip)
 
# If you are using Bluetooth to control the payment terminal, it is advised to enable background communication. For a BT device, add "Required background" to your app's info.plist with value "App communicates with an accessory" (there is a sample info.plist in the iPDCAPP.zip)
  

Revision as of 01:12, 1 November 2018




Cloud9 Payment Gateway Documentation. This site can also be reached at http://docs.cloud9paymentgateway.com

Sample Test Application Screenshot

Download

iOS SDK Library & Sample Application

Setup

Installation

  1. Add iPDCLib.framework to your project like other normal framework.
  2. Add "Supported external accessory protocols" to your app's info.plist with value "com.ingenico.easypayemv.spm-transaction" (there is a sample info.plist in the iPDCAPP.zip/iPDCApp/iPDCApp)
  3. If you are using Bluetooth to control the payment terminal, it is advised to enable background communication. For a BT device, add "Required background" to your app's info.plist with value "App communicates with an accessory" (there is a sample info.plist in the iPDCAPP.zip)

iPDCManager

iPDCManager (Payment Device Controller Manager) assists communication with Cloud9 Payment Web Device Controller(PWC), which abstracts the control of payment terminals. iPDCManager includes Offline Store & Forward Support.

  1. Implement the protocol IPDCManagerNotify
  2. Call initWithDelegate to instantiate the iPDCManager class.
  3. Call enableRushMode or disableRushMode to enable or disable Offline Store & Forward, respectively
  4. Call postTransactionToUrl to send a JSON request to Cloud-PDC via https protocol.

JSON Protocol Reference

The iOS facilitates payment operations via JSON Key-Value pairs. See JSON API Documentation for full functionality info.

iPassthruManager (DEPRECATED)

Passthru manager is an older version of Payment Device Controller Manager without Store & Forward. It is maintained for backward compatibility. Click on the following link for information on iPassthruManager






From the makers of Cloud9 Payment Processing Gateway and Creditline Credit Card Processing Software