Latest 0.1.3
Homepage https://github.com/satispay/in-store-api-swift-sdk
License Apache-2.0
Platforms ios 8.0
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+
  • Swift 3.2/4.0

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.3",
    "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.3",
        "submodules": true
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "SatispayInStore/**/*.swift",
    "preserve_paths": [
        "SatispayInStore/Modules/**/*",
        "OpenSSL/lib/*.a"
    ],
    "libraries": [
        "crypto",
        "ssl"
    ],
    "vendored_libraries": [
        "OpenSSL/lib/libcrypto.a",
        "OpenSSL/lib/libssl.a"
    ],
    "pod_target_xcconfig": {
        "SWIFT_INCLUDE_PATHS": "$(PODS_ROOT)/SatispayInStore/SatispayInStore/Modules/iOS/**",
        "LIBRARY_SEARCH_PATHS": "$(PODS_ROOT)/SatispayInStore/OpenSSL/lib",
        "SWIFT_VERSION": "4.0"
    },
    "prepare_command": "BASE_PATH="${PWD}"nOPENSSL_PATH="$BASE_PATH/OpenSSL"nMODULE_PATH="$BASE_PATH/SatispayInStore/Modules/iOS/OpenSSL"nncd "$OPENSSL_PATH"nnif [ -f lib/libssl.a ] && [ -f lib/libcrypto.a ] && [ -d "$MODULE_PATH/openssl" ]; thenn    exit 0nfinnOPTIONS="no-ssl2 no-ssl3 no-comp no-async no-psk no-srp no-dtls no-dtls1"nOPTIONS+=" no-ec no-ec2m no-engine no-hw no-err"nOPTIONS+=" no-bf no-blake2 no-camellia no-cast no-chacha no-cmac no-ecdh no-ecdsa no-idea no-md4 no-mdc2 no-ocb no-poly1305 no-rc2 no-rc4 no-rmd160 no-scrpyt no-seed no-siphash no-sm3 no-sm4 no-whirlpool"nOPTIONS+=" -Wno-error=ignored-optimization-argument"nnexport CONFIG_OPTIONS="$OPTIONS"nn./build-libssl.sh --archs="x86_64 i386 arm64 armv7" --version="1.0.2m"nnmkdir -p $MODULE_PATHncp -R "$OPENSSL_PATH/include/openssl" "$MODULE_PATH/""
}

Pin It on Pinterest

Share This