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

Add support for paying by redirection directly to a chosen bank #42

Merged
merged 8 commits into from
Oct 7, 2024

Conversation

arti0090
Copy link
Contributor

@arti0090 arti0090 commented Sep 30, 2024

Closes #23

@arti0090 arti0090 force-pushed the 23-direct-transfer-transactions branch 5 times, most recently from 4ba1229 to 6b56e3a Compare October 4, 2024 09:16
@jakubtobiasz
Copy link
Member

I see there's no API part. Do you plan to add it do this PR or as a separate one? We already have 29 files here, so maybe another PR is a good idea.

tests/Application/.env.test Outdated Show resolved Hide resolved
src/Payum/Action/Api/CreatePayByLinkTransactionAction.php Outdated Show resolved Hide resolved
config/services/tpay.php Outdated Show resolved Hide resolved
translations/messages.pl.yaml Outdated Show resolved Hide resolved
src/Payum/Action/Api/CreatePayByLinkTransactionAction.php Outdated Show resolved Hide resolved
src/Tpay/Provider/TpayApiBankListProvider.php Outdated Show resolved Hide resolved
templates/shop/cart/complete/_payByLink.html.twig Outdated Show resolved Hide resolved
templates/shop/cart/complete/_payByLink.html.twig Outdated Show resolved Hide resolved
$payload = $this->createRedirectBasedPaymentPayloadFactory->createFrom($payment, $notifyUrl, $localeCode);

/** @var array{tpay?: array{pay_by_link_channel_id?: string}} $paymentDetails */
$paymentDetails = $payment->getDetails();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As previously, PaymentDetails object

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think here we should extend the PaymentDetails object as later I cant check if key exists, and get value of 'pay_by_link_channel_id' so in other payload factories same issue would exist. I am adding this comment as reference for the improvements task

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This object is our own, so you can just put what you need there :D

@jakubtobiasz jakubtobiasz changed the title 23 direct transfer transactions Add support for payment with redirecting directly to a chosen bank Oct 6, 2024
@jakubtobiasz jakubtobiasz changed the title Add support for payment with redirecting directly to a chosen bank Add support for paying by redirection directly to a chosen bank Oct 6, 2024
@jakubtobiasz jakubtobiasz added enhancement New feature or request ui UI-related labels Oct 6, 2024
@arti0090
Copy link
Contributor Author

arti0090 commented Oct 7, 2024

Comments that were as improvements and the API one has been added as task on board and refererenced there - https://github.com/orgs/CommerceWeavers/projects/9/views/1?filterQuery=&pane=issue&itemId=82030548

@arti0090 arti0090 force-pushed the 23-direct-transfer-transactions branch from 6b56e3a to dea6123 Compare October 7, 2024 09:11
@jakubtobiasz jakubtobiasz merged commit f727972 into main Oct 7, 2024
4 checks passed
@jakubtobiasz jakubtobiasz deleted the 23-direct-transfer-transactions branch October 7, 2024 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ui UI-related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

direct transfer transactions
3 participants