For standard:
-Pay Pal IPN (would need to be integrated)
-Default CALL BACK (add another switch)
PP_PRO:
DoDirectPayment API Response (already installed to get Transaction ID #
IPN (would need to be integrated)
-Pay Pal IPN (would need to be integrated)
-Default CALL BACK (add another switch)
PP_PRO:
DoDirectPayment API Response (already installed to get Transaction ID #
IPN (would need to be integrated)
Last edited by Avvici on Tue May 08, 2012 6:03 am, edited 1 time in total.
Open catalog/controller/payment/pp_standard.php
Find
Man, you have CODES GALORE HERE (in Payment Information Variables)https://cms.paypal.com/us/cgi-bin/?cmd= ... TVariables
Below the first SWITCH ,just use another SWITCH for other variables like this:
Now just use the variable $payer status to your delight. I haven't looked at all of the variables but I assume TRANSACTION ID is in there somewhere.
Find
Code: Select all
switch($this->request->post['payment_status']) {
Below the first SWITCH ,just use another SWITCH for other variables like this:
Code: Select all
switch($this->request->post['payer_status']) {
case 'verified':
$payer_status= "Verified";
break;
}
(1.4.x and 1.5.x)
1. EDIT: catalog/controller/payment/pp_standard.php
2. FIND:
3. REPLACE WITH:
That will store everything from paypal's IPN message to your order history log
In fact, it is a universal solution. This works the same with EVERY redirect style payment method, not just paypal. Any payment that uses http callback. Server-to-Server based payments would need to be adjusted for the response variable and format over curl.
1. EDIT: catalog/controller/payment/pp_standard.php
2. FIND:
Code: Select all
$this->model_checkout_order->update($order_id, $order_status_id);
Code: Select all
$this->model_checkout_order->update($order_id, $order_status_id, print_r($_REQUEST, 1));
In fact, it is a universal solution. This works the same with EVERY redirect style payment method, not just paypal. Any payment that uses http callback. Server-to-Server based payments would need to be adjusted for the response variable and format over curl.
Attachments
logpaymentmsg.png (31.82 KiB) Viewed 8355 times
Qphoria is there a way to make the response show up without having to interact with paypal? I have it on authorization mode and it seems to only give me comments when I void/interact with the order in paypal
oh.
For the non-coders among us, is there a quick patch for this?
All I want is for a PayPal screen to come up in my frame that asks for the user to enter their PayPal user name and password when they checkout.
-OR-
instead of going to http://www.paypal.com/cgi-bin/webscr can I get the Confirm Order button to open a new window automatically?
Thank you for any help you can provide on this matter.
All I want is for a PayPal screen to come up in my frame that asks for the user to enter their PayPal user name and password when they checkout.
-OR-
instead of going to http://www.paypal.com/cgi-bin/webscr can I get the Confirm Order button to open a new window automatically?
Thank you for any help you can provide on this matter.
THIS IS THE QUICK PATHQphoria wrote:(1.4.x and 1.5.x)
1. EDIT: catalog/controller/payment/pp_standard.php
2. FIND:3. REPLACE WITH:Code: Select all
$this->model_checkout_order->update($order_id, $order_status_id);
That will store everything from paypal's IPN message to your order history logCode: Select all
$this->model_checkout_order->update($order_id, $order_status_id, print_r($_REQUEST, 1));
In fact, it is a universal solution. This works the same with EVERY redirect style payment method, not just paypal. Any payment that uses http callback. Server-to-Server based payments would need to be adjusted for the response variable and format over curl.
Paypal Standard does not allow iframe.. their page has framebuster scripts in place to prevent this.mdastous wrote:For the non-coders among us, is there a quick patch for this?
All I want is for a PayPal screen to come up in my frame that asks for the user to enter their PayPal user name and password when they checkout.
-OR-
instead of going to http://www.paypal.com/cgi-bin/webscr can I get the Confirm Order button to open a new window automatically?
Thank you for any help you can provide on this matter.
What address to enter in PayPal as the IPN URL?
A Trusted Wholesale Dropshipper
Web Hosting Under $ 5.00 Month! FREE Shopping Carts!
25,000+ Real Wholesale & Dropship Sources!
First may I ask what data you are wanting to receive? If you are using Pay Pal Standard there is quite a bit of data already coming back in the repose. It shows up in the Order History if you look. If you are using Pro then you get the Transaction ID only.
If this is not sufficient for you then you need set up the IPN yourself because it's not hard coded into Open Cart.
It would be something like:
You'll need to extend the core and set up your public function index()
If you wish to use a standard IPN FILE that is outside of the Open Cart Class but still communicates with the Open Cart database check out the attached:
If this is not sufficient for you then you need set up the IPN yourself because it's not hard coded into Open Cart.
It would be something like:
Code: Select all
http://www.yourdomain.com/catalog/controller/payment/ipn
If you wish to use a standard IPN FILE that is outside of the Open Cart Class but still communicates with the Open Cart database check out the attached:
Thanks for the reply.
To be honest, I set it up years ago for an early version of CubeCart. I'd actually never paid much attention to it, but today I got a message from PayPal saying it was no longer an active URL, so I needed to do something about it.
From the sound of things, I can just clear it and OpenCart will operate with no problem. I'm happy with what I get now for OC, and it doesn't sound like I need it, so I'll try removing it.
Thanks, again.
To be honest, I set it up years ago for an early version of CubeCart. I'd actually never paid much attention to it, but today I got a message from PayPal saying it was no longer an active URL, so I needed to do something about it.
From the sound of things, I can just clear it and OpenCart will operate with no problem. I'm happy with what I get now for OC, and it doesn't sound like I need it, so I'll try removing it.
Thanks, again.
A Trusted Wholesale Dropshipper
Web Hosting Under $ 5.00 Month! FREE Shopping Carts!
25,000+ Real Wholesale & Dropship Sources!
Just clear it. The only reason you are going to use IPN is for something like Recurring Payments or Subscription. Open Cart does a good job getting the basic info on the return that will be found in Order History.
OK, cool.
CubeCart sucked at it. Suspended carts that got to PayPal before they quit would hang up everything for days. Even with IPN and a couple of mods.
CubeCart sucked at it. Suspended carts that got to PayPal before they quit would hang up everything for days. Even with IPN and a couple of mods.
Last edited by peteVA on Sat Sep 22, 2012 10:46 pm, edited 1 time in total.
A Trusted Wholesale Dropshipper
Web Hosting Under $ 5.00 Month! FREE Shopping Carts!
25,000+ Real Wholesale & Dropship Sources!
Who is online
Users browsing this forum: No registered users and 336 guests