Wordpress Contact form 7 Razor pay - wordpress

I have created contact form and integrated with razor pay plugin and everything is working fine however when user cancel the payment or payment fails my form data sends mail to admin where we collect form data. I need some kind of validation to stop email unless payment is done.
I am totally new to this. is there any way i can add validation of payment then send form data to email?

Related

Razorpay quick payment integration with contact form 7

I tried to send the form via E-mail after customer done the successful payment via Razorpay.
I used the Razorpay quick payments plugin for payment gateway and contact form 7, the issue is there will be two buttons for Payment button (Razorpay) and submit button (to send a mail-form submission) and I would like to have a single button as Payment.
When the user done the payment the user filled form should be triggered to send a mail as we configured in contact form 7.
Please give a solution, how can I get it

Send email with wordpress

I am trying to create a cafe shop where people can order some items without registration. They should fill a form about their name, phone, email after that order something. The owner of a cafe needs to receive mail about orders after that deliver users order. My question is - is it possible to do that without registration and do I need woocoomerce for sending email to owner or I can do that without woocommerce, if it is possible then how?
I searched and find ways only with woocommerce.
if you want only send email after the complete form, you can use plugin contact form 7.
This is url to plugin https://wordpress.org/plugins/contact-form-7/
This can be done with wp_mail once the form has been submitted
Any form plugin in WordPress should be able to handle that task. You can, for example, use Caldera Form and then use Caldera's built-in processors.
Caldera Forms comes with 4 processors. One of those being Auto Responder – Sends an email on form submission. The Auto Responder processor would be a good fit for handling your task.
Read more about Caldera form processors

How to perform custom Javascript logic only after Contact Form 7 validates?

I need to send some of the data from my WordPress Contact Form 7 form to an external API. I can do this via Javascript but only want to do so IF and ONLY IF the data validates AND PRIOR TO the mail getting sent. The reason I need to access the external API prior to the email sending is because the API has its own validation that needs to pass and I need to be able to communicate back to the user. So in essence the logic flow needs to be:
Validate Contact Form 7
Validate external API
Send email confirmation
According to their docs, I can perform custom Javascript logic on Contact Form 7 submit OR sent, but not in between which is what I need to do.
From the docs:
http://contactform7.com/additional-settings/
on_sent_ok: "alert('sent ok');"
on_submit: "alert('submit');"
If you set on_sent_ok: followed by a one-line JavaScript code, you can tell the contact form the code that should be performed when the mail is sent successfully. Likewise, with on_submit:, you can tell the code that should be performed when the form submitted regardless of the outcome.

BuddyPress notification generated from Gravity Form submission

I have a website running both gravity forms and buddypress where a gravity form takes information which is sent to the post authors' email. I'd like to also send the contents of the submitted form to the authors messages in buddy press.
Is this possible? How do I configure gravity to send a notification to buddypress as well as the one it sends now?

Preventing Spoofing with Paypal

I have a scenario where i need to have a user checkout through PayPal and then once we receive the payment then we create a membership record in our membership site. The PayPal requires a "return" field when you submit the form button that will take the user back to our page once the order has been successfully processed. On that page is where we actually track the sale and fire a chunk of javascript to track the sale.
So my question is this, how can i make sure that the return page comes from PayPal and is not spoofed by a user in the system. I know there is a way to use the notify_url to have PayPal post back to our system, but in this case i have to run a chunk of javascript. Is there an easy way to do this, or would i have to write some looping/timeout function that checks to see if the notify post has come through?
Im using .net to do the posting to paypal
You need to have PayPal call a script on your site in order to prevent spoofing. Anything that goes through the client/browser is open to the user for modification, so only things that come directly to your server from PayPal are secure.

Resources