I've got a custom payment module. I've .HTML checkout button page in this path.


Can i change .phtml instead of .HTML

  • Explain your requirement, we can do our logic in html using ko js. – Ranganathan Nov 13 '19 at 12:40
  • I need the API keys from the payment method in the JS. – Garry Nov 13 '19 at 12:44

No that will not work unless you rebuild the checkout to not use UI components, this is because UI component templates are rendered client side which does not support PHP as it runs on the server and not the client.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.