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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

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