SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 22, 2012, 03:40:04 pm

Login with username, password and session length
Members
Total Members: 10066
Latest: khoeidong
Stats
Total Posts: 28682
Total Topics: 4975
Online Today: 87
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 66
Total: 66
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 2 Guests are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Ironing Out the Details  (Read 6126 times)
virtualdave
Newbie
*
Offline Offline

Posts: 18



View Profile WWW
« on: December 14, 2007, 12:12:59 am »

Well things are progressing. I have my products in place and priced. I tested with my own CC last night and again today after doing some research here on SMF Hacks Forum. Tonight I had my first customer. The payments are being credited to my paypal account and transaction emails are being sent to the customer and my self. However there are some issues. There are several things which seem to be related I will detail them first. The inventory is not being reduced/updated after a transaction, there are no details in the transactions que in the back end of the store. There are no items waiting to be shipped. The My Orders area remains empty even though I made two orders, and after a transaction the shopping cart is not being cleared. That is what I have noticed so far on the forum/store side.

Now for the paypal/server side. I did some research and these issues seem to have popped up before. I'm hoping that I won't have to uninstall and reinstall the store so with that in mind here goes. The quantity field is not getting passed to PayPal if someone orders 2 the price is getting doubled and PayPal calls it one for twice as much. If someone orders two widgets we should see two widgets. I am getting these emails from my server. They start with something like this.
IPN Amount change detected. The amount sent (XX.XX)  did not match the amount due. I gather that this is due to the fact that the server sends out an amount and PayPal is adding tax and sending it back as a different amount than went out and sending up a red flag to the server. This same message also has the customers address and some other info.If you would like a redacted copy let me know and I can PM you one. Sounds like a real mess but every thing seems to be intertwined so hopefully you have the answer to some of this.
thanks again

I'm running SMF1.1.4 with TP version 9.8 and SMFHacks Store 1.1.7
vd
« Last Edit: December 15, 2007, 08:44:09 am by virtualdave » Logged

SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9676


View Profile
« Reply #1 on: December 15, 2007, 09:04:54 am »

This sounds like you are setting up a tax on paypal's side.
What happens is the store checks for the total payment that was sent to paypal. But paypal is sending back a different total since it is added tax.

Which version of the store are you using?

An option is to remove the security checks for payment amount changes.

Open storeipn.php
Find
Code:
if ($securehash != md5($mc_gross . $modSettings['store_hash'] ))
{
//$hash2 = md5($mc_gross . $shipping . $modSettings['store_hash'] );
mail($notify_email, "Store IPN AMOUNT CHANGE", "IPN Amount change detected. The amount sent ($mc_gross)  did not match the amount due. \n $res\n $req");

$payment_status = 'IPN Amount Change';
//die('The amount you sent in your payment did not match the amount due');
}
Change to
Code:
/*
if ($securehash != md5($mc_gross . $modSettings['store_hash'] ))
{
//$hash2 = md5($mc_gross . $shipping . $modSettings['store_hash'] );
mail($notify_email, "Store IPN AMOUNT CHANGE", "IPN Amount change detected. The amount sent ($mc_gross)  did not match the amount due. \n $res\n $req");

$payment_status = 'IPN Amount Change';
//die('The amount you sent in your payment did not match the amount due');
}
*/

And one more place
Find
Code:
if ($securehash != md5($mc_gross . $modSettings['store_hash'] ))
{
//$hash2 = md5($mc_gross . $shipping . $modSettings['store_hash'] );
mail($notify_email, "Store IPN AMOUNT CHANGE", "IPN Amount change detected. The amount sent ($mc_gross)  did not match the amount due. \n $res\n $req");
$payment_status = 'IPN Amount Change';
die('The amount you sent in your payment did not match the amount due');
}
Change to
Code:
/*
if ($securehash != md5($mc_gross . $modSettings['store_hash'] ))
{
//$hash2 = md5($mc_gross . $shipping . $modSettings['store_hash'] );
mail($notify_email, "Store IPN AMOUNT CHANGE", "IPN Amount change detected. The amount sent ($mc_gross)  did not match the amount due. \n $res\n $req");
$payment_status = 'IPN Amount Change';
die('The amount you sent in your payment did not match the amount due');
}
*/

Logged
virtualdave
Newbie
*
Offline Offline

Posts: 18



View Profile WWW
« Reply #2 on: December 15, 2007, 09:36:20 am »

I'm running SMF1.1.4 with TP version 9.8 and SMFHacks Store 1.1.7

I am doing the tax on the Pay Pal side. Is there another way?
vd
Logged

SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9676


View Profile
« Reply #3 on: December 15, 2007, 03:43:28 pm »

I would install the latest version from
http://www.smfhacks.com/index.php/topic,1322.0.html
Then make the changes above to the storeipn.php file.

Currently not built in for tax to be computed but that is something I will look into adding.
Logged
virtualdave
Newbie
*
Offline Offline

Posts: 18



View Profile WWW
« Reply #4 on: December 17, 2007, 07:01:10 pm »

Does that require an uninstall? The store mod does not even show up in my admin/packages control, how would I uninstall it? I did the edits that you provided above and that took care of the IPN Amount change detected. notices but none of the other issues I detailed above. I really want this to work. I need some answers.
vd
Logged

Sweetwater
Community Suite Customer
Jr. Member
******
Offline Offline

Posts: 95



View Profile WWW
« Reply #5 on: January 20, 2008, 04:25:05 am »

I would install the latest version from
http://www.smfhacks.com/index.php/topic,1322.0.html
Then make the changes above to the storeipn.php file.

Currently not built in for tax to be computed but that is something I will look into adding.

Hi SMF,
I've noted the same problems as virtualdave. Have successfully done as described above to fix. Am still getting a single quantity on multiple purchases however the overall total price is correct.
Any tips on proceeding further to correct the quantity info sent to Paypal?


Virtualdave,
I successfully un-installed 1.1.7.1 without a problem & 1.2betaH version installed without a problem.
Can you not see it by going to Admin> Packages> and scrolling down to SMF Store ?

Cheers,

sweetwater
Logged

SMF Store
SMF Classifieds
SMF Gallery Pro + Video Add On

        Sweetwater Fishing Australia
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9676


View Profile
« Reply #6 on: January 20, 2008, 08:59:51 am »

If this is for a shopping cart order. The total is just sent to PayPal. The qty and other order information about each shopping cart item is stored in the transaction log inside the store.
Logged
virtualdave
Newbie
*
Offline Offline

Posts: 18



View Profile WWW
« Reply #7 on: January 20, 2008, 09:30:37 am »

Unfortunately I have no transactions showing up at all. I have basically given up for now as the time I allotted for the store set up is gone. It would have been nice if I was directed to the up dated version of the store when I made my purchase so I might have avoided this big false start. It is a good idea and I will be getting around to setting it up on another attempt. One thing that would be great is a way to upgrade rather than having to uninstall and then redo the whole thing. Time is the thing I am out of now not patience or a willingness to get this done> I expect to have some time to fool around with it some more in March. Until then.
vd
Logged

Sweetwater
Community Suite Customer
Jr. Member
******
Offline Offline

Posts: 95



View Profile WWW
« Reply #8 on: January 21, 2008, 02:45:39 am »

Unfortunately I have no transactions showing up at all. I have basically given up for now as the time I allotted for the store set up is gone. It would have been nice if I was directed to the up dated version of the store when I made my purchase so I might have avoided this big false start. It is a good idea and I will be getting around to setting it up on another attempt. One thing that would be great is a way to upgrade rather than having to uninstall and then redo the whole thing. Time is the thing I am out of now not patience or a willingness to get this done> I expect to have some time to fool around with it some more in March. Until then.
vd
Hi vd,
If you uninstall the current version & reinstall the new version it should retain all of your products, prices etc that you have already created. Well that is what happened when I upgraded,,, only took a couple of minutes. I was surprized to see all of my previous work still there & with more options.

Cheers,

sweetwater
Logged

SMF Store
SMF Classifieds
SMF Gallery Pro + Video Add On

        Sweetwater Fishing Australia
Sweetwater
Community Suite Customer
Jr. Member
******
Offline Offline

Posts: 95



View Profile WWW
« Reply #9 on: January 21, 2008, 03:06:31 am »

If this is for a shopping cart order. The total is just sent to PayPal. The qty and other order information about each shopping cart item is stored in the transaction log inside the store.

Ok, am underatanding better now.

In a situation where multiple purchases are made by a user who has a different paypal account (email address) to that of the user email in SMF, there could be confusion with "who purchased what" if the similar purchases that equal the same $ value are made by separate customers.

In my case I will be selling shirts that all have the same price, but different sizes colors etc. To get around reconciling the purchases correctly I am going to do away with the multiple purchases & size/color options & create a new product for each size & color variation (eg mens-blue-small, mens-blue-large etc) . Paypal does show the part number & description that is automatically created by SMF Store which begins at #1 and goes up from there (eg ........../index.php?action=store;sa=view;id=1 ).

If there was a way to create your own product codes to over write this would make it a little easier. Am only mentioning this as a possible inclusion in future versions.

I think the product has tons of potential.  Smiley

Thanks for the reply & supprt SMF Hacks.

Regards,

Sweetwater
« Last Edit: January 21, 2008, 03:09:15 am by Sweetwater » Logged

SMF Store
SMF Classifieds
SMF Gallery Pro + Video Add On

        Sweetwater Fishing Australia
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[May 21, 2012, 08:54:11 am]

[May 20, 2012, 11:06:52 am]

[May 20, 2012, 05:58:11 am]

[May 19, 2012, 06:16:58 pm]

[May 19, 2012, 05:42:37 pm]

[May 18, 2012, 03:08:38 pm]

[May 17, 2012, 06:07:46 pm]

[May 17, 2012, 02:22:07 pm]

[May 17, 2012, 12:38:16 pm]

[May 15, 2012, 09:32:27 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.16 | SMF © 2006-2011, Simple Machines LLC
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 0.264 seconds with 19 queries.