Before we start this flow, complete Installation SDK iOSCheck. Affiliation parameters and generates an
Access Token from backend using Authentication.Integration Flow
1
The SDK
Add
UIKit and Alignet One at ViewController from where you will start the flow.2
Build the request
Crea
PAYMEAffiliationRequest with Affiliation, Beneficiaries and Configure data.3
PaymeClient Configure
Initiates
PaymeClient with delegate, merchantCode and atmosphere.4
Invoked form
Send
accessToken and paymeAffiliationRequest in invokeAffiliationForm.5
Processes the response
Implement
onAffiliationResponse To get the final result of the flow.Import PaymeSDK
Main parameters
PaymeClient
PaymeClient
delegate: instance that implements methods ofPaymeClientDelegate.merchantCode: Merchant code delivered by Alignet.
SetEnvironment
SetEnvironment
PaymeEnviroment.development: Test environment.PaymeEnviroment.production: production environment.
invokeAffiliationForm
invokeAffiliationForm
from:UINavigationControlleror controller from where the SDK.accessToken: token generated from backend for this request.paymeAffiliationRequest: with information from Affiliation.
Example of initiation
Implement delegate
To complete integration, class should implementPaymeClientDelegate and process Affiliation response.
Next step
Affiliation parameters
Check the complete details of objects sent and received by Affiliation flow.

