Advanced PayPal/CC Question

Discussion in 'Payments processing' started by dan_kelly, Jan 27, 2009.

  1. dan_kelly

    dan_kelly New Member

    Joined:
    Aug 29, 2006
    Messages:
    91
    I currently take credit cards via Authorize.net.

    I have a high abandonment rate when they hit cc.php where they enter their credit card info.

    I'm going to be adding several things to increase conversion; but the biggest thing people say in my survey is that they would like to pay via PayPal.

    Is there any way to create a PayPal link that I could put on my cc_info.html page that would allow the user to click it and be taken to PayPal to complete their payment?

    I think I can build a form or a link with all financial information (price/terms/etc), but I'm concerned that they would not be tied to that user & payment that was just created in the aMember system.
  2. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    Well, the first thing that comes to mind is to enable paypal and cc.

    Then specify your link to signup to hide paypal:

    Code:
    /amember/signup.php?price_group=-3&hide_paysys=paypal
    and then add a link to the cc page that hides credit card using the same process.
  3. zenpig66

    zenpig66 aMember Pro Customer

    Joined:
    Jan 1, 2009
    Messages:
    72
    yeah, I think you can work with it. At the point the user hits the cc page they have been added as a pending user with the "payment system" already entered for them but there's nothing that I see that specifically ties them to it that can't be changed, yet. If you have a PayPal link on the cc page I'd think as long as you can write your own form which has collected the user input on signup.php and do what skippybosco mentions it should be possible by writing an update statement to both the paysys_id and data fields in the payments table. Updating paysys_id would be simple enough I think but you'd definately wants to compare how paypal looks at this point to how cc payments look at this point in the data field...info is already there and when a customer completes the transaction more is added. It's probably possible to simply update the data field with all new info based on the changing payment type otherwise you'd be doing a lot of string replace....I do think you need to have the payment info in the db before the user is sent off to PayPal, though. If you have a link which takes a user directly to PayPal on the cc page I'm not too sure if that would work if it is doing the db update at the same time...you may need to have the link trigger the update which then takes the user to a page(perhaps the agreement page again) which takes them on to PayPal to ensure the necessary variables are "travelling" with them.
  4. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    theres a good chance the user is also logged in at this point- so you may be able to use a link like this:
    member.php?action=renew&paysys_id=paypal_r&product_id=1

    David
  5. zenpig66

    zenpig66 aMember Pro Customer

    Joined:
    Jan 1, 2009
    Messages:
    72
    yeah, that's a good idea, David...."renew" might be the way to go.
  6. dan_kelly

    dan_kelly New Member

    Joined:
    Aug 29, 2006
    Messages:
    91
    Hmmm...

    Thanks for the ideas.

    Something that complicates things even more, is that almost every order contains two products. That is, the first payment that is created in aMember is actually for 2 products.

    Example:

    price_group 1001 is associated with product_id 1

    On my signup template I have Smarty code if price_group > 1000 then include product_id 2 in product_id array.

    So, in aMember when a user signs up, a single payment is created for both products.

    (To make it even more complex, one of the products is recurring... But, it works. And, I've even gotten it to work with PayPal - despite the fact that I was told it was "impossible".)

    So, in aMember that is a payment that I would like to complete.

    Another option that I just thought of was to put a link/button on the cc_info page that resubmits the signup form with PayPal as the paysys... which would create a new payment... but I'd need the user's email and password to do that. Hmmm...
  7. dan_kelly

    dan_kelly New Member

    Joined:
    Aug 29, 2006
    Messages:
    91
    Re: skippybosco's suggestion

    Thanks for the idea.

    If I were to do that, the user would be brought back to the signup form and have to resubmit that form.

    It is an option, but I'd like to make things as streamlined as possible to get as many customers as possible.

    Maybe I could figure out a way to auto-submit that form if the users info (email/password) is available.

Share This Page