Paypal: item number, and instant log-in ?

Discussion in 'Payments processing' started by nyc, Apr 17, 2004.

  1. nyc

    nyc Guest

    Hello:

    working on getting paypal integrated.

    Two questions.

    I added in the sign-up form a radio button selection field with several options. There is an internal value to each one of those fields( i.e. 1,2,3, or 4). I need this new field value to map to the paypal item number based on which one the user selected. Is there an easy way to do this ?

    Seconf question -- once the user gets through paypal, is there a way to log them in automatically into the members-only section ? or must they enter in their new username & password again .

    thanks.
  2. nyc

    nyc Guest

    in the paypal plugin I found this line:

    'item_number' => $product_id,

    So I'll try and edit that to my new field... any other place where I should be looking ?
  3. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    It's all, you don't need to edit anymore.

    Regarding automatic login, unfortunately, it is impossible.
  4. nyc

    nyc Guest

    thanks alex:

    somehow I edited that line but it's coming in blank to paypal everytime. I verified that field name - anything else to check ?

    and besides turning payapl into test mode, any way to see what the signup page is about to send to paypal before I actually complete a paypal transaction ?

    the field is an added custom field and I used "common" not SQL as the method.

    thanks.
  5. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    could you paste changed code here? To be honest, I don't understand what you did and main question - FOR WHAT?
  6. nyc

    nyc Guest

    sure :)

    The line I changed was the second one:
    PHP:
                'item_name'   => $product->config['title'],
                
    'item_number' => $membership_code,

    And that membership_code is a new field I added which is a radio button. Basically, I could create new products, but would prefer to simply map this new membership_code field to the paypal item_number .

    My suspicion, is that I need to add this new code into the array that is calling out the fields --- but I'm not sure ...

    thanks.
  7. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    must be :
    PHP:
    'item_name'   => $product->config['title'],
    'item_number' => $member['data']['membership_code'], 
  8. nyc

    nyc Guest

    thanks !

    worked like a charm.

Share This Page