[Solved] Debug fichero com_joomdle/paypal_notify.php

  • artavan
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 9 months ago - 14 years 9 months ago #1 by artavan
Muy buenas. En el fichero com_joomdle/paypal_notify.php se muestra un debug de toda la información que se opera entre Joomdle-Paypal y Virtuemart. Que forma hay para poder obtener dichas trazas, y poder ver el resultado de la operación de un pago a través de Paypal??

Muchas gracias.
Last edit: 14 years 9 months ago by Chris.

Please Log in or Create an account to join the conversation.

More
14 years 9 months ago #2 by Chris
Hi there,

Antonio is on leave this week. I have used google translate to try an understand your question. I believe you wish to trace / debug from paypal through to Joomdle? I guess buying a course?

Is your VM working fine without Joomdle? I suggest the first thing you do, is to ensure that VM and paypal are working fine. Only at this point introduce Joomdle courses and configuration. This will allow us to narrow down any problems.

Chris

Please Log in or Create an account to join the conversation.

  • artavan
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 9 months ago #3 by artavan
Thank you very much.
Yes, I have everything installed properly. VM works with paypal. But I can not get the student is enrolled in the course through Joomdle. It happens as in www.joomdle.com/en/forum/r05-support/590...-happening-in-moodle
Here, I have seen the debug file com_joomdle / paypal_notify.php, but do not know how I can see the result on my computer. thank you very much

Please Log in or Create an account to join the conversation.

More
14 years 9 months ago #4 by Chris
I guess you see the courses in VM?

In addition, you will need to ensure the following:
- you have installed the joomdle enrolment moodle plugin
- enabled / configured the plugin
- enabled the manual enrolment - joomdle requires this
- set a cost price of not zero
- configured your courses to use joomdle enrolment and have a cost associated to them

I think that's pretty much it if everything is configured correctly.

Please Log in or Create an account to join the conversation.

  • artavan
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 9 months ago #5 by artavan
Yes, I have everything working OK except with Paypal
With other payment gateways, VM and Joomdle working properly.
All points you say are enabled, but still does not work through Paypal.
But I can not get the student is Enrolled in the course-through Joomdle. It Happens as in
www.joomdle.com/en/forum/r05-support/590...-happening-in-moodle
Here, I Have Seen the debug file com_joomdle / paypal_notify.php, But do not know how I can see the result on my computer. thank you very much

Please Log in or Create an account to join the conversation.

More
14 years 9 months ago #6 by Antonio Durán
Replied by Antonio Durán on topic Re: Debug fichero com_joomdle/paypal_notify.php
Hola.

Esa info no te dirá mucho sobre Joomdle, ya que es sobre Paypal (yo por ejemplo, nunca he mirado esas trazas al programar los plugins).

Dices que VM te funciona bien con Paypal y productos normales? Cuando pagas, se marca la orden como Confirmada en VM?
Si es así, comprueba que has cambiado el IPN handler en la config del plugin paypal en VM.

Please Log in or Create an account to join the conversation.

  • artavan
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 9 months ago - 14 years 9 months ago #7 by artavan
Hola Antonio. Ya lo tengo resuelto. He conseguido ver las trazas y ver el código del fichero paypal_notify.php.
La transacción y compra del curso a través de Paypal se realizaba correctamente, el problema estaba en que el alumno no se matriculaba en el curso mediante Joomdle, porque uno de los parámetros que devolvia Paypal (Sandbox) $payment_status tenia el valor "Pending", con lo cual nunca se matriculaba en moodle a través de Joomdle.
El valor que tenía que devolver es "Completed".

Para conseguir que funcionara tenía que entrar en mi cuenta de Sandbox y aceptar el pago, y ya posteriormente se matriculaba correctamente.
Otra forma de hacer esto, sin tener que aceptar el pago, es permitir desde nuestra cuenta en Sandbox que los pago sean automaticos (PaymentReview con valor Disabled).
Os comento esto, por si alguno más le ocurre.

Saludos.
Last edit: 14 years 9 months ago by artavan. Reason: Completar informacion

Please Log in or Create an account to join the conversation.