Jump to content
  • 0
Nayana Chandran

How to generate payment form in embedded payment option-prestashop v1.7




      I tried to add a credit card form in my payment module, And my code is below.


public function getEmbeddedPaymentOption($data, $embeddedOption)
        $embeddedOption->setCallToActionText($this->l($data['payment_name'], array(),'Modules.Mymodule.admin'))
        return $embeddedOption;
public function generatePaymentForm($payment)
            'payment' => $payment,
        return $this->context->smarty->fetch('module:mymodule/views/templates/front/payment_form.tpl');
How the setForm will execute, I didn't show any form in payment page. :(  If any one can please share.
I enabled debug mode, and there is no more errors
Thanks in advance
Edited by Nayana Chandran (see edit history)

Share this post

Link to post
Share on other sites

2 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More