View Categories

API Flow for Subscription Payment (Mandates)

Sign up for a Payex Account #

Ensure that you already have a Payex account. You may register here or checkout our Activation page, if otherwise. Once you’ve registered and provided your business documents, your account will be automatically enabled for integration testing access. 

Create a mandate #

If all inputs validation and general inputs handling are valid, you’ll receive a SUCCESS response from Payex

What to take note #

  • You only have to provide one callback url and we will send different responses to it
  • txn_type’ is used to differentiate between different callback responses. List of available ‘txn_type’ for callback as below:
    • Mandate – Authorization
    • Auto Debit – Authorization
    • Mandate – Approval
    • Malaysian Debit Card
    • Malaysian Credit Card
    • Foreign Card
  • Direct Debit mandate: There’s two callbacks, first callback is for customer authorization and second callback is for bank approval
    • If the customer did not click the payment link, status will be “Pending
    • If the customer clicks the payment link and fills out relevant information and click “Proceed” customer will receive email notification on authorisation.
    • Upon successful collection of 1st payment, customer will receive another email notification.
  • Auto Debit mandate: There’s only one callback for authorization and approval at the same time.
    • If the customer clicks the payment link, the 1st instalment will be collected on the effective date.
    • If you wish to instantly charge customer the 1st instalment during authorisation, include the ‘initial_amount’ parameter.
  • There will be a one-time charge of RM 1 (via bank account) for the purpose of account verification and it takes 1 working day to be approved by RHB
  • There will be no charge (via local / foreign cards) for the purpose of account verification and it is instant approval by Visa/Mastercard
  • Once it has been approved by RHB or Visa/Mastercard then you can start collecting payment from your customers.

What to do next (for success case) #

  1. Send mandate link to your customer for authorization
  2. Customer fills out relevant information and submits (Day t)
  3. Wait for Mandate Authorization Callback (Day t)

Direct Debit #

Callback for customer authorization

-> Wait for Mandate Approval Callback (Day t + 1 – Next working day after submission)

Callback for bank approval

-> Create Collection Settings for next collection at Day t + 2

Auto Debit #

  • If ‘initial_amount‘ > RM1.00

-> System created Collection Settings for you automatically at Day t

  • If ‘initial_amount‘ < RM1.00
-> Create Collection Settings for next collection at Day t

Scroll to Top