[#195] MDA integration with SB

Migrated from Redmine #195 | Author: Vladimir Petukhov
Status: Closed | Priority: Normal | Created: 2018-07-12


Hello,

I am a developer working on MDA project. MDA(Customer) uses SimpliBook as main booking service. At present time we use PayPal as the main payment system. The customer wants to use Klarna payment system. On the attached schema you could see two paths: “Now” and “Could be”. The paths present different stages(steps) of user flow in MDA application. “Now” path is what works right now. The path “Could be” is a desirable way of UI steps but yet not implemented. Packets and classes on the schema are our internal names for events in your system.
Could you tell me please if there is a way to redirect the client to our server after he/she selects an event with a price and chooses the date, for following invoicing and processing, instead of using payment options in your system? (On the schema this is presented with the wide red arrow).

Redmine Admin wrote:

unfortunately this is not possible with our common web solution right now

Vladimir Petukhov wrote:

Hello,

Ok then. For creating a solution for Klarna payment processing snippet for SimplyBook I need to know more information about PaymentProcessor_Abstract class. As I understood our snippet should have an implementation for two of its methods: makePayment() and confirmPayment().
Could you please give me the following information:
How does this class work?
On which stages of payment process which methods will be called?
How the view(s) (phtml) file will be processed and when?
Is any view for confirmation screen(needed for Klarna)?
How can I store some data between methods call?
How can I add external libraries for making requests or Klarna client to the code(composer?)?

The next question is the following:
Klarna has two stages in their payment processing - checkout and confirmation. Both stages should be displayed on the different pages. The redirection between them fully depends on Klarna code. So the question is: could we have checkout page on your server(this is where Klarna order will be created) and confirmation page in our application(this stage also is fully processing by Klarna code)?

with best regards Vladimir.

PS: why can’t I attach an image for this message - after file upload it says “Not Found”?

Redmine Admin wrote:

Please contact ingvar@simplybook.me for Enrterprise program. We can add such customization as custom payment processor for Enterprise clients.