Is it possible to integrate custom payment gateway

Hi there,
I am from Srilanka .In my country Paypal,Cyperber ,and Stripe are not available.
I need to integrate custom payment gateway.Is there are any code sample to integrate custom payment gateway.

hello dear friend ,
did you found any solution for your problem ?
i have the same situation

I have integrated 2checkout payment gateway.
2checkout integration using python

Open edx has integrated Stripe payment gateway ,please follow the same steps.
(https://github.com/edx/ecommerce/pull/1147/commits/5724b44216aac9280923e69928484968124b263a)
Its possible to integrate any payment gateway