commercetools / commercetools-payment-integration-java

Module to handle payment transactions
Apache License 2.0
6 stars 4 forks source link

define and implement use case for Payone Vorkasse #15

Closed floriansattler closed 8 years ago

floriansattler commented 8 years ago

define what happens when, where and how if the user selects Payone Vorkasse as his payment method

floriansattler commented 8 years ago

data and user action flow needs to be implemented as following:

  1. user selects "Vorkasse" as his payment method
  2. PaymentFramework creates Payment object @ CTP (success, cancel, error redirect URLs provided by the shop)
  3. shop shows "buy now" button, user clicks it
  4. create the transaction
  5. call the "handlePayment" method of the Payone Connector
  6. interpret the result -> get a valid payment object back
  7. possibly a redirect URL is provided -> then redirect
  8. handle callbacks after redirect accordingly
  9. create order if everything worked fine
  10. show confirmation page (confirmation page should contain bank information so that the customer knows to which bank he has to transfer the money.

cancel or error callbacks have to be handled by the shop and should probably result in the possibility to select a new payment method

MGA-dotSource commented 8 years ago

@floriansattler what kind of redirectURL could be provided after the "handle" call? if so, is its existence a marker for error or for success?

mht-dotsource commented 8 years ago

"Vorkasse" does not use redirect urls.

butenkor commented 8 years ago

@floriansattler can it be closed?

floriansattler commented 8 years ago

@mht-dotsource can you please have a look if the description in this issue is correct, or if it needs to be adjusted to the way you implemented it?

mht-dotsource commented 8 years ago

data and user action flow needs to be implemented as following:

  1. user selects "Vorkasse" as his payment method
  2. PaymentFramework creates Payment object @ CTP
  3. shop shows "buy now" button, user clicks it
  4. create the transaction
  5. call the "handlePayment" method of the Payone Connector
  6. interpret the result -> get a valid payment object back
  7. create order if everything worked fine
  8. show confirmation page (confirmation page should contain bank information so that the customer knows to which bank he has to transfer the money.

there are no redirect and therefore no success/cancel/error-urls