Connector Checklist

Once you have followed all the steps for adding a payment connector, use the checklist below to make sure the necessary functions are supported.

๐Ÿ‘

Check our Reference Materials for more details about a payment connector.

๐Ÿ“˜

Important:

Each payment in Cleeng should have externalPaymentId (the same as the payment identifier from an external payment gateway system).

PaymentId identifies transactions in a payment gateway and Cleeng. If a different payment Id is used for authorization and a different one for capture in a payment gateway, it must be updated in Cleeng. This update is important for example for a refund to be properly handled.

Please make sure that the following functions are supported:

If you want to offer "Update payment details" feature (optional, but recommended), you need to implement the functions of Update payment details.

Additionally, for refunds to work, you also need to subscribe to webhook - see the Refund Payment section.

1. Subscription Initial Purchase:

2. Recurring Billing

2.1) Recurring Billing: Authorise + Capture Steps
See here for more information on authorisation and capture steps of the recurring billing process used for subscriptions.

Authorise

Capture

AgentActionCleeng Payment API
ConnectorFetch payment based on Webhook subscriptionReadyForPaymentCapture
ConnectorCapture in payment gateway
ConnectorUpdate payment in Cleeng (if capture successful)PATCH /3.1/payments (status 'captured')
ConnectorCreate rejected payment in Cleeng (if capture failed)PATCH /3.1/payments (status 'rejected')

2.2) Recurring Billing: Capture Only

3. Termination

4. Update Payment Details

Note:
"Update Payment Details" process can involve one connector (e.g. just a change of a card without changing payment gateway) or it can involve two connectors (if the change of payment gateway is involved, e.g. from Adyen to PayPal).

No matter what the use case, in this documentation we refer to the old payment details connector and the new payment details connector:

  • If there is no change of payment gateway - both will refer to the same connector.
  • If a new payment gateway is involved, then two connectors are necessary.

5. Refund Payment

Additonally, for refunds to work, you also need to subscribe to refundPayment webhhook.

Up Next

Once your connector is ready, please make sure that you display your offer with available payment methods (see Offer Display).