ETSGlobal / ETSPaymentOgoneBundle

An Ogone provider for JMSPaymentCoreBundle
12 stars 16 forks source link

How to end the transaction in the "accept_url" action? #14

Closed abdessamad closed 10 years ago

abdessamad commented 10 years ago

Hi,

After a successful payment on ogone, the user is redirecting to the "accept_url" action. But this action is displayed when the payment has been authorised, stored, accepted or is waiting to be accepted.

My question is how to be sure that the transaction is ended in order to process the purchase order?

Is there any sample code?

Thanks in advance for your feedback.

ch3ric commented 10 years ago

Hi, Please follow the documentation of the JMSPaymentCoreBundle: http://jmsyst.com/bundles/JMSPaymentCoreBundle/master/usage As you can see in the completeAction you can get the result status of the transaction.

abdessamad commented 10 years ago

Hi, Thanks for your reply, that's what I've done but unfortunately it does not work. After debugging, I found the culprit, it was the incorrect password of the api user in config.yml

In sendApiRequest of OgoneGatewayPlugin class: The Xml data was: NCERROR="50001111"

It is for this reason that I have always had a pending status in PaymentController, may be we should add a check on NCERROR