Latest 0.1.9
Homepage https://github.com/satispay/in-store-api-swift-sdk
License Apache-2.0
Platforms ios 8.0, osx 10.10
Authors

Satispay InStore client

This project provides an example iOS application using the Satispay InStore framework to interact with the Satispay in store API.

More information about the API can be retrived in their documentation.

Requirements

  • iOS 8.0+ or macOS 10.10+
  • Swift 3.2/4.0

Example project usage

Clone the repo:

git clone https://github.com/satispay/in-store-api-swift-sdk

From the repo root init submodules:

git submodule update --init --recursive

Open SatispayInStore.xcodeproj and compile.

Installation

Carthage

Add the following line to your Cartfile:

github "Satispay/in-store-api-swift-sdk"

Cocoapods

Add the following lines to your Podfile:

pod 'SatispayInStore'

Copying source files

SatispayInStore can also be used just by coping source files from the SatispayInStore framework target into your Xcode project.

Usage

Environment configuration

SatispayInStore supports the following environments:

  • Production (default)
  • Staging
  • Test

To select a different environment, in your app delegate:

SatispayInStoreConfig.environment = StagingEnvironment()

Latest podspec

{
    "name": "SatispayInStore",
    "version": "0.1.9",
    "summary": "Satispay inStore API framework",
    "description": "You can use our API to access Satispay API endpoints, which can get information on received payments, pending ones and manage proposal of payments, besides many other operations.",
    "homepage": "https://github.com/satispay/in-store-api-swift-sdk",
    "license": {
        "type": "Apache-2.0",
        "file": "LICENSE"
    },
    "authors": {
        "Pierluigi D'Andrea": "[email protected]"
    },
    "source": {
        "git": "https://github.com/satispay/in-store-api-swift-sdk.git",
        "tag": "0.1.9",
        "submodules": true
    },
    "platforms": {
        "ios": "8.0",
        "osx": "10.10"
    },
    "source_files": "SatispayInStore/**/*.swift",
    "preserve_paths": [
        "SatispayInStore/Modules/**/*",
        "OpenSSL/lib-ios/*.a",
        "OpenSSL/lib-macos/*.a"
    ],
    "libraries": [
        "crypto",
        "ssl"
    ],
    "ios": {
        "vendored_libraries": [
            "OpenSSL/lib-ios/libcrypto.a",
            "OpenSSL/lib-ios/libssl.a"
        ],
        "pod_target_xcconfig": {
            "SWIFT_INCLUDE_PATHS": "$(PODS_ROOT)/SatispayInStore/SatispayInStore/Modules/iOS/**",
            "LIBRARY_SEARCH_PATHS": "$(PODS_ROOT)/SatispayInStore/OpenSSL/lib-ios",
            "SWIFT_VERSION": "4.0"
        }
    },
    "osx": {
        "vendored_libraries": [
            "OpenSSL/lib-macos/libcrypto.a",
            "OpenSSL/lib-macos/libssl.a"
        ],
        "pod_target_xcconfig": {
            "SWIFT_INCLUDE_PATHS": "$(PODS_ROOT)/SatispayInStore/SatispayInStore/Modules/macOS/**",
            "LIBRARY_SEARCH_PATHS": "$(PODS_ROOT)/SatispayInStore/OpenSSL/lib-macos",
            "SWIFT_VERSION": "4.0"
        }
    },
    "prepare_command": "BASE_PATH="${PWD}"nOPENSSL_PATH="$BASE_PATH/OpenSSL"nMODULE_PATH_IOS="$BASE_PATH/SatispayInStore/Modules/iOS/OpenSSL"nMODULE_PATH_MACOS="$BASE_PATH/SatispayInStore/Modules/macOS/OpenSSL"nncd "$OPENSSL_PATH"nnif [ -f lib-ios/libssl.a ] && [ -f lib-ios/libcrypto.a ] && [ -f lib-macos/libssl.a ] && [ -f lib-macos/libcrypto.a ] && [ -d "$MODULE_PATH_IOS/openssl" ] && [ -d "$MODULE_PATH_MACOS/openssl" ]; thenn    exit 0nfinn./build.shnnmkdir -p $MODULE_PATH_IOSnmkdir -p $MODULE_PATH_MACOSncp -R "$OPENSSL_PATH/include-ios/openssl" "$MODULE_PATH_IOS/"ncp -R "$OPENSSL_PATH/include-macos/openssl" "$MODULE_PATH_MACOS/""
}

Pin It on Pinterest

Share This