Userpoints - As only payment method

Posts: 3
Joined: 10/28/2008

Hello all,

I am pretty new to drupal and have started looking into and playing with ubercart (great module btw!)

I am having some basic (or seems to be basic) problems using Ubercart with Userpoints.

My Goal: To allow authenticated users to add products and place a point value on each product so that other users can buy that product using their own points. There will never be real cash involved - all points.

My problems: a user can log in and add a product and assign a point value (Sell price) no problem. When another user logs in and tries to buy that product, they get this error after clickicking checkout:

"Checkout cannot be completed without any payment methods enabled. Please contact an administrator to resolve the issue."

After searching for this error, the thread that seemed to be closest to my problem was here:

http://drupal.org/node/285961

Just like the OP, I have the mods enabled and my userpoints --> ubercart payment section shows points selected as the only method of payment. And when I saw bmagistro say:

"The only other thing I can think of that might be causing this is if the user doesn't have any points. Are your points being categorized? At present there is not support for that."

Both users (buyer and seller) have points so thats not it. I have tried it both with Uncategorized (default) points and also by adding a new category of points and assigning those points to each user and enabling that category to be the method of payment and still get the same error.

The only time I had any success was when I was logged in as administrator, I was able to buy the items with points and it went thru with no error! It also showed my points being deducted for the purchase. It did not, however, award the points to the user that put the item up for sale. not only does it not show anywhere the transaction that the user received his points for the sale, but also shows his point balance as the same before the sale took place. I have tried this test with Uncategorized points as well as with creating a new category as mentioned above.

i am not sure if the 2 problems are related or not, but i wanted to point that out in case it helped in figuring this out.

One last thing, that probably is not related, but I am using the hook_form_alter() to "hide" a few form fields on the add product page (sku, list_price and cost) since i do not need them currently.

Any help or advice would be much appreciated.

Thanks again!

Posts: 3
Joined: 10/28/2008

So I enabled Userpoints Reset and reset all the points and deleted the category to start from scratch.

I added 100 points to 2 users (User 1 & User 2) and then logged in as User 1 and added a product for 25 pts. Logged out and logged in as User 2 and bought the item and it worked with no error and subtracted the 25 points from User 2. It still did not give the 25 points to User 1, what am I missing here?

In addition, the product is still in the store for sale. How would I eliminate it after it is purchased?

Thanks again

Posts: 5625
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Have you by any chance posted these support requests to the actual module's issue tracker? The person who wrote the module will be more likely to see them there. I don't have any experience with it myself.

Posts: 3
Joined: 10/28/2008

Thanks for the post Ryan ~ I followed your suggestion and posted here: http://drupal.org/node/327567

I hope that's where you meant Smiling

Posts: 96
Joined: 09/24/2007
Getting busy with the Ubercode.

Please follow updates on the issue tracker: http://drupal.org/node/327567