PayPal Gateway integration
PayPal Gateway integration
HELP.
I am trying to integrate the PayPal payement gateway into the AC7 system but seem to be getting nowhere.
I have set up a merchant account on PayPal and setup the IPN.
I have added a PayPal gateway and set the email to the email I used in setting up the merchant account on PayPal.
I have set the Authorization mode to Authorize and teh Debug mode to On.
I set up a Payment method called Pay Pal and linked it to the PayPal gateway.
And then I put an order thorugh the system and at the checkout I see the PayPal Express payment button which I press. After a little processing, I then get a receipt BUT NO PayPal Pay Now button.
When I look in the error log I have got:
11/22/2007 - 2:17:25 PM - Error Provider threw exception in DoAuthorize. Index and length must refer to a location within the string. Parameter name: length
Does anyone know what might be going on.
cheers
David
I am trying to integrate the PayPal payement gateway into the AC7 system but seem to be getting nowhere.
I have set up a merchant account on PayPal and setup the IPN.
I have added a PayPal gateway and set the email to the email I used in setting up the merchant account on PayPal.
I have set the Authorization mode to Authorize and teh Debug mode to On.
I set up a Payment method called Pay Pal and linked it to the PayPal gateway.
And then I put an order thorugh the system and at the checkout I see the PayPal Express payment button which I press. After a little processing, I then get a receipt BUT NO PayPal Pay Now button.
When I look in the error log I have got:
11/22/2007 - 2:17:25 PM - Error Provider threw exception in DoAuthorize. Index and length must refer to a location within the string. Parameter name: length
Does anyone know what might be going on.
cheers
David
I don't think you need to setup a payment method manually for PayPal gateway. You don't have to. A PayPal method is automatically assigned to PayPal gateway.I set up a Payment method called Pay Pal and linked it to the PayPal gateway.
From this it seems it might be a bug... If that is the case we better fix it before final.11/22/2007 - 2:17:25 PM - Error Provider threw exception in DoAuthorize. Index and length must refer to a location within the string. Parameter name: length
Can you post any further details about this. Anything in App_Data/Logs/app.log that might be helpful. But first please make sure that you do not have any payment method manually assigned to PayPal gateway.
David,
Not sure if it'll help you, but here's the steps I took to enable credit card authorization via PayPal.
1. upgrade your PayPal account to Website Payments Pro. Their approval process takes a while but it's well-documented.
2. Once approved, you'll get a username, password and API key. Go into Admin and add a new gateway "PayPal". Feed the values into the setup screen. At the bottom, choose the CC types you want to accept.
3. Go into your PayPal account and find the Instant Payment Notification setup screen. I think it's under Merchant Tools but I'm not sure.
4. Turn on IPN and copy/paste the URL from the AC7 Gateway setup screen into the PayPal IPN setup.
IPN will then be activated. Your AC7 will now accept PayPal along with the CC types you selected in the gateway setup.
Working very well for me on my live AC7 site.
Hopefully that helps a little - I feel your pain with being anxious to go live.
Not sure if it'll help you, but here's the steps I took to enable credit card authorization via PayPal.
1. upgrade your PayPal account to Website Payments Pro. Their approval process takes a while but it's well-documented.
2. Once approved, you'll get a username, password and API key. Go into Admin and add a new gateway "PayPal". Feed the values into the setup screen. At the bottom, choose the CC types you want to accept.
3. Go into your PayPal account and find the Instant Payment Notification setup screen. I think it's under Merchant Tools but I'm not sure.
4. Turn on IPN and copy/paste the URL from the AC7 Gateway setup screen into the PayPal IPN setup.
IPN will then be activated. Your AC7 will now accept PayPal along with the CC types you selected in the gateway setup.
Working very well for me on my live AC7 site.
Hopefully that helps a little - I feel your pain with being anxious to go live.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
Well, I can't wait until the dod comes out!!
I deleted the PayPal gateway yet again and this time set it up without setting up any methods as per sohaibATablecommerce suggestion ...
Many thanks
David

I deleted the PayPal gateway yet again and this time set it up without setting up any methods as per sohaibATablecommerce suggestion ...
.. and lo and behold it works!!I don't think you need to setup a payment method manually for PayPal gateway. You don't have to. A PayPal method is automatically assigned to PayPal gateway.
Many thanks
David
Yeah I think the design intent was the checkbox selections at the bottom of the "gateway" setup automatically build the "methods".
Glad you got it working - I was thrilled when the first order authorized exactly as intended on my system.
Glad you got it working - I was thrilled when the first order authorized exactly as intended on my system.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
FYI I am now getting the exact same error with my live RC1 site. Two days ago it was authorizing cards just fine.
Going to try what you did and see if it fixes my problem.
Going to try what you did and see if it fixes my problem.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
- Logan Rhodehamel
- Developer
- Posts: 4116
- Joined: Wed Dec 10, 2003 5:26 pm
Configuring the PayPal gateway has long been a point of confusion. This gateway is used to process both credit cards and traditional PayPal payments.
For PayPal "Pay Now" Buttons:
You have to make sure the PayPal gateway is configured, but the only required field is your paypal address. You do not need to fill in the fields below "Express Checkout and Direct Payment" section, unless it is also applicable.
You should also create a payment method "PayPal" if it does not exist, if you want users to use the older style Pay Now buttons. You do NOT have to set the PayPal payment method to use the PayPal gateway. This will happen automatically, because PayPal is treated differently than other methods.
For Express Checkout and Website Payments Pro:
Fill in the fields below the "Express Checkout and Direct Payment" section. This will allow your customers to click the express checkout button on the sidebar. Also, you can use the Direct Payment (website payments pro) feature to process transactions for Visa, Mastercard, etc.
Once again, do not set the PayPal payment method to use the PayPal gateway. Do not check it under the "Methods" section of the gateway configuration. The only methods that should be associated with the gateway are major credit cards.
For PayPal "Pay Now" Buttons:
You have to make sure the PayPal gateway is configured, but the only required field is your paypal address. You do not need to fill in the fields below "Express Checkout and Direct Payment" section, unless it is also applicable.
You should also create a payment method "PayPal" if it does not exist, if you want users to use the older style Pay Now buttons. You do NOT have to set the PayPal payment method to use the PayPal gateway. This will happen automatically, because PayPal is treated differently than other methods.
For Express Checkout and Website Payments Pro:
Fill in the fields below the "Express Checkout and Direct Payment" section. This will allow your customers to click the express checkout button on the sidebar. Also, you can use the Direct Payment (website payments pro) feature to process transactions for Visa, Mastercard, etc.
Once again, do not set the PayPal payment method to use the PayPal gateway. Do not check it under the "Methods" section of the gateway configuration. The only methods that should be associated with the gateway are major credit cards.
Cheers,
Logan
.com
If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.
Logan

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.