i am trying to integrate a payment gateway as a woocommerce payment gateway plugin. I placed everything as required from woocommerce payment gateway but there is one problem in redirecting. I dont know where i am wrong.
Please have a look on my php code. http://www.lovemagic.co/icicipayment.php.zip
after this code i am getting such error
i think the problem is in function process_payment
Please suggest me the solution.
Thank you! (In advance)
That is a WordPress Request error.
If your plugin has a sort of an API that you needed to POST/GET to/from and WordPress encounter an error it throw this error.
Share you code with us.
Related
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/
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
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/
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.
I'm having trouble adding CashU payment in WooCommerce (version 2.3.6) Wordpress (version 4.1.1)
I've already googled my query, but no luck. I found this guide but I don't know where to put it or where should I start.
I tried hardcoding the payment option but the backend does not allow me to continue because the option does not exist. I'm stuck in add_action and do_action functions, I think if I can find that function I can add an exception for my CashU payment.
My expertise is on cakephp and other php framework. I don't have any experience in using Wordpress or any other platform similar to it, but my boss insisted I should do this work and add the cashu payment.. I don't have other choices but to follow.
Any idea would be much appreciated or any other payment that might be similar to this. Thanks in advance
I just finished making a Woocommerce Payment gateway too.. it took me about 15 hours from scratch.
I started with this guide.
http://www.sitepoint.com/building-a-woocommerce-payment-extension/
and this guide:
http://www.mrova.com/lets-create-a-payment-gateway-plugin-payu-for-woocommerce/
I actually learnt the most from looking through the code from these two professional ones:
https://github.com/Paymium/WooCommerce/blob/master/checkout.php
https://github.com/tubiz/voguepay-woocommerce-payment-gateway/blob/master/voguepay-woocommerce-payment-gateway.php
my entire code for the whole thing ended up being just one file. and just press "activate" in the plugins window of wordpress for your gateway.
/wp-content/plugins/woocommerce-payment-gateway-kiwipay/woocommerce-payment-gateway-kiwipay.php
Try this sdk for cashu https://github.com/AlaaKanaan/payment-getaway-soap-sdk
The SDK include this features:
Standard
Premier
Basic security token
Enhanced security token
Standard StandingOrder
Refund
Merchant Services
install:
composer require alaakanaan/cashu-soap-php-sdk:dev-master
use Cashu\CashuClient;
$client = new CashuClient();
$payment = new \Cashu\lib\model\Payment();
$payment->setAmount(200);
$payment->setCurrency('USD');
$payment->setDisplayText('test payment');
$payment->setLanguage('en');
$payment->setSessionId('11');
$payment->setTxt1('test text 1');
$html=$client->getPremierMethod($payment->getTransactionCode());
return $html;