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

Updated PaymentMethod after Cancelled transaction doesn't update mollie redirectUrl #588

Open
Bernardus opened this issue Jun 28, 2023 · 2 comments
Labels
Payments API Tickets related to refactor Question / Issue Further information is requested

Comments

@Bernardus
Copy link

When a payment is cancelled, its possible to update the payment with the store-api.

// POST /store-api/order/payment

{
    "paymentMethodId": "1901dc5e888f4b1ea4168c2c5f005540",
    "orderId": "4139ce0f86fb47ff872a1ec88378f5d1"
}

This updates the Payment method field in the order overview in the shopware admin.
But the redirectUrl i call again on /store-api/handle-payment does not update.

Why i want this:
I've noticed that a lot of customers use the history/back button instead of cancelling the payment.
This will not trigger the default failed payment feature. So i manipulate the history so that when using the history/back button the customer loads a custom retry payment. on this page i cancel the payment and run the code above.

@boxblinkracer
Copy link
Collaborator

Hi there

thank you for this

the problem is that handle-payment needs to be called from Shopware itself which does all the handling that is required...which then leads to a new checkout-url for the customer

so im not quite sure what you do

so you start a mollie payment
then click on back,
then use the /roder/payment to update to another payment method
and then use handle-payment again to start the payment process with this payment method?

handle-payment (or when mollie starts) will get the payment method selected by Shopware
so im wondering if the correct payment method is even set with your way

maybe you could provide me some step by step instructions?
thank you

@boxblinkracer boxblinkracer added the Question / Issue Further information is requested label Jul 25, 2023
@BlackScorp
Copy link
Collaborator

@Bernardus the problem here is that we are using mollie Order API. this API does not allow to cancel payments, it is only cancelled if the customer use the cancel button on the payment provider. if the customer use the browser back button, the payment stays in the status "open" on mollies side.

we are working on the solution for that but that means we have to move all payment methods to payments api which allow to cancel payments

@BlackScorp BlackScorp added the Payments API Tickets related to refactor label Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Payments API Tickets related to refactor Question / Issue Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants