Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › Getting an error with the payment gateway bundle plugin
Tagged: authorize.net, gateway bundle
- This topic has 9 replies, 3 voices, and was last updated 13 years, 3 months ago by russmc.
-
AuthorPosts
-
July 28, 2011 at 1:46 pm #3918russmcMember
I am getting an error with what I am trying.
I only need Authorize.net so that is the way the gateway settings are setup. I have a product and cart above that at [http://wordpress.505studios.com/join/] I have the collect details short code here [http://wordpress.505studios.com/subscribe/] when I click the button on the cart it takes me to PayPal which I don’t even have enabled anywhere. If I put the cart on the subscribe page and redirect to it after adding the product and fill out the collect details and cc info I get the following error.
Error:
Call to a member function CalculateCartTotal() on a non-object in /wp-content/plugins/wp-payment-gateway/lib/paypal-pro/form.processing.php on line 25
Can you tell me how the flow should work. I would hope that clicking the checkout button on the cart would take me to the collect details page and then back to the thank you page when the transaction is complete.
July 29, 2011 at 12:41 am #34826IvyMemberI sent you an email requesting site access so we can have a look at what is happening. Please let me know if you do not receive this email.
July 29, 2011 at 1:06 am #34827russmcMemberI reinstalled everything and updated wordpress to 3.2.1 since I wrote this thinking it would help fix the issue, but now my key says
License key is invalid!
Reached Maximum Allowable Domains!
it’s the same domain just reinstalled it. Once I get it working I need to move it to another domain were it will be permanent. [http://wordpress.505studios.com] is just our development site. Will you have to reissue a key again.
If you login now the cart has not been set back up with any products and the WP eMember has not been setup. I think I just need the key fixed for now and than I finish setting up the cart and eMember if there is still the issue above after that I will fill out the form you suggested sothat you can login and take a look.
I also replied to your email.
Thanks Russ
July 29, 2011 at 8:17 am #34828IvyMemberPlease contact me with your license key number and I will be able to reset this for you. You can use the following form to contact me:
July 29, 2011 at 8:19 am #34829IvyMemberI was able to find your license key so I have reset this for you.
July 29, 2011 at 4:21 pm #34830russmcMemberOk I got it all reinstalled and the key works thank you. When I have it redirect to the checkout page autmatically and fill out the form for Authorize.net AIM and submit I get this error.
Fatal error: Call to a member function CalculateCartTotal() on a non-object
If I don’t auto redirect to check out from my product and cart page the “Proceed to Checkout” button takes me to PayPal. I only have the Authorize.net payment checked in the payment gateway bundle. I would think that the “Proceed to Checkout” should take me to the checkout page for the AIM method and the error above should not show. My checkout page is on https:// I can’t fiugure this out. Please help. Thanks Russ
July 29, 2011 at 8:15 pm #34831russmcMemberHello, I found one thing that was causing the issue above. You cannot have the Enable Fancy Redirection On Checkout – checked for this to work properly. Now I am on to getting it to process the payment. Still no luck there but working on it. I’ll update anyhting else I discover.
July 29, 2011 at 11:38 pm #34832russmcMemberI found the next issue! I could not process a transaction because in file wp_pg_auth_aim_class.php this variable was set as follows
$post_url = “https://test.authorize.net/gateway/transact.dll”;
when it should be
$post_url = “https://secure.authorize.net/gateway/transact.dll”;
Now for some reason the post processing is not working I have some encouraging stuff in the debug file but the trans_id is missing.
Is this compatible with eMember???
July 30, 2011 at 1:32 am #34833amin007ParticipantI sent you an email to access to your test environment.. I will jump on your site and check this out.
July 31, 2011 at 1:08 am #34834russmcMemberHello Ivy and Amin,
OK after a couple of days of struggles I found the problems I was having were based on my server for the most part.
I have PHP 5.2.9, Apache LiteSpeed, and aparently magic quotes turned on.
Curl was not posting to wp-cart-for-digital-productseStore_process_payment_data.php
becuase of LiteSpeed and the Header being returned with a HTTP/1.1 100 Continue. So in wp-pg-utility-functions.php in the function wp_pg_send_data_using_curl() I added “Expect:” to the CURLOPT_HTTPHEADER so I changed around line 179
curl_setopt($ch, CURLOPT_HTTPHEADER, array(“Content-type: multipart/form-data”));
to
curl_setopt($ch, CURLOPT_HTTPHEADER, array(“Expect:”,”Content-type: multipart/form-data”));
Next thanks to Magic Quotes or something putting quotes in the serialized $_REQUEST and $_REQUEST in wp-cart-for-digital-productseStore_process_payment_data.php so I changed it like so around lines 11 or 12
from
$payment_data = unserialize($_REQUEST);
$cart_items = unserialize($_REQUEST);
to
$payment_data = unserialize(stripslashes($_REQUEST));
$cart_items = unserialize(stripslashes($_REQUEST));
And wahlah it works!!
I also updated process_auth_aim.php and wp_pg_auth_aim_class.php to include all the fields in the AIM Method Post in addition to the ones you had of course as follows:
“x_cust_id” => $customer_id,
“x_invoice_num” => $invoice_id,
“x_first_name” => $first_name,
“x_last_name” => $last_name,
“x_address” => $bill_address,
“x_city” => $bill_city,
“x_state” => $bill_state,
“x_zip” => $bill_zip,
“x_country” => $bill_country,
“x_phone” => $bill_phone,
“x_email” => $bill_email,
“x_ship_to_first_name” => $ship_first_name,
“x_ship_to_last_name” => $ship_last_name,
“x_ship_to_address” => $ship_address,
“x_ship_to_city” => $ship_city,
“x_ship_to_state” => $ship_state,
“x_ship_to_zip” => $ship_zip,
“x_ship_to_country” => $ship_country,
“x_customer_ip” => $_SERVER,
“x_description” => $i_desc,
“x_tax” => $cart_tax,
I hop this might help someone inthe future.
It’s all working now, thanks again for your quick responses.
Cheers,
Russ
-
AuthorPosts
- You must be logged in to reply to this topic.