Magento 2 already has a nice standard «Place Order» button.
So I would prefer to use it instead of the submission button, which is autogenerated by the Spryng jsclient library:
Is any possibility to submit the Spryng bank card form programmatically?
Maybe I could rely on the undocumented
I have got an answer from Spryng:
This is something we hear more often. Not everyone likes to implement the JSClient. We are currently completely rewriting our documentation to account for this.
You basically have two choices here.
- You can do the whole thing manually by writing your own AJAX code to receive a credit card token. (POST
expiry_year as parameters. NO API TOKEN HEADER. See your web inspector when submitting the JSclient form for more info). You obviously won’t have the features described above, unless you implement them yourself. PLEASE NOTE that you DO NOT sent the credit card data to your server as POST parameters though.