Hi,

I have to integrate the Paypal plugin into an existing Symfony
application, replacing a custom payment solution. The original
developer wrote three actions for managing payment success, failure,
and IPN validation.

At the moment the sfPaymentPayPal plugins calls /sfPaymentPayPal/
failure or other returns that are stored inside the /plugins/
sfPaymentPayPalPlugin/modules/sfPaymentPayPal/ directories.

So that means if I want to modify the return calls I need to change
the code inside this directory, which poses the problem of plugin
upgrades... I was thinking it could be nice to have configuration
options to redirect the returns to other actions. I'm imagining
something like this:

In /plugins/sfPaymentPayPalPlugin/config/app.yml there would be the
following:

default:
  sf_payment_paypal_plugin:
    return_action: /sfPaymentPayPal/transactionCompleted

And this could be overriden in the project's app.yml file in /apps/
frontend/config/app.yml:

all:
  sf_payment_paypal_plugin:
    return_action: /myOldPaymentSystem/paymentOK

Or something like that.

Any thoughts or comments on this would be very welcome :-).

Cheers,

mathieu

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to