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
Related
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?
I used several plugins which enable to integrate paypal gateway and wordpress.
But I want to find a plugin which enable us to buy and comeback to same page with updated status.
For instance, he cancelled it or successfully paid it so that I can refer that response to that order.
How can I do this?
Easy Paypal Gateway, Wordpress Paypal not works.
I don't want static return url. Must back to same page with its transaction status.
I'm not sure what you're looking for that's special, but the most popular option for Wordpress seems to be WooCommerce, with their PayPal module: https://woocommerce.com/woocommerce-and-paypal/
We are planning to use a payment gateway that does not have a standard woocommerce plugin. Before we did that, I wanted to know is it even possible to do this?
Basically we will have the API from the Payment gateway (in PHP) and will need to make calls to get a payment processed and send a success / failure response to Woocommerce -
Is this even possible? If so, any leads / documentation on how to do this would be highly appreciated.
Please follow below tutorials to create plugin for payment gateway you wish:
https://www.sitepoint.com/building-a-woocommerce-payment-extension/
https://docs.woocommerce.com/document/payment-gateway-api/
I have installed woo-commerce subscriptions on my word-press site, integrating a payment gateway for checkout. The gateway is not supported by woo-commerce directly.
I have the checkout page and the payment processing page with code provided by the gateway to process the online payment.
I need to update the subscription status for the customer once his payment has gone through successfully via the gateway and the confirmation is received back.
Any pointers on how to update the subscription record in woocommerce subscriptions using a php code snippet would be very helpful.
I have searched around and found links on how to add a product in woocommerce, but not much on how to update or add a subscription record using a custom php snippet.
The solution is to create an order, then create a subscription, link the order to the subscription using woocommerce classes. A very helpful link found on SO outlines the steps:
wordpress.stackexchange.com/questions/202873/
The response given by Jeremy Warne worked for my website's logical flow.
I have a wordpress plugin called QNS booking system in which there is only 2 payment methods 1) Paypal 2) Direct Bank Transaction but I like to add another transaction namely PayU which is very popular in India. I am not much into php but my client needs it. So I have added some coding which you can help me through to get an idea and what are the ways which this requirement can be achieved.
Note: payu is available for woo commerce but not for booking systems
PayU Woocommerce Integration
QNS Booking Plugin
I just need only the PayU Payment Gateway others can be optional
Please review the codings and give me a solution guys
Thanks in Advance
To
integrate Payumoney in woocommerce "PayU" provides a simple plugin to
integrate. Install it, enter your credential and that’s all.. Done..
If you want to integrate it in wordpress non e-commerce site, it needs customization. Install PHP kit provided by payumoney.
The
most important you have to pass the values of all required parameter as
mentioned in their documentation. Pass these values with $_POST. That’s
it.
I have done the same thing in Hotel Booking system. Its working fine.If you need any further help, contact me on aryamaae.com