I've been 'testing' ecommerce (cvs_2-26) interaction with userpoints as a sole payment method on a drupal (cvs_2-26) install. The only product I'll be selling (letting users redeem points for) are file downloads.

In the process, here are a few 'gotchas' I've encountered..

  • MySQL tables ec_transaction & ec_transaction_product are not automatically created.
  • Have to enable the shipping module, even if 'file' is the only product type. (I realize this is more a feature request than a bug report, but it would be nice if shipping would be bypassed unless tangible products are sold.)
  • Have to enable the address module (and collect a billing address) even if 'userpoints' is the only payment method enabled. (I realize this is also a feature request - don't know how others feel about this, but I'd rather not scare my users by asking for a billing address when I'm 'billing' them with userpoints rather than real money.)
  • Autocomplete is not working in the 'file' module ("an HTTP error 404 occured
    http://www.domain.com/drupaldir/ec_file/autocomplete")
  • In paypal module (I turned it on for a moment, but most of my trial was done without it) -- paypal IPN URL is showing up as 'http://www.domain.com/drupaldir//drupaldir/paypal/ipn' (my installation is in 'drupaldir' - just once)
  • I am also getting a blank page after checkout (as in /node/51321), the difference being I am using userpoints as payment method, rather than COD. The path of the blank page is 'http://www.domain.com/drupaldir/cart/checkout/process'

Last - when checking out, there *used* to be (in 4.65) a message stating the 'cost' in userpoints.. I don't remember the exact wording but it would say something like ('this transaction will cost you xx userpoints'). It doesn't appear any more.

Now, even with the blank checkout page, the transaction shows up 'under store > transactions' with a payment status 'pending' and payment method 'userpoints'. (Shouldn't the workflow default to 'completed' for 'userpoint' sales?)

I'm sorry to leave such a long list of notes/questions. Really, I don't know what I'd do without this module, and I'd like to thank Matt for putting soooo much work into it & Gordon for stepping up to continue its development!

CommentFileSizeAuthor
#1 paypal.patch936 bytesneclimdul

Comments

neclimdul’s picture

StatusFileSize
new936 bytes

The Paypal issue is a quick fix. Attached is a patch that should do the trick. This is a change in the way the base works in 4.7 including the url function.

The userpoints blank page sounds like a form update problem. I haven't looked at userpoints but it sounds like the page load is dieing there. Your basket is cleared before the paymentapi is started so that explains the weird behavior your seeing.

guckie’s picture

Hey, thanks for putting the paypal patch up. =)

I did find the code in userpoints.module responsible for generating the notices i was accustomed to seeing ('this transaction will cost xx userpoints', etc). Eye-balling it with my untrained eye, I don't spot any code that isn't already updated for 4.7's forms api. *scratching head*

But you're right about the page dying..

seems like nothing from about line 435 (function userpoints_ecommerceapi) and beyond is being executed.

*sigh* I'm definitely not qualified to debug/fix.

neclimdul’s picture

Paypal issue follow up http://drupal.org/node/51707

irishsuperfly’s picture

Component: other » -- other --

Has anyone found a solution to this:

I am also getting a blank page after checkout (as in /node/51321), the difference being I am using userpoints as payment method, rather than COD. The path of the blank page is 'http://www.domain.com/drupaldir/cart/checkout/process'

I'm running into this blank page after a user submits their order. The only payment method I have on site is userpoints. Also, the points are not automatically deducted from the user's account at checkout.

neclimdul’s picture

Component: -- other -- » paypal
Assigned: Unassigned » neclimdul
Status: Active » Fixed

Committed patch in #51707. Fixed

Anonymous’s picture

Status: Fixed » Closed (fixed)