Tips and Tricks HQ Support Portal › Forums › WP PDF Stamper › WP PDF Stamper and Paypal problems
- This topic has 10 replies, 2 voices, and was last updated 12 years, 10 months ago by admin.
-
AuthorPosts
-
January 9, 2012 at 1:48 am #5217vicpylonMember
I am testing on a new website and have some issues using a Paypal hosted button. I am using the sandbox for testing. I can successfully use the IPN tester against my site with no issues. I can click on the purchase button and make a fake purchase with no issues, but wp-stamper does not generate a file. It is my understanding it should work even though I am using the paypal sandbox. Is there a log file I can look at for additional troubleshooting.
Thank you,
Vic
January 9, 2012 at 5:57 am #40519adminKeymasterRunning Debug for Plain PayPal Button and WP PDF Stamper Integration
What version of PDF Stamper are you using?
January 10, 2012 at 2:12 am #40520vicpylonMemberHello,
version: WP PDF Stamper Settings v4.0.9
Here is the log output
[01/10/2012 2:08 AM] – SUCCESS :Paypal Class Initiated by 173.0.82.126
[01/10/2012 2:08 AM] – SUCCESS :Post string : test_ipn=1&payment_type=instant&payment_date=18%3A08%3A17+Jan+09%2C+2012+PST&payment_status=Completed&address_status=confirmed&payer_status=verified&first_name=John&last_name=Smith&payer_email=buyer%40paypalsandbox.com&payer_id=TESTBUYERID01&address_name=John+Smith&address_country=United+States&address_country_code=US&address_zip=95131&address_state=CA&address_city=San+Jose&address_street=123%2C+any+street&business=seller%40paypalsandbox.com&receiver_email=seller%40paypalsandbox.com&receiver_id=TESTSELLERID1&residence_country=US&item_name=something&item_number=AK-1234&quantity=1&shipping=3.04&tax=2.02&mc_currency=USD&mc_fee=0.44&mc_gross=12.34&mc_gross_1=9.34&txn_type=web_accept&txn_id=1711028¬ify_version=2.1&custom=xyz123&charset=windows-1252&verify_sign=AFcWxV21C7fd0v3bYYYRCpSSRl31AasVdKpcZ06oqf8glGZtQ1-WEsia&
[01/10/2012 2:08 AM] – SUCCESS :Connection to http://www.paypal.com successfuly completed.
[01/10/2012 2:08 AM] – FAILURE :IPN validation failed.
[01/10/2012 2:08 AM] – SUCCESS :Paypal class finished.
January 10, 2012 at 4:38 am #40521adminKeymasterYou mentioned that you were testing with sandbox (meaning the purchase buttons you created is for sandbox) but you didn’t tell the plugin to do sandbox validation so it is doing a live validation which is failing.
Please make sure you have the following option set to true in the “wp-pdf-stamper/api/ipn_customization_config.php” file for sandbox testing:
//Sandbox mode is off
$sandbox = false;To test with sandbox buttons, change the above code to the following:
$sandbox = true;
January 11, 2012 at 1:54 am #40522vicpylonMemberHi,
That got it mostly working, but it fails on the final stamping step.
[01/11/2012 1:51 AM] – FAILURE :An error occured while trying to stamp the file! Error details: SetaPDF_Error Object
[01/11/2012 1:51 AM] – FAILURE :Stamping of PDF file failed.
[01/11/2012 1:51 AM] – SUCCESS :Paypal class finished.
Checked file permissions and they are OK. I saw elsewhere in the forum mention of DSO php settings and absolute path settings, but not sure what the resolution is. Thoughts?
Vic
January 11, 2012 at 1:56 am #40523vicpylonMemberAlso, manual stamping works ok. FYI
January 11, 2012 at 1:59 am #40524vicpylonMemberTake that back. I did a manual stamp and got this:
Error! SetaPDF_Error Object ( [message] => Cannot copy file /var/chroot/home/content/15/4425215/html/gratis/wp-content/uploads/2012/01/Gratis_Cloud_Space.pdf to /var/chroot/home/content/15/4425215/html/gratis/gratis/wp-content/plugins/wp-pdf-stamper/stamped-files/Gratis_Cloud_Space_4f0cec696070a.pdf => 14 )
I see the issue. The sub-dir “gratis” is being used twice, creating and illegal path for the target file. Where can I hard code this path?
Thank you,
Vic
[code] => 14 )
I see the issue. The sub-dir “gratis” is being used twice, creating and illegal path for the target file. Where can I hard code this path?
Thank you,
Vic
January 11, 2012 at 5:25 am #40525adminKeymasterTry changing the “File PATH Conversion Method” from the general settings of the PDF Stamper. Change it to “Method 2” then test a manual stamping.
January 11, 2012 at 1:45 pm #40526vicpylonMemberI made the change,but the stamping failed.
Error! SetaPDF_Error Object ( [message] => Cannot copy file /home/content/15/4425215/html/gratis/wp-content/plugins/wp-pdf-stamper/source-files/Gratis_Cloud_Space_Guide_to_Dropbox.pdf to /home/content/15/4425215/html/gratis/gratis/wp-content/plugins/wp-pdf-stamper/stamped-files/Gratis_Cloud_Space_Guide_to_Dropbox_4f0d925d5e1fd.pdf => 14 )
[code] => 14 )
January 12, 2012 at 4:27 am #40527adminKeymasterI have sent you an email to get site access so I can investigate this further.
January 13, 2012 at 9:36 am #40528adminKeymasterTurns out that you had an incorrect URL in the “Destination Directory of Stamped Files” field. Not sure why you modified this field. When you modify a URL value manually it is always a good idea to check and make sure the the value you are entering is correct. I reset the settings to default and now it is working fine.
-
AuthorPosts
- You must be logged in to reply to this topic.