Self-Registration: problem with paid registration (PayPal)

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
stevew
Forum Members
Forum Members
Posts: 74
Joined: Wed May 21, 2008 7:02 am

Self-Registration: problem with paid registration (PayPal)

Post by stevew »

I'm trying to get paid registration to work in a completely fresh install of CMS-MS using:

CMS Version 1.9.4.2
CGExtensions 1.25.3
CGSimpleSmarty 1.4.8
FrontEndUsers 1.12.16
SelfRegistration 1.6.10
Products 2.12
CGEcommerceBase 1.3.1
CGPaymentGatewayBase 1.0.10
Cart 1.8.1
Orders 1.12.7
PaypalGateway 2.3.5

Apache server on Linux 2.6.36.2-grsec On x86_64 with PHP Version 5.2.17

Settings and preferences
SelfRegistration: - Allow package selection = Yes
- Require members to pay = Yes
FrontEndUsers: - Listen to Order events (in e-commerce settings under Builtin Authentication)
CGEcommerceBase: - supplier modules selected are Product Manager and Self-Registration Module
- cart set to Cart
- payment gateway module set to Paypal Gateway
Orders: - Allow anonymous users to check out = Yes
- Allow users to checkout without a payment gateway = No
- Require Group membership = None
- billing form on Checkout page (with {Orders} tag)
- invoice on Invoice page (with {Orders} tag)
Paypal Gateway: - Production mode = No
- business email copied (and double-chcked) from PayPal Sandbox)
- PDT token copied (and double-chcked) from seller profile in PayPal Sandbox)
- Enable IPN = Checked
- IPN URL copied and pasted into IPN Preferences in seller profile in PayPal Sandbox
- Allow subscriptions = Yes
Seller profile in PayPal Sandbox: - IPN Notification = Enabled, with URL from PayPal Gateway in CMS-MS
- Auto Return = On , with return URL = root URL of my test site
- PDT = On (copied and pasted Identity Token from here to Paypal Gateway module in CMS-MS

The self-registration process seems to complete correctly and the transactions are recorded as completed in the user and seller accounts in the PayPal Sandbox, with the appropriate debits and credits. But after redirection to the CMS-MS site, the transaction ID is missing from the message displayed:
Your transaction ID: has been completed, and a receipt for your purchase has been emailed to you at [email]. Thank you for shopping at [site].
The Order appears as PAID in the Orders module, but the newly registered and paid-up user is not pushed into FEU, but stays in Self-Registration. The Admin log reads:
screenshot of Admin log
screenshot of Admin log
Can anyone see where I'm going wrong? I've read all the posts in this forum on self-registration but haven't found an answer. I can supply the CMS-MS admin and Paypal login details if you can help.
If appropriate, of course I'm willing to pay.
TIA!
User avatar
micahgodbolt
Forum Members
Forum Members
Posts: 149
Joined: Thu Jul 29, 2010 11:09 pm
Location: Portland, OR

Re: Self-Registration: problem with paid registration (PayPa

Post by micahgodbolt »

Not the best answer i'm sure, but have you tried taking it out of sandbox? Change the price to a penny and give it a real shot. I was having issues with sandbox at first as well (though I'm not sure if it was for some other reason). Also, do make sure you are 100% up to date. I know CalGuy has been doing very regular updates to paypal, self reg, orders etc...
stevew
Forum Members
Forum Members
Posts: 74
Joined: Wed May 21, 2008 7:02 am

Re: Self-Registration: problem with paid registration (PayPa

Post by stevew »

Thank you for your suggestion, pcf. I'd have to get myself a second Paypal account to do that, which I might do if I get desparate enough ;-)

But I don't get the impression it's a problem with Paypal. After all, the payment is completed in the Sandbox, the seller gets an email saying "You have received a payment of €50,00 EUR from Test User. You can now ship the item(s)." And CMS-MS Admin log says "IPN Transaction successful. Status: Completed".

Trouble is the Orders module doesn't "ship the items", i.e. push the temp user into FEU.

In case it helps, here is part of the {get_template_vars} output from the transaction complete page (showing the missing transaction ID):

Code: Select all

Orders = Object
gateway_module = PaypalGateway
status = SUCCESS
error = Attempted to set status of order 7 backwards from PAID to PENDING
currencysymbol = $
weightunits = kg
order_obj = Object
ordernumber = INV00007
transaction_id = 
email_address = test@email.com
And with debug on, I get this message on that same page:

Code: Select all

Notice: Undefined property: cg_ecomm_cartitem::$_item_tota in /home/metmeetings/www/registration/modules/CGEcommerceBase/lib/class.cg_ecomm_cartitem.php on line 271
So there seems to be a typo in class.cg_ecomm_cartitem.php, but unfortunately it doesn't solve my problem!

The transaction ID is definitely received by the Orders module, as the IDs of the orders shown in the Orders module coincide with the IDs in the emails to the seller in the PayPal Sandbox.
stevew
Forum Members
Forum Members
Posts: 74
Joined: Wed May 21, 2008 7:02 am

Re: Self-Registration: problem with paid registration (PayPa

Post by stevew »

@pcfcopies
I've tried with a live Paypal account, as you suggested, but it makes no difference. I've also tried becoming a member of your test site at http://youthsports.printcopyfactory.com/membership.html but that doesn't work for me either (perhaps because I'm not in US or Canada). Can you tell me, have you ever got paid registration to work? (without a recurring subscription) Could you very briefly outline the transaction flow for me?
Thanks a lot!
User avatar
micahgodbolt
Forum Members
Forum Members
Posts: 149
Joined: Thu Jul 29, 2010 11:09 pm
Location: Portland, OR

Re: Self-Registration: problem with paid registration (PayPa

Post by micahgodbolt »

Hey Steve. I saw a purchase come through, and a new member in the FEU group. Did you try to log in afterwards? I doubt it'll auto log you in, but if that was you, you should have been able to log in.

Unfortunately, I have since deleted that FEU member :) Oops. Should have check the forum first.
Post Reply

Return to “Modules/Add-Ons”