Jump to content
Killersites Community

btravis08

New Members
  • Content Count

    4
  • Joined

  • Last visited

Community Reputation

0 Neutral

About btravis08

  • Rank
    New member
  1. btravis08

    PayPal variable passing

    I'm new at this, so i may be missing out on the structure of this stuff Anyways, I've attached the two files at work here. The first snippet is from a templates page, which is sending product info to paypal for the transaction. I'm assuming that once the purchase is made IPN info will be sent to my ipn.php file? (second snippet), which will then write to payments.txt? Is this how it works? Thanks help.php
  2. btravis08

    PayPal variable passing

    Here goes, I have modified the shopping cart system from killersites, and have also linked up with paypal successfully. I also just tested the IPN system from paypal and recorded a fiew variables in my sql database table called purchases. 1st Question: A general question regarding sandbox: Does the IPN testing occur when you make a mock purchase through your actual website. The only way i have successfully passed IPN information along to my database is through the "Instant Payment Notification (IPN) simulator". This is great, but i would really like to see information passed from my website. Is that possible in a mock scenario? 2nd Question: I need to pass a variable called "member_id" to paypal so that after the transaction is made paypal can send me all of the IPN info including the member_id for logging purposes. This ID is essential for linking up my database of members with purchases. Ultimately, I will have a private admin page that will link up members with associated purchases and display them together for easy viewing. I know paypal has a rigid list of acceptable variables. I don't think a buyer name is one of them. I hope i am wrong. Any suggestions on how to pass and retrieve that variable? Thanks! Bryce
  3. btravis08

    Adding mysql functionality to Cart tutorial

    Yep, it would happen when adding items to the cart. I did manage to fix the issue, but I'm still unsure about why it was picking up info from the xml doc. In any case, it works now. Thanks.
  4. I recently purchased the video tutorial and went through the xml portion without any issues. However, i have gone through the mysql revisions to the existing code many times with absolutely no success. I have gone back through the videos and copied down exactly what was written. I even went so far as to create the exact same database in phpmyadmin. These are the errors i receive. Its interesting too, because its looking for PASTA01 which was your example id from the xml. But I have completely crossed over to the sql side and don't have the value PASTA01 anywhere in my database. Whats going on? Fatal error: Uncaught exception 'Exception' with message 'item not found: PASTA01' in /home/content/s/t/u/studentid/html/ppal/functions/functions.php:60 Stack trace: #0 /home/content/s/t/u/studentid/html/ppal/classes/ShoppingCart.php(32): get_item_cost('PASTA01') #1 /home/content/s/t/u/studentid/html/ppal/functions/templates.php(140): ShoppingCart->GetItemCost('PASTA01') #2 /home/content/s/t/u/studentid/html/ppal/functions/templates.php(93): render_shopping_cart_row(Object(ShoppingCart), 'PASTA01', 1) #3 /home/content/s/t/u/studentid/html/ppal/functions/templates.php(171): render_shopping_cart() #4 /home/content/s/t/u/studentid/html/ppal/html/addToCart.php(20): render_paypal_checkout() #5 {main} thrown in /home/content/s/t/u/studentid/html/ppal/functions/functions.php on line 60
×