Skip to main content
The Affiliations Flow allows to register or update information associated with a recipient from Alignet One SDK iOS.
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

  • delegate: instance that implements methods of PaymeClientDelegate.
  • merchantCode: Merchant code delivered by Alignet.
  • PaymeEnviroment.development: Test environment.
  • PaymeEnviroment.production: production environment.
  • from: UINavigationController or controller from where the SDK.
  • accessToken: token generated from backend for this request.
  • paymeAffiliationRequest: with information from Affiliation.

Example of initiation

The accessToken should be generated from backend for the application. Do not include credentials or secrets inside the app.

Implement delegate

To complete integration, class should implement PaymeClientDelegate and process Affiliation response.

Next step

Affiliation parameters

Check the complete details of objects sent and received by Affiliation flow.