Hook to process checkout Woocommerce by QR payment - woocommerce

At the checkout page, if the client clicks Place Order Button, system will display QR code (by popup or a full web page ). Then Client uses App to scan QR to make payment, then system will redirect client to thank you page.
What are hooks I need to implement to do this flow?

Related

Redirecting to paypal checkout page

Am working with imevent theme template(I bought it) to build an event page.It has two registration options.1 register without paypal 2. register with paypal.The first option sends the registration details to an email. Is there a way i can then redirect to paypal to enable client to pay via credit or debit card. That is after sending registration details to a specified email.?

How to get Twilio SMS StatusCallback from Gravity form?

I have installed GravityForm on my Wordpress, and the GravityForm Twilio addon. So I can easily send SMS from a web form and store the entries in my WordPress database.
My problem is that I have no SMS StatusCallback and I need it as a confirmation and attach it to the form entry.
It seems that it's possible (https://www.twilio.com/docs/sms/send-messages#monitor-the-status-of-your-message) but I have no idea if this is big work or just minutes.
Twilio developer evangelist here.
It's possible to monitor the status of an SMS message with Twilio using a status callback URL, however the status callback URL needs to be set by the code that sends the message.
To add this to the Gravity Forms add on you would need to edit the code of the plugin as well as provide a URL for Twilio to make the callback to.
I've not worked with Gravity Forms before and I don't know whether it's possble to edit the add-ons. You might want to check with Gravity Forms support to see if it is possible or to raise a feature request to add status callbacks to the Twilio add-on.

How to manage wordpress plugins outside wp-admin?

I have a client and I made his website using wordpress. I am using the plugin "Ultimate Member" and I want to enable my client to approve User Registrations without ever accessing the wp-admin panel.
You do it by REST API
OR simple create a page where fetch all those pending user listig with joining of table.
then show listing add one button APPROVE or REJECT. On that button click fire post method and change status of that list.

Waiting for Paypal Payment Notification ASP.NET

I am implementing an ASP.NET web app where the user will fill an application that spans over multiple steps/Pages, with previous/Next buttons on each page to navigate back and forth to each step.
On the second step/page, I have a paypal payment button, so the user can pay for the services they selected on the first page.
My requirements is to wait for the user to pay with paypal and get the notification that a payment was received then navigate to the next page automatically. The user should not be able to proceed without payment.
The paypal payment button opens a new window with paypal site where the user makes the payment.
I looked at Paypal IPN (Instant Payment Notification), Paypal can send the notification to a service on the back-end in the web app, but how can I forward the user to the next page once this notification is received, since this service is not tied directly to the page that the user has opened on his browser?
The one way I am thinking to do is to store the payment in some table with the userid and a unique code and have a javascript function with setInterval(checkPayment, 5000); so every 5 seconds, it calls a service to check if there was a payment and forward the user.
Is there any better solution ?
Better solution is to NOT involve IPN in your checkout flow. As stated:
Because IPN is not a real-time service, your checkout flow should not wait for the IPN message before it is allowed to complete.
REF: https://developer.paypal.com/docs/classic/products/instant-payment-notification/
Paypal has an extensive API that handles your flow - e.g
Express Checkout
REST

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