The goal of this task is to allow paying with Blik level 0 (the blik code is provided directly on the store, instead of redirecting a customer to Tpay's webiste).
We agreed the input should be displayed on the last step of the order placing process.
Small wins 🏆
[ ] A customer can choose a Blik payment method
[ ] A customer can provide a Blik code on the complete page
[ ] A customer after providing a Blik code and completing the order sees a some kind of "Waiting for a payment" page
[ ] A customer after providing a valid Blik code and completing the order sees a payment success page (or a notification)
[ ] A customer after providing an invalid Blik code and completing the orders sees a payment failed page (or a notification)
Hints
\CommerceWeavers\SyliusTpayPlugin\Payum\Action\CaptureAction – it is invoked as a first step of the payment process in Payum
\CommerceWeavers\SyliusTpayPlugin\Payum\Action\Api\CreateTransactionAction – a class responsible for creating a transaction
we need to find a way to pass a blik code to the CreateTransactionAction
we might consider converting the CreateTransactionAction into an abstract class, then create a new CreateBlikTransactionAction, CreateCardTransactionAction, CreateRedirectTransactionAction, etc.; but we might skip it for now
@lchrusciel I see on Tpay's mockups from other stores, there is a Terms & Conditions link. I bet it's T&C of Tpay, not the store itself. We need to validate it, and get the link do add it.
The goal of this task is to allow paying with Blik level 0 (the blik code is provided directly on the store, instead of redirecting a customer to Tpay's webiste).
We agreed the input should be displayed on the last step of the order placing process.
Small wins 🏆
Blik
payment methodpayment success
page (or a notification)payment failed
page (or a notification)Hints
CreateTransactionAction
CreateTransactionAction
into an abstract class, then create a newCreateBlikTransactionAction
,CreateCardTransactionAction
,CreateRedirectTransactionAction
, etc.; but we might skip it for nowRef. https://docs-api.tpay.com/en/payment-methods/blik/#blik-level-0