Skip to content
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

Implement handling Blik level 0 #6

Closed
5 tasks
jakubtobiasz opened this issue Sep 2, 2024 · 1 comment · Fixed by #14
Closed
5 tasks

Implement handling Blik level 0 #6

jakubtobiasz opened this issue Sep 2, 2024 · 1 comment · Fixed by #14
Assignees
Milestone

Comments

@jakubtobiasz
Copy link
Member

jakubtobiasz commented Sep 2, 2024

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).

CleanShot 2024-09-02 at 13 49 05@2x

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

Ref. https://docs-api.tpay.com/en/payment-methods/blik/#blik-level-0

@jakubtobiasz
Copy link
Member Author

@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.

CleanShot 2024-09-02 at 14 00 33@2x

@arti0090 arti0090 linked a pull request Sep 5, 2024 that will close this issue
@jakubtobiasz jakubtobiasz added this to the 0.1 milestone Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants