Same as this question which got an accepted answer, but the only answer doesn't cover plan B - what if Shopify rejects to support the integration submitted to ActiveMerchant?
I'm tagging javascript here because I have a feeling that the solution probably entails coding the entire thing in client-side javascript code assuming this can be done safely