Nick here from Shopify.
Yes that is possible, however you'll find it expensive and likely not worth your while to do this. You can use the Payments SDK, along with paid developers to add that to your store. Ultimately you will likely find it cheaper to use an already integrated solution, so I'd suggest doing that.
Hope this helps!