A wrapper on paytm internal APIs, reverse-engineered from the paytm app.
- Generate Access token
import 'package:paytm_api/paytm_api.dart' as paytm;
var loginToken = await paytm.login('<phone number>', '<password>');
var oauthToken = await paytm.enterOTP(loginToken, '<otp>');
var accessToken = await paytm.getAccessToken(oauthToken);
- Use Access token for full access to account
print(await paytm.getWalletHistory(accessToken));