Author Topic: PayPal New API Adds Credit Card Payment Option that causes error  (Read 36879 times)

joeleal

  • Beginner
  • *
  • Posts: 1
Re: PayPal New API Adds Credit Card Payment Option that causes error
« Reply #30 on: February 24, 2012, 05:34:02 am »
I am having the same problem, an i have read everything here, nothing works for me. Can any one help, i will even pay for it!

Hermes

  • Jr. Member
  • **
  • Posts: 73
    • Antimatter-Studios
Re: PayPal New API Adds Credit Card Payment Option that causes error
« Reply #31 on: March 02, 2012, 13:50:37 pm »
Hi There:

I'm having exactly the same problems of all the other users, but I have made one minor change that partially solve my problem, but clearly doesn't solve it.
The solution is one suggested by some users of the forum, and is to comment the following line in the file get_payment_method_paypal_ex.tpl.php:

Code: [Select]
echo ps_checkout::list_payment_methods( $payment_method_id );
Of course, you can add also the attribute checked to this other line:

Code: [Select]
<input type="radio" id="paypalExpressID_ecm" name="payment_method_id" value="<?php echo ps_paypal_api::getPaymentMethodId();?>" checked="checked" />
Although this fact only saves a click to the users, which isn't bad, but doesn't solve the real problem.

Dear developers, I have a good level of php, and more or less I have a good Acknowledge of virtuemart, because I have developed many sites with virtuemart.
Anyway I don't understand exactly the logical that virtuemart follows to process the cart, it's a little obscure. I probably could solve if you can tell me something about it.
When user clicks in "Checkout" and Paypal Express is the only method what happens?
I know that this coud sound very comical if it is supposed that I understand php, but I have more or less debbuged the file checkout index, and I don't understand why any about paypal
is generated, any variable, nor ppex_token, nor any session variable about paypal, only $paypalActive is ok, although his value is 1 instead of Y. am I wrong?

I have activate the debug mode in virtuemart but clearly you can find nothing important there and doesn't help to search the problem, at less I haven't found anything relevant.

Please, could tell something related to the logical of the applicattion, in order to try to solve this problem for all the users.
I will work to solve this if you give me some light. My time is also limited as the time of Zanardi, for example.

Thanks in advance, sorry for my english and have a nice day from Spain (Europe)!


Note for users testing Virtuemart and PayPal CheckOut Express in Sandbox:
As far as I know, only accounts created with EEUU as your country works well with virtuemart for testing.
I mean, that I have never get success testing any web if I don't create the sandbox account
with EEUU as my country of residence, and dollars as my currency. And it's important to say
that all payments received by the checkout express will be always returned as "pending".
When you go live all will be ok as expected, but in sandbox NO! All will be "Pending" whatever you do.



korinsama

  • Beginner
  • *
  • Posts: 2
Re: PayPal New API Adds Credit Card Payment Option that causes error
« Reply #32 on: April 30, 2012, 17:43:57 pm »
So, i did all the steps stated in the previous posts, and it works (hurray), but the Checkout with Paypal button still does not redirect to Paypal, it sends me to the confirmation page with this error :

Error: PayPal returned: The field Shipping Address State is required

how do i fix this?
Thanks in advance ~

Hermes

  • Jr. Member
  • **
  • Posts: 73
    • Antimatter-Studios
Re: PayPal New API Adds Credit Card Payment Option that causes error
« Reply #33 on: May 06, 2012, 18:19:15 pm »
Please, see this post.
I solved two months ago!

http://forum.virtuemart.net/index.php?topic=99663.msg329290#msg329290

Hope it help you!