View Single Post
  #115  
Old 08-20-2003, 09:45 PM
Briskoda Briskoda is offline
 
Join Date: Mar 2003
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Firstly, great hack, reading notes from proposal to install, very good material.

Apologies if this is already known, but in summary:
Auto complete IPN causes duplicate txn_id insert attempt.
Default post back of txn_id causes VERIFIED display only.
Refund sets all funds to 0.
Refund does not reduce contributors sum.

Assumption: guest processing. Not permitting guests to this page, at present...

Okay onto my experince, not sure if a few bugs are known or if it's a recent change at PayPals end.

Basically the first few payments where a manual deny was issued worked a treat, the user was returned to the success page. Although the payment was still pending in my account (to be denied or accepted) So I accepted it, thus enabling the autocomplete processing in paypal, so now each payment that comes in is appearing as completed.

So initially this hack worked, then the continue button induced the duplicate keys bug as eluded to previously, so I checked the id's all was fine, ran a few more through, same issue.

After going throught the code it seems that the IPN is beating the continue button process, but still by default it seems posting back txn_id. As such ppverify is picked up and processed where by the insert is run at 104 regardless at this point. For a completed status where the entry is already in the db I cannot see why this is needed. So I commented it out and the process began to work, except now I was rewarded with just the word VERIFIED, so I modified the paypal to do ppverify.php processing and sucess/cancel, it all seems to work again, apart from duplicated payments amounts, the update circa 139 was commented out.

I created a multitude of credits and refunds, it seems to be working now...

I then began to check what was happening for refunds, it set's all funds to 0.00 not the txn_id record passed in for the refund. Also noted the contributors table was not downdated for the refund. So I added an SQL in for that.

Has anybody else noted this behaviour, are the fixes in, if needed atall?

Does the fact I'm a UK user of paypal, the transactions appearing as complete immediatly have any bearing?

Apologies if this is a wild goose chase and I really do appreciate the hack, newborn pressures on time, so one for everybody else to ponder over

Colin.

vB2.3.0
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01126 seconds
  • Memory Usage 1,765KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete