-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow validatePaymentInstruction() to throw PluginActionRequiredException #79
Comments
That sounds more as if you'd like to do an approve transaction, Could you elaborate why an approve transaction does not work here? |
Well, that is exactly what I need to do. Actually I have to authenticate the credit card and get an anonymized handle for the given credit card data. Using this handle we can charge the user monthly for a subscription. But I can see your point, I was thinking about Since this is a very common operation for payment gatways maybe adding an |
It indeed sounds as if we need to provide a special method for this. I'm wondering whether we need to provide a unified way inside this library (probably via a new interface something like |
I checked for this payment gateways:
The least common denominator is that you can request a handle or reference transaction which allows your software to credit money on behalf of the customer. This can be used for all sorts of recurring, online, batch, email, phone payment scenarios. In addition PayPal Payments Pro lets you set-up a real recurring payments. They will do all the heavy lifting for you, just tell them the amount, period, end date, trial period etc. I think it would be great to have something like Since I do have to implement all the heavy lifting for recurring payment anyway, I might find a general solution worth contributing later on. But by now I'm not sure whether this fits into a payment core bundle. |
About the form types: I don't use them. The main reason is that I have to send the credit card information directly to a generated URL of the payment gateway. This means this form will never return to the An other reason is that most checkout processes I'm aware of do have the chooser for the payment method and the form to enter the payment data on seperate pages. |
I'm busy with implementing a payment gateway for saferpay. Since we want to store (a handle to) the credit card information for recurring payments I need a way to do this through the payment controller.
Reading the comments I think
PluginControllerInterface::validatePaymentInstruction()
would be the method to use.However, for a complete validation I need to redirect to saferpay two times and wait for a call back url to be called. Looking at
PluginController::validatePaymentInstruction()
this is not possible right now.I'd like to have the same mechanism that exists for
EntityPluginController::approve()
andEntityPluginController::approveAndDeposit()
to allow the plugin to throw aPluginActionRequiredException
to redirect to a special controller to handle all the saferpay stuff.Is this something that would make sense for the JMSPaymentCoreBundle?
The text was updated successfully, but these errors were encountered: