Skip to content
Evgeniy Sinev edited this page Jun 30, 2016 · 1 revision

Migration from 0.1.15 to 0.2.0

Project Libraries

  1. Update repository to fetch new version of BerTlv library
pod repo update
  1. Change PaynetEasyReader version to 0.2.0 in pod file
pod "PaynetEasyReader", :git => '[email protected]:payneteasy/PaynetEasyReader.git', :tag => '0.2.0'
  1. run in your project directory
pod update PaynetEasyReader

Source Code

  1. Add new method to PNEReaderPresenter
- (PNEConfigurationContinuation *)onConfiguration {
    return [[PNEConfigurationContinuation alloc]
            initWithBaseUrl:@"https://paynet-qa.clubber.me/paynet/rki"
              merchantLogin:_payment.merchantLogin
                merchantKey:_payment.merchantKey
         merchantEndPointId:_payment.merchantEndPointId
               merchantName:_payment.merchantName
    ];
}
  1. Change PNEReaderInfo initialization to support Spire

from

    PNEReaderInfo *reader = [PNEReaderInfo infoWithType:PNEReaderType_MIURA];

to

    PNEReaderInfo *reader = [PNEReaderInfo infoWithType:PNEReaderType_MIURA_OR_SPIRE];
  1. Add new accessory protocol to project .plist file.

You shoud add com.thyron to supported protocols. The result property is listed bellow:

        <key>UISupportedExternalAccessoryProtocols</key>
        <array>
                <string>com.miura.shuttle</string>
                <string>com.thyron</string>
        </array>

Migration example

You can see at our Example Project at commit https://github.com/payneteasy/ReaderExample/commit/fc0a63f187cfc430470b72581e3b1ad18c54c59b

Clone this wiki locally