How to create a custom Dynamic QR Code woocommerce payment gateway? - php

I would like to know how I can create a Dynamic QR Code woocommerce payment gateway plugin. Customers will be able to make payment using a Mobile App by scanning the code generated on the checkout page. It uses mVISA.
I have both Request and Response code provided the bank including carback urls. How can I combine the them into a plugin?

PayPal does not have QR code integration process. You have to turn to technical support of Woocommerce for the further checking.

Related

How to handle payments with Wordpress WooCommerce Mollie REST API

I am wondering how to implement payments in Flutter(or any other framework, like react or angular).
There is an existing website built in Wordpress and WooCommerce. The following plugin is used:
WooCommerce
Mollie payments for woocommerce (https://nl.wordpress.org/plugins/mollie-payments-for-woocommerce/)
How can I handle a payment, that matches the order id and moves the user to the payment banking screen?
When a user presses the "Checkout" button in the frontend, do I need to do the following?
Call a custom function that was made in Wordpress PHP (wp-json/payment/create)
Call the woocommerce endpoint create order in that PHP function. https://woocommerce.github.io/woocommerce-rest-api-docs/#create-an-order.
And then call the mollie endpoint create payment in that PHP function? https://docs.mollie.com/reference/v2/payments-api/create-payment. Put order id in parameters that I received from the woocommerce endpoint.
Then return the redirect link to the react or flutter app
How can I know that the payment is succesful? Then I can call 'update order' and set the status from 'waiting for payment' to 'processing order'. (So Wordpress admin can see that the customer paid.
I could not find a tutorial on this topic and therefore I decided to make this question public. I only saw wordpress tutorials... So I hope this question can help a lot of people.
How far are you with this? Because I don't know if using the regular mollie plugin is going to help out.
Mollie has documentation on how to also implement their api on JS framework.
The question you need to answer first is:
Are you able to create an order using the WooCommerce API. So can you order a product, without actually using a payment gateway (the add to cart to checkout flow)?
Have you tried using the Mollie nodejs version?
A tip:
Any payment gateway(stripe, mollie etc) add the order_id as meta_data on a order. So after going through the payment flow the order has to be created, with the right payment_id + the status (failed, pending blabla).
Edit:
Another option could be to create custom endpoints which loads something like this: https://github.com/mollie/mollie-api-php
So maybe something like:
create the order using the woocommerce api
after creating the order, return to the js app and then trigger another endpoint
this endpoint would load the custom Mollie api
I hope this makes sense?

how to call eway payment gateway form on different location

I have install woocommerce in my wordpress application and also install eway payment gateway plugin. it is showing perfect on my default checkout page.
But i want to call it on different location ( i have donation page in my application and want to use eway there as well) as I am new to wordpress got stuck very badly.
please give me suggestion whatever possible and ask me for code if you want any.
Basically, you can't use eway payment gateway without e-commerce plugin. Which means you need product :), and you can't consider a donation as a product at all. I am sure that you have installed the plugin for Woocommerce only. To integrate eway on donation page you need to use eway API. here is the reference for the same.
https://www.eway.com.au/developers/api

Paypal Third Party Shopping Cart Retrieve Information

Hi I'm creating a third party shopping cart using paypal for my client and i need retrieve some information after the payment is confirmed. I need to send an email to the seller with the product information like color, font-family, font-size, size of the product. But i have no idea of how can i retrieve the payment confirm information from paypal and then send to the seller this email.
Does someone knows how or just could give me a hint?
Thanks.
If you're not on wordpress, you can still use IPN data: have a read here: https://developer.paypal.com/webapps/developer/docs/classic/products/instant-payment-notification/
Note that Paypal's example code is not very good, and also that their IPN simulator is not currently working properly: Paypal IPN continually returns invalid from Sandbox
The PayPal IPN for WordPress plugin will make that very simple for you.
Just install the plugin and create a basic hook in your theme's functions.php file (or create a simple custom plugin file). The plugin has hooks so you can trigger based on any IPN, or based on the IPN transaction type or payment status.
Here is a link to the general dev guide and another link specific to the hooks available.
You could have the IPN solution working and sending an email within minutes, so then it's just a matter of building your email body the way you want.

database updation after google checkout payment

I am a new developer in php. In a website, I need to implement "Google checkout" payment method. My client give a script with src. I added that script into my website. I got a Google checkout page.
But I don't know how to customize the style of that page
and how to update my database, if the buyer pay the amount using Google checkout. Is there any option like PayPal notify_url? If yes, how to set up such url?
You can get order state notifications using the Checkout Notification API. Start with the doc below:
http://support.google.com/checkout/sell/bin/answer.py?hl=en&answer=134463
then read the full documentation for details:
https://developers.google.com/checkout/developer/Google_Checkout_XML_API_Notification_API

Digital Content and Google Checkout

I have integrated Google Checkout to my payment system with the use of php code provided on the Google Official site.
Now I need to add Digital Content to the Cart. I have checked the Cart and couldn't find any direct function or example for achieving this.
Please suggest the method to add Digital Content to Google Checkout
The doc below lists several options to include digital delivery in Checkout API Requests:
http://code.google.com/apis/checkout/developer/Google_Checkout_Digital_Delivery.html

Categories