最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

php - Integrate Razorpay quick payments plugin with contact form7 plugin

programmeradmin6浏览0评论

I'm using a Contact form7 and Razorpay quick checkout plugin in WordPress.

The shortcode for it is [RZP]. Help me use this in contact form7.

What I have tried is in the functions.php of contact-form-7 plugin, I have inserted this function:

add_filter( 'wpcf7_form_elements', 'mycustom_wpcf7_form_elements' );

function mycustom_wpcf7_form_elements( $form ) {
$form = do_shortcode( $form );

return $form;
}

This gives me ability to add outside shortcodes, but doesn't work for the Razorpay quick payments plugin. Also, it gives the button but doesn't give the pop up for the quick checkout.

I'm using a Contact form7 and Razorpay quick checkout plugin in WordPress.

The shortcode for it is [RZP]. Help me use this in contact form7.

What I have tried is in the functions.php of contact-form-7 plugin, I have inserted this function:

add_filter( 'wpcf7_form_elements', 'mycustom_wpcf7_form_elements' );

function mycustom_wpcf7_form_elements( $form ) {
$form = do_shortcode( $form );

return $form;
}

This gives me ability to add outside shortcodes, but doesn't work for the Razorpay quick payments plugin. Also, it gives the button but doesn't give the pop up for the quick checkout.

Share Improve this question edited Sep 6, 2018 at 23:56 Ashutosh asked Aug 25, 2018 at 6:35 AshutoshAshutosh 1011 silver badge4 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

You need to integrate a a custom field tag into your form so that the cf7 validation process correctly identifies your required field. To do this you need to create a custom field tag using contact form 7 hook functionality, the details of which you can find on the contact form 7 official website. Googling how to add custom form tags in cf7 also points to similar answers in this forum.

发布评论

评论列表(0)

  1. 暂无评论