Wordpress paypal gateway integration plugin - php

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/

Related

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

Woocommerce Custom Payment Gateway

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/

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.

Add subscription record to woocommerce

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.

Accepting paypal payments via WordPress plugin

I am currently developing a WordPress plugin that allows users to accept paid guest posts. The scenario goes like this: someone visits the website of the plugin user, creates a guest post which is saved as pending and finally makes a one-time payment via paypal. Once the payment has cleared the post is published on the website.
Basically I need a solution where the website owner can specify just his or her email or merchant ID in the plugin options panel to start accepting payments.
The problem is I'm a little lost as to which paypal api to use and how to get started. There is a lot of information on the paypal website and I'm feeling a bit overwhelmed. Could someone please point me in the right direction?
Thanks
I would recommend using the Express Checkout API for something like that. Specifically, you'll be using SetExpressCheckout, GetExpressCheckoutDetails, and DoExpressCheckoutPayment as explained in that first link.
My PHP class library for PayPal will make those API calls very simple for you, and you could even take a look at my PayPal for WooCommerce plugin to get an idea of how to use the library within a plugin if you need to.

Categories