Paypal checkout feature changed on it's own?

Posts: 13
Joined: 01/16/2008
Bug Finder

Hi All, I'm new to Ubercart so I apologize in advance if my questions may seem kind of dumb but I hired someone to build my website and I know very little about the behind the scenes functionality. I'm a small business and have an even smaller budget which makes it difficult to pay support for some of the little issues that come up so I would really like to learn more about the functionality. I'll let you know ahead of time that I'm very intimidated by all of the functions in Ubercart and my designer has cautioned me to be very careful making any changes. I think there may be some areas that I cant' access, so I do have a lot of questions but I'll ask them a little at a time.

My biggest thing is this.... All of a sudden it appeared something had changed on its own. I had the paypal checkout set up for "Authorization" and it somehow got changed to "Complete Sale". I didn't make this change and neither did support, but my question about how this happened wasn't clearly answered, so does anyone know if it is possible for something like this to change on its own?

http://www.myScrapHouse.com

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

Honestly, I have no clue how that could have changed. Even if they updated your code recently, the name of that variable hasn't been affected for some months as far as I know. Really it's just a single select box in the PayPal portion of the payment settings form.

Posts: 2244
Joined: 08/07/2007
AdministratoreLiTe!

Frankly, I'm suspicious that they don't even give you full access to your own site. If you can't get to the Access control page under User management, I'd have a serious talk with this company.

That said, do take a look at what all the settings are, but don't change things unless you know what it'll affect and why you want to.

Posts: 13
Joined: 01/16/2008
Bug Finder

Ryan & Lyle, thanks so much for responding. I wanted to give an update. I do have full access to all areas of my site. I went into my "payment settings" and found that the Paypal option has in fact not been changed, it is still set at "authorization". Did some testing and still not sure why the "authorization" mode is not working properly but we have some ideas and believe it may be an issue on the Paypal side so we are in communication with Paypal tech support.

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

If the setting itself hasn't changed, it could be the code. I haven't tested PayPal in a live situation, so Authorizations may not be getting passed properly. In order for me to check, can you verify which PayPal service you're using? I'm assuming Website Payments Pro?

Posts: 13
Joined: 01/16/2008
Bug Finder

I am using both Paypal Website Payments Pro AND Paypal Standard. The authorization mode works correctly with the Paypal route associated with Payments Pro, BUT does not work correctly when going through the Standard route.

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

Woohoo! New to the Uber-world but already earning a bug finder badge. Turns out if you open up the file uc_paypal.module in your ubercart/payment/uc_paypal directory and go to line 1236 you need to change 'Authorize' to 'Authorization'. Silly mistake on my part, obviously unnoticed since folks weren't using it heavily then. (If your text editor doesn't have line numbers, just search for Authorize. This is the only instance in the module.)

Posts: 42
Joined: 09/12/2007
Getting busy with the Ubercode.

Hi Ryan,

Is this the block of code you are talking about:

// Account for stores that just want to authorize funds instead of capture.
if (variable_get('uc_paypal_wps_payment_action', 'Sale') == 'Authorize') {
$data['paymentaction'] = 'authorization';
}

Thanks

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

That's it. Should be == 'Authorization' instead of == 'Authorize'.

Posts: 13
Joined: 01/16/2008
Bug Finder

THANK YOU! I'm so happy that this is fixed now. Thank you so much for all of your help!