Skip to main content
The Affiliations Flow allows to register or update information associated with a recipient from Alignet One SDK Android.
Before we start this flow, complete Installation SDK AndroidCheck. Affiliation parameters and generates an Access Token from backend using Authentication.

Integration Flow

1

The SDK

Add PaymeClient, PaymeClientDelegatemodels and environment in your Activity.
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 sessionToken and paymeAffiliationRequest in invokeAffiliationForm.
5

Processes the response

Implement onAffiliationResponse To get the final result of the flow.

Import PaymeSDK

Main parameters

PaymeClient

  • delegate: Activity that implements methods of PaymeClientDelegate.
  • merchantCode: Merchant code delivered by Alignet.
  • PaymeEnvironment.DEVELOPMENT: Test environment.
  • PaymeEnvironment.PRODUCTION: production environment.
  • from: Activities from where the SDK.
  • sessionToken: token generated from backend for this request.
  • paymeAffiliationRequest: with information from Affiliation.

Example of initiation

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

Implement delegate

To complete integration, Activity have to implement PaymeClientDelegate and process Affiliation response.

Next step

Affiliation parameters

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