Broadleaf Microservices
  • v1.0.0-latest-prod

MyFatoorah Payment Services API Client

Client used for interacting with the MyFatoorah payment service related APIs.

initiateSession

Initiate the checkout session with MyFatoorah.

Parameters

Parameter Type Required? Description

options

ClientCallOptions

The options to the HTTP call

Response

The InitiateSessionResponse.

Example

import { MyFatoorahPaymentServicesClient } from '@broadleaf/myfatoorah-payment-services-api';
import { ClientCallOptions } from '@broadleaf/commerce-core';

const options: ClientCallOptions = {
  customerAccessToken
};
const client = new MyFatoorahPaymentServicesClient();
const initiateSessionResponse = await client.initiateSession(options);