capabilities.work

Lending Enroll Payment Method

A 3-step recipe with Interswitch. We can help you get access.

Recipe · 3 steps

Lending Enroll Payment Method

Tokenize a repayment card, confirm OTP, and debit a loan repayment.

  1. Generate a payment token from the borrower's card. Returns a pendingToken and an OTP challenge flag.
  2. Validate the OTP to confirm the token and obtain a reusable payment method.
  3. Debit a loan repayment using the confirmed payment method.
What you'll need to have ready
  • accessToken: Bearer access token from the Passport OAuth token endpoint.
  • loanId: The loan to debit the repayment from.
  • customerId: Borrower the payment method belongs to.
  • cardPan: Card PAN to tokenize as a repayment method.
  • expiryMonth: Card expiry month.
  • expiryYear: Card expiry year.
  • cvv: Card CVV.
  • otp: OTP supplied by the borrower to confirm the token.
  • amount: Repayment amount in minor currency units.
For your developer

Arazzo workflow interswitch:enroll-and-debit-repayment, 3 operations: generateLendingPaymentToken → validateLendingPaymentTokenOtp → debitLoanRepayment. Specs on APIs.io.