PHP & Mysql & Paypal?!

Discussion in 'PHP' started by clarkd, Aug 26, 2009.

  1. clarkd

    clarkd New Member

    Joined:
    Aug 26, 2009
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    Hello,

    Okay firstly let me explain what Im trying to do.
    I am setting up a site to sell custom handmade cards. A user will visit my site, and create a custom card with a simple form (theme, colours, recipient, message/blank etc etc). They then can add this card to a cart - then either checkout or add more cards etc.
    When they checkout I need paypal to retrieve the right price and maybe details about their card? Then obviously process the payment and then I need to be able to show that that card has been payed for on my site -This is my problem.

    I can create a card with details passed to paypal and get them to pay for it but I cannot then save this card to the database showing that it has been payed for. If you get what I mean?
    Because obviously if you click checkout, then PHP saves to the DB then paypal processes payment (someone could "buy" a card without paying. It needs to save to the db after payment is processed, ie paypal needs to return some date.

    Anyone know how or any suggestions?

    Thanks,
    Dave :)
     
  2. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,645
    Likes Received:
    87
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    http://blog.pradeep.net.in
    Paypal won't fetch anything from your site, you have to send the details to Paypal. Paypal won't provide you with the CC details, but it'll return an Invoice No. & Transaction ID
     
  3. clarkd

    clarkd New Member

    Joined:
    Aug 26, 2009
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    Surely paypal will be able to return some variables to the "thankyou/success" page?
     
  4. clarkd

    clarkd New Member

    Joined:
    Aug 26, 2009
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    And I dont need the CC details just the details of the card (colour, theme, size etc)
     
  5. clarkd

    clarkd New Member

    Joined:
    Aug 26, 2009
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice