Contributions
PayPal_Shopping_Cart_IPN
This contribution replaces the previous PayPal_Shopping_Cart
contribution enabling the store owner to choose whether aggregate
the total amount of the shopping cart to prior to passing it to
PayPal (as Buy Now option), alternatively they can choose to pass
the shopping carts invidually to PayPal. In either case this
contribution fully supports PayPal's Instant Payment Notification
(IPN) program, which automatically updates the orders table when
it receives a vaild PayPal notification or when if indeed the
customer clicks continue and returns back to the site after making
their purchase.
Expand All / Collapse All
Cleans up look of PayPal selection on Payment Selection screen.
Changes "Paypal" to "Credit Card or PayPal"
Removes the words "Credit Card" from next to the pictures of the credit cards.
Basically makes it look less PayPal and more Credit Card. :-)
To get PWA and PayPay IPN IPN V 3.1.5 I had to modify /catalog/checkout_success.php as shown below (this has one additional change to what I found on the forums). My file is attached.
if (strlen($notify_string) > 0) $notify_string = substr($notify_string, 0, -1);
// tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string));
// Added a check for a Guest checkout and cleared the session - 030411
// PWA Added a check for a Guest checkout and cleared the session - 030411
if (tep_session_is_registered('noaccount')) {
tep_session_destroy();
tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'NONSSL'));
}
else { //end of pwa addition
//begin PayPal_Shopping_Cart_IPN
tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string)); }
} else if ((isset($HTTP_GET_VARS['action']) && $HTTP_GET_VARS['action'] == 'success')) {
PayPal_osC::reset_checkout_cart_session();
}
//end PayPal_Shopping_Cart_IPN
//}
// }
require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT_SUCCESS);
For thoses which are none US or UK and use a special charset (like iso-8859-1 for french an other european people).
If customer have select a product with a title with accent. Then paypal return the following error: "paypal Data does not match input character set or default encoding. For more information, please contact the merchant."
Solution: in <catalog>/includes/modules/payment/paypal.php at line 240 before if(MODULE_PAYMENT_PAYPAL_METHOD == 'Itemized') {
Add:
$paypal_fields .= tep_draw_hidden_field('charset', CHARSET);
In the previous packages catalog/includes/modules/payment/paypal/classes/TransactionDetails/TransactionDetails.php is a folder aand it should be the same fila as
MS2-2.2OverWriteAndRun/includes/modules/payment/paypal/classes/TransactionDetails/TransactionDetails.php
in this file this issue has been solved
[3.1.5]
- Corrected catalog/checkout_process.inc.php in regard to ccgv::update_credit_account
- Corrected a NON-PayPal related vulnerability issue for sites using using PHP < 4.3
3.1.x users can just copy over catalog/includes/modules/payment/paypal/classes/Client/Connector.class.php
I've tried to improve on things, from a coding point of view. Support thread is here:
http://forums.oscommerce.com/index.php?showtopic=116656
[3.1.2]
- Fixed a bodge up made when updating the Client Connector, at some point will
update so that the debug email provides the response accordingly but for now
it will process the IPNs as usual etc..
3.1.1 users can just copy:
catalog/includes/modules/payment/paypal/classes/Client/Connector.class.php
to its respective location.
[3.1.1]
- Added support for Australian Dollars.
- Corrected some logic in regard to CCGV.
- Refund Order Status in the Configuration Guide.
- Added configuration option for the default PayPal currency to use
if the selected transaction currency is not a PayPal supported currency.
[3.1]
- Added specific handling for Refunded Payments as an Order Status
- Should now be compatible with CCGV.
- Update the Client Connector class to use HTTP 1.1 instead of 1.0
3.0x users should be able to copy over the contents of the catalog directory and then reinstall and re-configure in the admin payment modules section.
Exactly the same as the file below, but in zip format. Added useful checkboxs within the installation documentation.
This is a tar.gz version of the v3.0.zip below.
For those upgrading from v2.9 upload over the core catalog contrib directory, perform the mysql alterations found in the osC_Affiliate/README.txt integration notes and either edit your existing catalog/includes/affiliate_checkout_process.php or upload the respective file found in the osC_Affiliate directory.
Paypal IPN version 2.9 with documentation - correct paypal.php file added to package.
the support thread is here: http://forums.oscommerce.com/index.php?showtopic=116656
Matti
v2.8 |
Gregory Baboolal |
11 Sep 2004 |
|
v2.8 has some very minor revisions, mainly on the admin to correctly format negative amounts.
To upgrade from v2.7x delete the catalog/includes/modules/payment/paypal directory and upload the new one accordingly.
Due to file size this archive is in a tar.gz format.
Note: mrb code removed.
v2.7a |
Gregory Baboolal |
9 Sep 2004 |
|
Thanks to Joerg's (taz1) persistance, have resolved a bug that I introduced in version2.6x (based upon a forum comment which was only noticeable if not testing downloadable products).
This is a .zip package with 'no' overwrite and run version.
Note: mrb code removed.
v2.6a |
Gregory Baboolal |
17 Jul 2004 |
|
For completeness this version contains some minor revisions and corrections, see the change logs for a more detailed summary.
v2.6 users can just copy over the contrib files, however catalog/info_paypal.php has now been renamed to popup_paypal.php for STS compatibility. You will need to then unistall and reinstall the PayPal payment module via admin->modules->payment.
An overwrite (MS2-2.2) and run version exists in the misc directory.
Note: mrb code removed.
v2.5a |
Gregory Baboolal |
13 Jul 2004 |
|
Discovered some minor mistakes with v2.5 so have uploaded a corrected set, just overwrite the files included in this set and amend near line 173 in admin/orders.php to use 'include(DIR_FS_CATALOG_MODULES . 'payment/paypal/admin/orders.inc.php');'
Note: mrb code removed.
v2.4 |
Gregory Baboolal |
18 Jun 2004 |
|
*See the comments about upgrading from 2.3*
Support Thread: http://forums.oscommerce.com/index.php?showtopic=95326
v2.3 |
Gregory Baboolal |
28 May 2004 |
|
This version incorporates the order confirmation email bug fix and a few other minor amendments.
To upgrade from v2.2 either copy other the files found in this packge version or perform the revisions specified here (there are two posts):
http://forums.oscommerce.com/index.php?showtopic=72942&view=findpost&p=373293
v2.2 |
Gregory Baboolal |
25 Apr 2004 |
|
-Assuming that the IPN is received in a timely fashion.
Resolved issue with customer indirectly returning to the site
after completing their purchase and thus the contents of that
previous order still remained in their cart upon next login.
-Resolved minor bug with conflicting HEADING_TITLE in the language
file.
-Fixed problem with debug emails not being sent.
-Included a time stamp in the IPN Test Panel.
-------------------------------------------------------------
To upgrade from v2.1 see the FAQs
Completely restructed, orders are now pre-stroed upon customer osC confirmation, once they have paid and the IPN is received they are then notified and inventory levels updated.
Now handles eChecks, and only makes downloads available once an IPN from PayPal has been receieved indicating that the payment is Completed.
This methodology prevents any spoofing of a PayPal osC order transaction and eliminates the race condition between the time in which a customer is Auto-Returned to the site and the IPN being received and processed.
v1.7 |
Gregory |
29 Feb 2004 |
|
Updated v1.6(a) to work properly when storing the sessions in the database, previously the cart would be re-populated, hopefully and seemedly now fixed, roll on MS3.
To UPGRADE just copy over all the paypal related files, existing osC files have not been changed.
In particular for upgrading from v1.6a only the following 3 files are neccessary:
catalog/ipn.php
catalog/includes/classes/paypal/cart.php
catalog/includes/classes/paypal/ipn.php
(but you could always do catalog/includes/modules/payment/paypal.php just for good measure).
To overide the admin/configuration/sessions settings read this post:
http://forums.oscommerce.com/index.php?showtopic=72942&view=findpost&p=315435
Support Thread:
http://forums.oscommerce.com/index.php?showtopic=72942&st=0
v1.6 |
Gregory |
28 Feb 2004 |
|
Updated v1.5a to fix a couple bugs, and general tidy up of code, in particular email text now specified in the relevant language directtory file.
CAVEAT: This contribution does not seem to like having the sessions stored in the database.
To UPGRADE just copy over all the paypal related files, existing osC files have not been changed.
To overide the admin/configuration/sessions settings read this post:
http://forums.oscommerce.com/index.php?showtopic=72942&view=findpost&p=315435
Support Thread:
http://forums.oscommerce.com/index.php?showtopic=72942&st=0
1.5a |
Gregory Baboolal |
21 Feb 2004 |
|
Just a 'very' quick update to include revisions based upon forum feedback since 1.5.
The two files that were updated:
catalog/ipn.php
catalog/includes/modules/payment/paypal.php
Those with v1.5 installed, you can just copy over
catalog/includes/modules/payment/paypal.php
and should be ok.
This update also includes a configurable option if you would like to use PayPal's Auto-Return Feature, BUT this will now mean the IPN creates the order and not when the customer returns to the site.
You can also now specify what page_style you would like to use if you have confiogured one in your PayPal account profile, BUT I have not tested this.
Also something about 'no_shipping', you are supposed to be able to specify whether you would like the customer to be able to specify their PayPal Shipping Address. But I haven't seen it work as such maybe due to my own accout profile settings (requiring a verifed address?).
The support thread is here:
http://forums.oscommerce.com/index.php?showtopic=72942&st=0
v1.4 |
Gregory Baboolal |
5 Jan 2004 |
|
Finally, this contibution is now in what I consider to be in a working state, it will only allow ipn's to be registered that have a 'Completed' payment status, however if the customer actually clicks the last PayPal continue button the transaction is still stored as what would happen in the default osC state.
For the further information and the tests that were performed to ensure it's working capacity please see
http://forums.oscommerce.com/index.php?&showtopic=72075&st=20
(from about page 3 onwards).
v1.3 |
Gregory Baboolal |
4 Jan 2004 |
|
I'm uploading this so that others can use this as opposed to previous versions, if your in a live environment please dont use, because it is not 100% yet.
http://forums.oscommerce.com/index.php?showtopic=72075
Maybe you can help debug, because it is close to completion!
v1.2 |
Gregory Baboolal |
3 Jan 2004 |
|
Changes
=======
[1.2]
-integrated display of the ipn info into osC admin 'orders.php',
this done by including paypal_ipn_order.php when that order has
been made via PayPal
-Deletion of an ipn is performed when its corresponding order is
deleted, hence an update was required in admin/includes/functions
v1.1 |
Gregory Baboolal |
2 Jan 2004 |
|
-Removed threat of global variable issue to set the debug features
-Improved socket connection detection feature to use tcp only if
ssl and curl fails.
-Added a few extra database tables
-Now using the all db tables as intended, i.e language translations.
-Enhanced the admin section to display more detailed information about
the IPN transaction which has basically been added to a replicated
version of the orders page.
-Enabled the test/debug settings to now be set via osC admin
(debug emails are sent to the store owner)
Note: Contributions are used at own risk.