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
PaymeClient
delegate: Activity that implements methods ofPaymeClientDelegate.merchantCode: Merchant code delivered by Alignet.
SetEnvironment
SetEnvironment
PaymeEnvironment.DEVELOPMENT: Test environment.PaymeEnvironment.PRODUCTION: production environment.
invokeAffiliationForm
invokeAffiliationForm
from: Activities from where the SDK.sessionToken: token generated from backend for this request.paymeAffiliationRequest: with information from Affiliation.
Example of initiation
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.

